Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > General Linux Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.)


Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old March 1st, 2005
Apprentice
 
Join Date: March 1st, 2005
Posts: 5
Flingus2001 is flying high
Default Must be missing something...

Alright, I've tried everything here and still can't get any of the java commands to work. I did install the program but, I think the problem is in my path. So, to recap on all the above posts...

If I edit my profile in /etc/profile, this is a systemwide change? No matter what user I login as that profile should reflect the changes I made to the path?

Second, if I make changes to the path in the profile and the are completly wrong, will they still show up when I type, "echo $PATH" ? Reason I'm asking is because no matter how many times I have changed my profile I dont see ANY of the changes when I run echo $PATH. So, that has me a little concerned... I've included some of my profile for laughs, because it's probably completely wrong but, hopefully other people can learn from it...

If anyone out there could help it would be GREATLY appriciated.

"$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1

if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
JAVA_HOME=/usr/java/jre1.5.0_01/bin
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME
PATH="$PATH:/usr/X11R6/bin:/usr/java/jre1.5.0_01/bin"


Flingus
Reply With Quote
  #22 (permalink)  
Old March 2nd, 2005
zab zab is offline
Connoisseur
 
Join Date: May 16th, 2004
Location: Big Apple
Posts: 266
zab is a great assister to others; your light through the dark tunnel
Default

hi,

the "java" executable is in the "bin" directory of the jre installation. So you only need $JAVA_HOME/bin in your path, and you need that before the rest of the PATH variable.

So, simply add
PATH=/usr/java/jre1.5.0_01/bin:$PATH

before the if statement.
Reply With Quote
  #23 (permalink)  
Old March 2nd, 2005
Apprentice
 
Join Date: March 1st, 2005
Posts: 5
Flingus2001 is flying high
Default

Thanks Zab.. Looks like Java is happy now but, I'm running into some problems with the rpm file now. I'm hoping this isn't because of the some of the changes I made to my profile..

flingus2001]$ rpm -i LimeWireLinux.rpm
error: cannot open lock file ///var/lib/rpm/RPMLOCK in exclusive mode
error: cannot open Packages database in /var/lib/rpm

Am I doing something wrong here?

Reply With Quote
  #24 (permalink)  
Old March 2nd, 2005
zab zab is offline
Connoisseur
 
Join Date: May 16th, 2004
Location: Big Apple
Posts: 266
zab is a great assister to others; your light through the dark tunnel
Default

are you root?
Reply With Quote
  #25 (permalink)  
Old March 4th, 2005
Apprentice
 
Join Date: March 1st, 2005
Posts: 5
Flingus2001 is flying high
Default

Ok, it's working now!!!!!!!!!!!!!!!!!!! WOO HOO! Looks like it was already installed. I do have one weird question though.. I made those changes to etc/profile so, I'm guessing that no matter who I log on as in my system should have access to Java. Why then, is the following happening when I try to run Limewire as root? (I did get it to work when I logged in as another user though)

Thanks so much for your help. I really think I need to read more on how Linux works at this point. I don't understand the formatting in profile and how it works exactly. Seems odd to me that I would have to add Java in my path but, I didn't have to add Limewire in my path..

Anyway, the following happends as root...

This is getting really strange.. It's saying Java isn't in my path again and it's not showing up when I type, "echo $PATH". It worked last time but, now it's not taking the change. It's still in my profile too...

Here's my profile..


# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>

loginsh=1

# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1
PATH=/usr/java/jre1.5.0_01/bin:$PATH
if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/X11R6/bin:/usr/java/jre1.5.0_01/bin"


fi

if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
export PATH=$PATH:/usr/games
fi

umask 022

USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000

Here's the results of my echo $path ...

echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin


And here's what happends when I try to run LimeWire...

./runLime.sh

************************************************** ****************
Error: Unable to find java.
Please make sure that java is in your PATH.
Visit http://www.java.com/en/download/manual.jsp for more information.
(LimeWire is tested against and works best with with Sun's JRE, Java 1.4+)

I was going to reinstall Mandrake just to try to start off with a clean profile but, I can't even figure out how to do that. I've reinstalled twice and it keeps the files instead of overwriting them. :S

What in the world am I doing wrong here? I had no problem at all installing java and LimeWire when I used an earlier version of Mandrake... I am really stumped here....

Flingus

Last edited by Flingus2001; March 4th, 2005 at 08:12 AM.
Reply With Quote
  #26 (permalink)  
Old March 4th, 2005
zab zab is offline
Connoisseur
 
Join Date: May 16th, 2004
Location: Big Apple
Posts: 266
zab is a great assister to others; your light through the dark tunnel
Default

Seems like a mandrake-specific oddity. If the java is listed in /etc/profile it should be part of the path, and you should have access to it.

I suggest forwarding this question to a mandrake support forum, they may have a clue what's happening.
Reply With Quote
  #27 (permalink)  
Old March 4th, 2005
Software Developer
 
Join Date: November 4th, 2002
Location: New York
Posts: 1,366
sberlin is flying high
Default

You added it in a section of the profile that's intended to do other stuff.

Make it so at the very end of the profile (after the environment variables are set), the path has java added to it.
Reply With Quote
  #28 (permalink)  
Old March 16th, 2005
Novicius
 
Join Date: March 16th, 2005
Posts: 2
John Tumath is flying high
Default

dumbo mode on

system fedora Core 3

my profile
***************************
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|$1($|" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after


# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i
unset pathmunge
**************************

my problem I AM A DUMBO

where do i insert my path statement in this load of (to me) gibberish

Hangs head in shame

John
Reply With Quote
  #29 (permalink)  
Old March 16th, 2005
zab zab is offline
Connoisseur
 
Join Date: May 16th, 2004
Location: Big Apple
Posts: 266
zab is a great assister to others; your light through the dark tunnel
Default

John,

with the latest rpm you should not need to set up your path to get LimeWire running.

0. become root
1. Get the latest java from http://www.java.com
2. Get the latest limewire rpm from http://www.limewire.com/LimeWireSoftLinux and install it
3. delete the file /usr/lib/LimeWire/runLime.sh and download this one on top of it:
http://www.limewire.org/zlatin/runLime.sh
4. chmod 755 runLime.sh

then type "limewire" in the terminal and it should run, or at least print some helpful debug information.
Reply With Quote
  #30 (permalink)  
Old March 17th, 2005
Novicius
 
Join Date: March 16th, 2005
Posts: 2
John Tumath is flying high
Default

Cheers

Worked a treat

John
Reply With Quote
Reply


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
i need help; LW says please install the new version of java after installing Java Logan_2468 Windows 7 October 6th, 2009 12:07 AM
Installing Java humbertoarte Windows 5 October 11th, 2006 10:25 AM
Installing Java m-life Windows 2 March 5th, 2006 01:32 PM
Installing Java chunkin General Linux Support 1 September 8th, 2003 01:29 PM
Installing java Unregistered General Linux Support 1 March 3rd, 2002 05:29 AM


All times are GMT -7. The time now is 11:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.