Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-18-2009, 12:53 AM
|
#1
|
Member
Registered: Dec 2008
Posts: 39
Rep:
|
Installing Outlook messanger
Hello everybody. Here I have a small installation problem.
I downloaded outlookmessanger.sh, and try to run it on my fedora 8 box. It gives me the following error
[pratap@localhost Desktop]$ ./outlookmessenger.sh
bash: ./outlookmessenger.sh: /bin/sh^M: bad interpreter: No such file or directory
I open it with vi editor and try to search for ^M using :s/^M. But it is not located in that file.
Can any one suggest me what to do.
The .sh file contains the script and some unreadable text.
Thanks in advance!
|
|
|
04-18-2009, 03:01 AM
|
#2
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
try
Code:
chmod +x outlookmessenger.sh
./outlookmessenger.sh
|
|
|
04-19-2009, 06:34 AM
|
#3
|
Member
Registered: Dec 2008
Posts: 39
Original Poster
Rep:
|
hi repo! Thank you for your replay
I did that, still I get the same error
|
|
|
04-19-2009, 06:40 AM
|
#4
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
try
Code:
sh outlookmessenger.sh
Last edited by repo; 04-19-2009 at 06:42 AM.
|
|
|
04-19-2009, 07:54 AM
|
#5
|
Member
Registered: Dec 2008
Posts: 39
Original Poster
Rep:
|
I ran the program as root. Still same problem
|
|
|
04-19-2009, 08:08 AM
|
#6
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
can you give the output from the command you used ?
|
|
|
04-19-2009, 08:10 AM
|
#7
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep: 
|
The control M (^M) may indicate that the script contains Windows style end of lines. What is the output of
Code:
ls -l outlookmessenger.sh
jdk
|
|
|
04-19-2009, 09:23 AM
|
#8
|
Moderator
Registered: Aug 2002
Posts: 26,816
|
jdkaye is correct the script contains DOS end of line characters.
There are lots of ways to convert the file. Using vi:
:set ff=unix
:w
|
|
|
04-19-2009, 09:44 AM
|
#9
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
I downloaded the file
here is the beginning
Code:
#!/bin/sh
# This script was generated using Makeself 2.1.4
CRCsum="4114746320"
MD5="c7a6464742f49fec245bf7829b91c1c1"
TMPROOT=${TMPDIR:=/tmp}
label="nixstaller"
script="sh"
scriptargs="./startupinstaller.sh"
targetdir="tmp"
filesizes="1872585"
keep=n
print_cmd_arg=""
Code:
repo@cannabis:~/download$ ./outlookmessenger.sh
bash: ./outlookmessenger.sh: /bin/sh^M: bad interpreter: No such file or directory
repo@cannabis:~/download$ sh outlookmessenger.sh
OK
repo@cannabis:~/download$
so
Code:
sh outlookmessenger.sh
works
I have added the 2 lines at the beginning of the file, in order to test without installing :-)
Last edited by repo; 04-19-2009 at 09:53 AM.
|
|
|
04-20-2009, 01:14 AM
|
#10
|
Member
Registered: Dec 2008
Posts: 39
Original Poster
Rep:
|
Thanks friends for your suggestion. Now I am able to execute that, but When try to give this
sh outlookmessanger.sh It is giving me the following error
: command not found.sh: line 3:
: command not found.sh: line 7:
: command not found.sh: line 14:
outlookmessenger(2).sh: line 18: syntax error near unexpected token `elif'
'utlookmessenger(2).sh: line 18: `elif test -x /usr/ucb/echo; then
the starting lines of the outlookmessanger.sh is
#!/bin/sh
# This script was generated using Makeself 2.1.4
CRCsum="4114746320"
MD5="c7a6464742f49fec245bf7829b91c1c1"
TMPROOT=${TMPDIR:=/tmp}
label="nixstaller"
script="sh"
scriptargs="./startupinstaller.sh"
targetdir="tmp"
filesizes="1872585"
keep=n
print_cmd_arg=""
if type printf > /dev/null; then
print_cmd="printf"
elif test -x /usr/ucb/echo; then
print_cmd="/usr/ucb/echo"
else
print_cmd="echo"
fi
what might he the reason?
|
|
|
04-20-2009, 05:24 AM
|
#11
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Quote:
: command not found.sh: line 3:
: command not found.sh: line 7:
: command not found.sh: line 14:
outlookmessenger(2).sh: line 18: syntax error near unexpected token `elif'
'utlookmessenger(2).sh: line 18: `elif test -x /usr/ucb/echo; then
|
Seems to me the script is poorly written.
look at lines 3,7,14 and 18
Last edited by repo; 04-20-2009 at 05:25 AM.
|
|
|
04-20-2009, 11:15 PM
|
#12
|
Member
Registered: Dec 2008
Posts: 39
Original Poster
Rep:
|
can't we do anything. I downloaded it from www.outlookmessenger.com
|
|
|
04-21-2009, 12:27 AM
|
#13
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Perhaps you can contact the developers ?
|
|
|
04-21-2009, 11:06 PM
|
#14
|
Member
Registered: Dec 2008
Posts: 39
Original Poster
Rep:
|
thank you!
I will try to contact them
|
|
|
04-23-2009, 06:15 PM
|
#15
|
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196
|
on line 3,7 and 14 there is nothing but a blank line.
The error on line 18 seems to be unjustified, it looks as there is no syntax error.
Run the script with sh -x outlookmessenger.sh
jlinkels
|
|
|
All times are GMT -5. The time now is 03:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|