The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
In ksh shell command - Print "-ABC" is giving error sagarjani Shell Programming and Scripting 2 10-08-2008 05:32 PM
Cron job giving error while running SSH command visingha Shell Programming and Scripting 3 09-13-2008 09:07 PM
script giving error Shahul UNIX for Advanced & Expert Users 2 08-29-2008 01:36 PM
mv command is giving error in shell script gammit Shell Programming and Scripting 5 12-13-2007 03:56 AM
/dev/rStp0 giving error workingstiff UNIX for Dummies Questions & Answers 1 10-29-2002 06:25 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-31-2008
iamjayanth iamjayanth is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 23
acroread command giving error

Hi,

When I run the command acroread it is giving error

ERROR: Cannot find installation directory.

When I look at /usr/local/Adobe/Acrobat7.0/bin/ an exicutable file named acroread is there. When i run ./acroread from that directory it is working . What can i do so that I can give acroread command from anywhere . Can aliases help?
  #2 (permalink)  
Old 10-31-2008
wempy's Avatar
wempy wempy is offline
Registered User
  
 

Join Date: Jun 2006
Location: Harpenden, UK
Posts: 208
at a prompt type
Code:
which acroread
which on my machine returns
Code:
/usr/bin/acroread
see if that is a symbolic link to the binary you mentioned. If it isn;t rename it (acroread.old maybe) and create a symbolic link to that binary.
Code:
ln -s /usr/local/Adobe/Acrobat7.0/bin/acroread /usr/bin/acroread
or try adding the adobe bin directory to your path.
  #3 (permalink)  
Old 10-31-2008
iamjayanth iamjayanth is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 23
Thanks for the quick reply.

On " which acroread " command the following is displayed.

/sbin/acroread

I checked /sbin/acroread file it was a shell script. Not an exicutable. Then I renamed that file to acroread1 and create a soft link to the exicutable I mentioned earlier in /sbin.

ln -s /usr/local/Adobe/Acrobat7.0/bin/acroread /sbin/acroread

Then I typed acroread command but the error returned was same.

Can I use aliases. Some thing like


alias acroread= .//usr/local
/Adobe/Acrobat7.0/bin/acroread

I am not sure about the syntax. But will this help?
  #4 (permalink)  
Old 10-31-2008
wempy's Avatar
wempy wempy is offline
Registered User
  
 

Join Date: Jun 2006
Location: Harpenden, UK
Posts: 208
so, if you run the program from within its own directory it works fine? but run from anywhere else, it fails? That is probably why there is a shell script to start it, but why put it in /sbin/ which is normally only in root users path, not a normal user.

You could create a new shell script which switches to the acroread bin directory, then runs the binary fromn there
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0