LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2010, 09:29 PM   #1
Peccavi
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Installing Java in Slax


Completely new to linux, I decided to finally give it a try last night and made a Live USB for Slax. It booted up quickly, pretty much everything worked right away, and after getting the Wifi working I decided to call it a night.

My project for today was attempting to install Java, but I haven't had much success. There are modules on the Slax site for this, but a. they are unverified and b. I want to delve into linux further than just downloading everything off a website. I downloaded the latest Java package for linux, which was a self-extracting .bin. I followed steps 1 through 4 here, but step 5 didn't work. I got the error message

Quote:
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u20-linux-i586.rpm
error: db4 error(2) from dbenv->open: No such file or directory
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
I then tried using the rpm -UvH command on the rpm file, but got the same error. Knowing that Slax modules are .lzm files, I used rpm2tgz and tgz2lzm to convert it to a module, but it still doesn't work. I'm hoping that someone can point me in the right direction, other than "Download this unverified module from the Slax site."

In addition, a problem I haven't encountered yet but is foreseeable: In those instructions that I linked above for downloading and installing Java, the "Enable and Configure" section requires altering parts of the Firefox install directory. However, since this is Slax, Firefox is in a module. To do that part, do I have to use lzm2dir in order to get into Firefox's innerworkings, or what? Being new to Linux, I'm not really sure how to handle that part.
 
Old 05-22-2010, 02:05 PM   #2
frrossk
Member
 
Registered: Feb 2005
Location: UK
Distribution: Debian jessie
Posts: 33

Rep: Reputation: 16
I don't think you'll be able to use "rpm -Uvh" on Slax, but this http://www.slax.org/forum.php?action...parentID=11960 might help you
 
Old 05-22-2010, 05:43 PM   #3
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,049

Rep: Reputation: 286Reputation: 286Reputation: 286
This is one way to install java, have to be root: get jre-6u20-linux-i586.bin from sun-java and copy to /usr and make sure it is executable.
Code:

cd /usr
sh jre-6u20-linux-i586.bin
ln -sf /usr/jre1.6.0_20/bin/java /usr/bin/java
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing new slax modules on old backtrack? none_ Slackware 1 01-10-2010 01:12 PM
Installing SLAX on hard disk ghasemakbari Slackware 17 11-09-2009 04:31 AM
Installing OpenOffice on Slax/BackTrack2 Adam555 Linux - Newbie 6 06-12-2007 05:54 PM
SLAX & Java bhboku General 2 08-28-2005 02:07 PM
Installing Slax as a substitute for Slackware? apachedude Slackware 6 07-08-2005 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration