LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 04-18-2009, 12:53 AM   #1
pratapchiluveru
Member
 
Registered: Dec 2008
Posts: 39

Rep: Reputation: 15
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!
 
Old 04-18-2009, 03:01 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try
Code:
chmod +x outlookmessenger.sh
./outlookmessenger.sh
 
Old 04-19-2009, 06:34 AM   #3
pratapchiluveru
Member
 
Registered: Dec 2008
Posts: 39

Original Poster
Rep: Reputation: 15
hi repo! Thank you for your replay
I did that, still I get the same error
 
Old 04-19-2009, 06:40 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try
Code:
sh outlookmessenger.sh

Last edited by repo; 04-19-2009 at 06:42 AM.
 
Old 04-19-2009, 07:54 AM   #5
pratapchiluveru
Member
 
Registered: Dec 2008
Posts: 39

Original Poster
Rep: Reputation: 15
I ran the program as root. Still same problem
 
Old 04-19-2009, 08:08 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
can you give the output from the command you used ?
 
Old 04-19-2009, 08:10 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
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
 
Old 04-19-2009, 09:23 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,816

Rep: Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336
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
 
Old 04-19-2009, 09:44 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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 :-)
Code:
echo OK
exit

Last edited by repo; 04-19-2009 at 09:53 AM.
 
Old 04-20-2009, 01:14 AM   #10
pratapchiluveru
Member
 
Registered: Dec 2008
Posts: 39

Original Poster
Rep: Reputation: 15
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?
 
Old 04-20-2009, 05:24 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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.
 
Old 04-20-2009, 11:15 PM   #12
pratapchiluveru
Member
 
Registered: Dec 2008
Posts: 39

Original Poster
Rep: Reputation: 15
can't we do anything. I downloaded it from www.outlookmessenger.com
 
Old 04-21-2009, 12:27 AM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps you can contact the developers ?
 
Old 04-21-2009, 11:06 PM   #14
pratapchiluveru
Member
 
Registered: Dec 2008
Posts: 39

Original Poster
Rep: Reputation: 15
thank you!
I will try to contact them
 
Old 04-23-2009, 06:15 PM   #15
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
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
 
  


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
I can't send mails using Outlook Express and Microsoft Outlook cyberonyx LinuxQuestions.org Member Intro 1 01-14-2009 11:44 AM
Installing outlook sumit dash Linux - Software 2 12-05-2008 05:27 AM
How to use messanger linuxjamil Linux - Software 3 11-06-2008 05:43 AM
Ms Outlook Express/Outlook questions-Is there a Linux solution? Sunguraaa General 2 06-26-2007 07:21 AM
Installing instant messanger, and a .exe installer Daeo Linux - Newbie 4 09-19-2004 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:58 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
Open Source Consulting | Domain Registration