LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "ggv" command does not work!!! (https://www.linuxquestions.org/questions/linux-newbie-8/ggv-command-does-not-work-620773/)

jcky 02-13-2008 04:46 AM

"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

Nylex 02-13-2008 06:32 AM

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.

jcky 02-13-2008 07:29 AM

Pls help me!!!
I have already installed the full package.
Why I can not use the command?

enemorales 02-13-2008 07:34 AM

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

b0uncer 02-13-2008 07:42 AM

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.

jcky 02-14-2008 07:47 AM

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!!!!

Nylex 02-14-2008 01:14 PM

I'd imagine it's called ggv-<version>.

lazlow 02-14-2008 01:25 PM

Assuming the package you installed was ghostscript. You can man ghostscript. If I read it correctly you should be using gs not ggv.

jcky 02-14-2008 10:50 PM

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.

lazlow 02-14-2008 10:58 PM

It sure works here.

gs myfile.ps

jcky 06-20-2008 11:54 PM

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.


All times are GMT -5. The time now is 08:38 AM.