LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-13-2008, 05:46 AM   #1
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Rep: Reputation: 15
"ggv" command does not work!!!


When I used the command "ggv" to check the content of a ps format document, the screen says that the command does not exist. I tried in both text mode and graphical mode,but they fails.I used the RHEL 5.
I want to know how I can solve the problem and why the "ggv" command does not work. Pls help me. Tks.
My msn is : houjun19830610@hotmail.com

Last edited by jcky; 02-13-2008 at 05:49 AM.
 
Old 02-13-2008, 07:32 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Either you don't have ggv installed, or it is installed and the executable isn't in your $PATH. Presumably there's a tool in RHEL that lets you see which packages are installed, so you should use it to check whether or not you have ggv installed. If not, then obviously install it.
 
Old 02-13-2008, 08:29 AM   #3
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Original Poster
Rep: Reputation: 15
Pls help me!!!
I have already installed the full package.
Why I can not use the command?
 
Old 02-13-2008, 08:34 AM   #4
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Hi,

Is there any reason you need ggv in particular? Here: http://osdir.com/ml/linux.redhat.rel.../msg00089.html they say you can use evince un RHEL to see your ps and pdf files.

HTH
 
Old 02-13-2008, 08:42 AM   #5
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
To locate ggv, if it exists, you can use several tools; here are two ways of doing it

1) (s)locate:

if the (s)locate database was updated after you installed ggv, this works. If you have not updated the database (or are not sure if you have) after the installation of ggv, run the below command as root to update it (otherwise skip that):
Code:
updatedb
After that locate the ggv file:
Code:
locate ggv
If there are a lot of results, you may try to use (for example) grep to cut down the hits:
Code:
locate ggv | grep bin/
The above would only show those locate hits that include bin/ in their name (hopefully just files that are under some binary directory).

2) find:

This may or may not be slower than the above method, depending on where the file is, where you begin searching and so on. But it should work, and that's the good part. The switches used are: '--type f' to search only "regular" files (not directories etc.), '--name' for the name to search, maybe with wildcards if you like. Note that here we start searching from the root of the filesystem ("/"), but you can start from other directories as well; the search is recursive.
Code:
find / -type f -name "ggv"
Again you can use grep like in 1) to cut down the list of found files, if you get loads of results. You shouldn't, though. For more options
Code:
man find
Once you find the command, run it with full path and it should launch, and/or add the path to your $PATH environment variable to be able to run ggv without full path - or if you can't find it, it's either named to something else than "ggv" or then not installed at all.

As a last thing I mention what I should have mentioned first: read man pages if you installed ggv, most likely it installed some man pages as well, which reveal the program name and so on..
Code:
man ggv
or if that didn't give any results,
Code:
man -k ggv
and start searching.
 
Old 02-14-2008, 08:47 AM   #6
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Original Poster
Rep: Reputation: 15
I am crazy.
I can not solve the problem!
When I used the command "updatedb" and "locate ggv", nothing happened.
I want to know which package is associated with the "ggv" command.
Who can tell me ?
Tks!!!!
 
Old 02-14-2008, 02:14 PM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I'd imagine it's called ggv-<version>.
 
Old 02-14-2008, 02:25 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Assuming the package you installed was ghostscript. You can man ghostscript. If I read it correctly you should be using gs not ggv.
 
Old 02-14-2008, 11:50 PM   #9
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Original Poster
Rep: Reputation: 15
What is the purpose of the command "gs"? I used the "gs" command. But it can not read the ps format document.
Thanks for all of you to help me all the same.
Maybe I had better find a solution by the baidu or google.
 
Old 02-14-2008, 11:58 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
It sure works here.

gs myfile.ps
 
Old 06-21-2008, 12:54 AM   #11
jcky
Member
 
Registered: Feb 2008
Location: China-Shanghai
Distribution: Rhel&Suse
Posts: 82

Original Poster
Rep: Reputation: 15
I know the problem. "ggv" command has been canceled in the rhel 5.But it does exist in Rhel 4. So the question can be closed.Thanks for all your help.
 
  


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
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
Command "lsmod" Doesn't Work In Fedora rrrssssss Fedora 4 03-11-2007 10:24 AM
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 02:34 PM
"make" command doesn´t work Syntron Linux - General 2 10-19-2004 09:31 AM
"make" command won't work in Fedora...installing Nvidia Ethernet drv's help Ge|atinousFury Linux - Hardware 24 01-22-2004 05:42 PM


All times are GMT -5. The time now is 02:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration