LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2008, 07:21 AM   #1
iamjayanth
Member
 
Registered: Oct 2008
Posts: 51

Rep: Reputation: 15
acroread command giving error


Hi,

My acroread command is giving the following error.

ERROR: Cannot find installation directory.

When i look in the /usr/local/Adobe/Acrobat7.0/bin/ directory an exicutable file named acroread is there.
When I type ./acroread from that directory it is working. What can i do so that I can type acroread command from anywhere and run acrobat reader. Can i use any aliases.

thanking you,
 
Old 10-31-2008, 07:24 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
It looks like the acroread command/link does not point to the correct executable. Try the command
Code:
type acroread
to find it out.
 
Old 10-31-2008, 07:29 AM   #3
iamjayanth
Member
 
Registered: Oct 2008
Posts: 51

Original Poster
Rep: Reputation: 15
Re: acroread command giving error

When I give type acroread following line is displayed

acroread is hashed (/sbin/acroread)

what that means?

Thanks for the quick replay
 
Old 10-31-2008, 07:33 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Is /usr/local/Adobe/Acrobat7.0/bin in your PATH?

The error message, however, implies that the "acroread" you are running is a script that points to the acroread binary. Do this to find out what is where:

find / -name acroread
 
Old 10-31-2008, 07:51 AM   #5
iamjayanth
Member
 
Registered: Oct 2008
Posts: 51

Original Poster
Rep: Reputation: 15
Re: acroread command giving error

When I type

echo $PATH

The following lines are displayed.
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local/bin:/usr/local/arm/2.95.3/bin:/usr/local/Adobe/Acrobat7.0/bin

then i checked my /usr/bin directory I have an exicutable file there named acroread. When I type ./acroread there it also gives the same error.

ERROR: Cannot find installation directory.

The path to the acroread exicutable file I mentioned earlier is in the PATH variable . But still my acroread commands are not working.
 
Old 10-31-2008, 08:36 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Usually the acroread executable is the one you mentioned in your first post: /usr/local/Adobe/Acrobat7.0/bin/acroread. Under the directory /usr/bin you have a link to the executable, since /usr/bin is usually in every user's path:
Code:
$ ls -l /usr/bin/acroread 
lrwxrwxrwx 1 root root 40 Oct 13 09:53 /usr/bin/acroread -> /usr/local/Adobe/Acrobat7.0/bin/acroread
Anyway, for some reason you have another link or executable under the /sbin directory, which is named acroread. This will be executed, due to the fact that /sbin is the first encountered in the PATH environment variable, before /usr/bin. Indeed the shell looks for commands in the directories specified in $PATH following the same order: the first executable encountered is the one actually executed.

In short, you have to find out where /sbin/acroread comes from, what is it and eventually delete it. Or create an alias to force the execution of /usr/bin/acroread:
Code:
alias acroread='/usr/bin/acroread'
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setup command giving error rishi_it Linux - Hardware 1 07-30-2008 08:11 AM
Where is acroread, mozilla-acroread, and acroread-plugins? Red Knuckles Ubuntu 2 02-09-2007 04:23 PM
Slackware 10.0: Error message after giving startx command Fozmo Slackware - Installation 1 05-31-2006 09:38 PM
rpm command giving kernel error. dhruvypatel Mandriva 3 02-20-2006 10:59 PM
Acroread Exits After Search: error 0x400e0009 Ian Linux - Software 0 04-19-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:54 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