LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   bash: rpm: command not found && sudo: alien: command not found (http://www.linuxquestions.org/questions/ubuntu-63/bash-rpm-command-not-found-and-and-sudo-alien-command-not-found-466715/)

Java_Code 07-23-2006 03:39 AM

bash: rpm: command not found && sudo: alien: command not found
 
Well, trying to install Java, I discovered that I don't have the rpm command. I sought help and found sudo alien file.rpm would change it to a .deb, and I could then install the deb. Well I soon after found out I don't have the alien command either. Any ideas?

P.S. I searched the Synaptic Package Manager for both alien and rpm, and it came up with nothing.

uselpa 07-23-2006 07:56 AM

Ubuntu doesn't use rpm, it has the Debian package management. And using alien is always the last resort, or to be more precise, don't use it.
In Synaptic, look for Java and install the packages that suit you. If it doesn't show up, you need to add the repositories that contain Java. But again, stick to Ubuntu repositories.

A good starting point is here.

Java_Code 07-24-2006 04:23 AM

Well, the problem with that is I would like to install the JDK as well as the JRE, both versions 1.5.0 build 7, and it would also be helpful to know how to install binary's or RPM's in the future, instead of just using EUbuntu, which also isn't working, perhaps because I'm running Ubuntu 64 bit? I'm running on my windows HDD now, so I don't have the exact error, something about a .list not matching though.

konsolebox 07-24-2006 05:27 AM

there's a guy here who asked like you too who successfully installed java jre. so you might as well find this as an additional info:
http://www.linuxquestions.org/questi...d.php?t=466752

regards :)

aysiu 07-24-2006 11:00 AM

I believe if you have the proper repositories enabled, you can install those packages through Synaptic Package Manager or Adept.

Otherwise, just for the future, you need the alien package before you can use it:
Code:

sudo aptitude update && sudo aptitude install alien
Once you have alien installed just do this:
Code:

sudo alien -i nameofpackage.rpm
to install the .rpm file.

robbbert 07-24-2006 01:23 PM

I agree that you'll want to install Java (the JDK and / or JRE) from Ubuntu's repositories. The current version is 1.5.06.

If you'ld choose not to do so, rather install the .bin than the .rpm. Be warned that installing that way doesn't make Sun's java, javac, javaw, etc., default on your system, CLASSPATH will still be wrong, and you have to configure it all yourself ...

Besides, there are loads of "how to install Java on Ubuntu" threads out there -- they're all obsolete since Ubuntu included Java into their repos.

Java_Code 07-27-2006 08:35 PM

Quote:

Originally Posted by robbbert
I agree that you'll want to install Java (the JDK and / or JRE) from Ubuntu's repositories. The current version is 1.5.06.

If you'ld choose not to do so, rather install the .bin than the .rpm. Be warned that installing that way doesn't make Sun's java, javac, javaw, etc., default on your system, CLASSPATH will still be wrong, and you have to configure it all yourself ...

Besides, there are loads of "how to install Java on Ubuntu" threads out there -- they're all obsolete since Ubuntu included Java into their repos.

Ah, you're wrong ;). We're on build 07 of 1.5 :). Well, I forfeited to the rpm battle, and went with the .bins. That was fine, until the $PATH variable came into play, what I didn't know was I had to instantiate the JAVA_PATH and JAVA_HOME variables to the bin folder. It's all fixed now, except I can't get it to plugin to firefox properly. I'll look into it :), but help on the plugin would be greatly appreciated.

robbbert 07-27-2006 11:57 PM

On my system, $JAVA_HOME points to the folder above bin...

Anyways, as for the Firefox plugin, there should be a file $JRE_HOME/plugin/i386/ns7/libjavaplugin_oji.so. As root, copy that to /usr/lib/mozilla-firefox/plugins.

There are also some properties in Firefox' "about:config" that start with "java", you might want to have a look at them.


All times are GMT -5. The time now is 08:23 AM.