Gnutella Forums  

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

Other For questions about installing LimeWire or WireShare on alternate operating systems NOT including Windows or Mac. (Such as Linux variations.)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old August 12th, 2007
Snapafun's Avatar
User
 
Join Date: August 12th, 2007
Location: NewZealand
Posts: 4
Snapafun is flying high
Default Simply won't work ~ linux

Followed to starter step and even attempted bash for sh but this is all I get :

[frank@SnapafunMobile Limewire]$ bash ./runLime.sh
: command not found5:
: No such file or directory
: command not found9:
: command not found23:
'/runLime.sh: line 24: syntax error near unexpected token `
'/runLime.sh: line 24: `look_for_java()

Looking at the runLime.sh script I see it looks for java at /usr/lib/jvm
My system has it installed at:

/usr/lib/jvm/java-1.6.0-sun-1.6.0

so I guess that's OK but for the life of me I cannot get the script to run past line 24 ~

look_for_java()
{
JAVADIR=/usr/lib/jvm
if look_for_javaImpl ; then
return 0

Which starts at line 24.

Any ideas anyone ?
Reply With Quote
  #2 (permalink)  
Old August 15th, 2007
Disciple
 
Join Date: June 14th, 2007
Posts: 12
Curmudgeon is flying high
Default

The problem turns out to be due to some '\r' characters in the "runLime.sh" script in the new version.

I had an older version (4.12) of LimeWire working on Linux, but when I tried to install and use LimeWire version 4.14 I got the exact behavior that you described. When I replaced the "runLime.sh" script in the new version with the corresponding script from the old version, the problem went away. The files look the same to the eye, but examining them using "od -c" shows the following:

OLD runLime.sh (LimeWire 4.12, good):
0000000 # ! / b i n / s h \n # \n # R u
0000020 n s L i m e W i r e . T h
0000040 i s s c r i p t m u s t b
0000060 e e x e c u t e d i n y o
0000100 u r L i m e W i r e \n # i n
NEW runLime.sh (LimeWire 4.14, bad):
0000000 # ! / b i n / b a s h \r \n # \r \n
0000020 # R u n s L i m e W i r e .
0000040 T h i s s c r i p t m u
0000060 s t b e e x e c u t e d i
0000100 n y o u r L i m e W i r e \r
You can see the '\r' characters that are causing the problem.

The simplest solution would be to grab the runLime.sh script from an older (working) version of LimeWire, if you can. Otherwise you can try to get rid of the '\r' characters (the "tr" command would work, as would a sed script).
Reply With Quote
  #3 (permalink)  
Old August 16th, 2007
Snapafun's Avatar
User
 
Join Date: August 12th, 2007
Location: NewZealand
Posts: 4
Snapafun is flying high
Default

Don't appear to see the 'r' problem:

#!/bin/bash/
#
# Runs LimeWire. This script must be executed in your LimeWire
# install directory.

# this should allow starting limewire from
# gui-based explorer interfaces
cd "`dirname "$0"`"

# try to discover java
MSG0="Loading LimeWire:"
MSG1="Starting LimeWire..."
MSG2="Java exec found in "
MSG3="OOPS, your java version is too old "
MSG4="You need to upgrade to JRE 1.5.x or newer from http://www.java.com"
MSG5="Suitable java version found "
MSG6="Configuring environment..."
MSG7="OOPS, you don't seem to have a valid JRE. LimeWire works best with Sun JRE available at java.com: Hot Games, Cool Apps "
MSG8="OOPS, unable to locate java exec in "
MSG9=" hierarchy"
MSG10="Java exec not found in PATH, starting auto-search..."
MSG11="Java exec found in PATH. Verifying..."

look_for_java()
{
JAVADIR=/usr/lib/jvm
if look_for_javaImpl ; then
return 0
fi
JAVADIR=/usr/lib
if look_for_javaImpl ; then
return 0
fi
JAVADIR=/usr/java
if look_for_javaImpl ; then
return 0

So any other ideas ?
Reply With Quote
  #4 (permalink)  
Old August 16th, 2007
Disciple
 
Join Date: June 14th, 2007
Posts: 12
Curmudgeon is flying high
Default

Well, if you're just looking at the file on the screen, the '\r' (0xd, "carriage return") won't show up -- you'd need to look at the individual characters in the file, e.g., using the "od -c" command.

If you want, you can drop me your email address and I'll email you my working copy of that file. Of course, if you're half as paranoid about security as I am, you wouldn't accept a shell-script mailed to you by a total stranger -- in that case, you could see about extracting that script from a older version of LimeWire. Good luck.
Reply With Quote
  #5 (permalink)  
Old August 16th, 2007
Snapafun's Avatar
User
 
Join Date: August 12th, 2007
Location: NewZealand
Posts: 4
Snapafun is flying high
Default

OK, that explains things a little clearer.

I'll go RTFM re ' od ' to learn about it some.

As to your offer ~ will meet you 'half way'.[ Sorry about that couldn't help myself.]

Er... that is ~ my email address cannot be printed here ( good security by the moderator ) ~ please include it here, and I'll change the extension this end.

Thanks for the offer, greatly appreciated.

Quick update: I see I do need an earlier copy of the runLime.sh file to be able to compare. Though the od -c command would normally be a little over my head, your comments earlier has helped to see where the changes might be.

________________________________________


Edited to comply with the House Rules.
Do not divulge anyone's personal information in the forum, not even your own.

Last edited by Snapafun; August 16th, 2007 at 08:06 PM. Reason: Took a look at the od command man page.
Reply With Quote
  #6 (permalink)  
Old August 16th, 2007
birdy's Avatar
Airhead
 
Join Date: October 18th, 2004
Location: Perth, Australia
Posts: 889
birdy has a distinguished reputationbirdy has a distinguished reputation
Default

Send Curmudgeon a PM with your email address. Click on his/her username > send a private message. Sorry, no email addresses allowed in the open forum (for your own protection...unless you'd like a ton of spam)
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



All times are GMT -7. The time now is 03:31 AM.


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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.