Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > FrostWire
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

FrostWire General forum section for FrostWire users; Download "FrostWire Clean version 4" . FrostWire v.5 which only uses bittorrents and no longer uses Gnutella Network is not supported on these forums.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old February 22nd, 2006
tomk's Avatar
Apprentice
 
Join Date: February 22nd, 2006
Location: Ireland
Posts: 7
tomk is flying high
Default 4.10.9 will not run - syntax error

I've just upgraded from 4.10.5 to 4.10.9, running on Linux. 4.10.5 worked perfectly, but I get the following error with 4.10.9:

$ frostwire
: command not found:
: No such file or directory
: command not found:
: command not found3:
'unFrost.sh: line 24: syntax error near unexpected token `
'unFrost.sh: line 24: `look_for_java()

The error is somewhere in /usr/lib/frostwire/runFrost.sh. If I install 4.10.9, and then replace runFrost.sh with its 4.10.5 version, it works fine. Diffing the files tells me that every line has changed, even though they all look exactly the same to me.

Any ideas, anyone?
Reply With Quote
  #2 (permalink)  
Old February 22nd, 2006
ultracross's Avatar
FrostWire Developer
 
Join Date: February 7th, 2005
Posts: 815
ultracross is flying high
Default

Which platform package are you using? And can you compare the lines in the script and tell me what the differences are?
Reply With Quote
  #3 (permalink)  
Old February 22nd, 2006
tomk's Avatar
Apprentice
 
Join Date: February 22nd, 2006
Location: Ireland
Posts: 7
tomk is flying high
Default

I'm using the FrostWire-4.10.9-1.tar.gz tarball on Arch Linux, and as I mentioned, there is no difference between the two scripts to the human eye. If I diff them, I get this:

Code:
--- /home/tomk/runFrost5.sh     2006-02-22 10:34:46.000000000 +0000
+++ runFrost.sh 2006-02-20 09:07:38.000000000 +0000
@@ -1,119 +1,119 @@
-#!/bin/sh
-#
-# 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"`"
-
-<snip>Every line of original script</snip>
-
-if [ $? -ne 0 ]; then
-    echo
-    echo "******************************************************************"
-    echo "Something went wrong with FrostWire."
-    echo "Maybe you're using the wrong version of Java?"
-    echo "(LimeWire is tested against and works best with with Sun's JRE, Java 1.4+)"
-    echo "The version of Java in your PATH is:"
-    java -version
-    echo
-fi
+#!/bin/sh
+#
+# 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"`"
+
+<snip>Every line of new script</snip>
+
+if [ $? -ne 0 ]; then
+    echo
+    echo "******************************************************************"
+    echo "Something went wrong with FrostWire."
+    echo "Maybe you're using the wrong version of Java?"
+    echo "(LimeWire is tested against and works best with with Sun's JRE, Java 1.4+)"
+    echo "The version of Java in your PATH is:"
+    java -version
+    echo
+fi
In other words, the system sees every line of the new script as a change from the original script, even though you or I don't.
Reply With Quote
  #4 (permalink)  
Old February 22nd, 2006
ultracross's Avatar
FrostWire Developer
 
Join Date: February 7th, 2005
Posts: 815
ultracross is flying high
Default

Thanks, I'll look into it.

[edit: i'll actually have greg look into it]
Reply With Quote
  #5 (permalink)  
Old February 22nd, 2006
tomk's Avatar
Apprentice
 
Join Date: February 22nd, 2006
Location: Ireland
Posts: 7
tomk is flying high
Default

Much appreciated.

Let me know if you need any more info.
Reply With Quote
  #6 (permalink)  
Old February 22nd, 2006
tomk's Avatar
Apprentice
 
Join Date: February 22nd, 2006
Location: Ireland
Posts: 7
tomk is flying high
Default

Actually, I have the fix. It occurred to me that as Frostwire is cross-platform, the script might have been edited on Windows, which would cause it not to work on *nix. I ran
Code:
tr -d '\15\32'
over it to remove carriage returns and Ctrl-Zs, and it works now.
Reply With Quote
  #7 (permalink)  
Old February 22nd, 2006
ultracross's Avatar
FrostWire Developer
 
Join Date: February 7th, 2005
Posts: 815
ultracross is flying high
Default

hmm... I did build it on windows, but im sure I didnt edit any unix/linux scripts. I'll have gregorio build the *nix binaries and see if that fixes it.

Last edited by ultracross; February 22nd, 2006 at 06:20 PM.
Reply With Quote
  #8 (permalink)  
Old February 22nd, 2006
>_
 
Join Date: August 17th, 2003
Posts: 129
limewire is flying high
Default

I can confirm the bug and fix. Nice catch tomk.
Reply With Quote
  #9 (permalink)  
Old March 13th, 2006
Novicius
 
Join Date: March 13th, 2006
Posts: 3
Ulfgar is flying high
Default Same error

Im getting the same messege as mentioned in the original post when trying to run frostwire... Im pretty new to linux, can someone please explain how to fix it so a person who know close to nothing about linux can understand??
Reply With Quote
  #10 (permalink)  
Old March 13th, 2006
tomk's Avatar
Apprentice
 
Join Date: February 22nd, 2006
Location: Ireland
Posts: 7
tomk is flying high
Default

You need to do the following in a terminal, as root:

Code:
cat /usr/lib/frostwire/runFrost.sh | tr -d '\15\32'
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
search filters/ syntax dddkkk Help & Support 3 May 5th, 2007 09:01 AM
./runLime.sh: 44: Syntax error: "(" unexpected (expecting "}") Flats General Linux Support 3 January 2nd, 2007 03:20 PM
./runLime.sh: 44: Syntax error: "(" unexpected (expecting "}") cenzo_79 General Linux Support 1 April 12th, 2006 06:34 PM
Search syntax rsenn Open Discussion topics 1 April 5th, 2006 06:03 PM
Precise search syntax Pirx General Gnutella / Gnutella Network Discussion 0 April 12th, 2003 12:24 PM


All times are GMT -7. The time now is 08:44 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.