[opensuse] openjdk package install doesn't install all related binaries into $PATH or completely setup 'alternatives'?
I installed openjdk o Opensuse 13.2 rpm -qa | grep -i openjdk java-1_8_0-openjdk-1.8.0.40~b25-73.1.x86_64 java-1_8_0-openjdk-devel-1.8.0.40~b25-73.1.x86_64 java-1_8_0-openjdk-headless-1.8.0.40~b25-73.1.x86_64 After I install it 'java' is installed in $PATH java -version openjdk version "1.8.0_40" OpenJDK Runtime Environment (build 1.8.0_40-b25) OpenJDK 64-Bit Server VM (build 25.40-b25, mixed mode) which java /usr/bin/java ls -al /usr/bin/java lrwxrwxrwx 1 root root 22 Feb 2 2013 /usr/bin/java -> /etc/alternatives/java* ls -al /etc/alternatives/java lrwxrwxrwx 1 root root 48 Feb 26 14:46 /etc/alternatives/java -> /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin/java* But other binaries, like 'jar' aren't which jar which: no jar in (...) 'jar' is in the same directory as 'java' ls -al /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin/jar -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin/jar* It's not setup as an alternative update-alternatives --get-selections | grep -i "^jar" (nothing ...) And I can't add it to alternatives manually update-alternatives --install "/usr/bin/jar" "jar" "/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin/jar" 40 update-alternatives: error: alternative jar can't be master: it is a slave of javac There are actually a bunch of bins ls -al /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin/ total 632K drwxr-xr-x 2 root root 4.0K Feb 17 20:48 ./ drwxr-xr-x 7 root root 4.0K Feb 17 07:05 ../ -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 appletviewer* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 extcheck* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 idlj* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jar* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jarsigner* -rwxr-xr-x 1 root root 8.5K Feb 17 06:58 java* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 javac* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 javadoc* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 javah* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 javap* -rwxr-xr-x 1 root root 2.8K Feb 17 06:58 java-rmi.cgi* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jcmd* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jconsole* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jdb* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jdeps* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jhat* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jinfo* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jjs* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jmap* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jps* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jrunscript* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jsadebugd* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jstack* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jstat* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 jstatd* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 keytool* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 native2ascii* -rwxr-xr-x 1 root root 8.7K Feb 17 06:58 orbd* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 pack200* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 policytool* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 rmic* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 rmid* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 rmiregistry* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 schemagen* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 serialver* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 servertool* -rwxr-xr-x 1 root root 8.7K Feb 17 06:58 tnameserv* -rwxr-xr-x 1 root root 149K Feb 17 06:58 unpack200* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 wsgen* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 wsimport* -rwxr-xr-x 1 root root 8.6K Feb 17 06:58 xjc* that don't get set as alternatives or into $PATH. For example which keytool which: no keytool in (...) How do I get this set up so that these bins are in $PATH? Do I need to manually add the dir to $PATH? I thought pkg installs were supposed to take care of all that? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
h15234@mailas.com