Martin Gohla wrote:

Opend a terminal and

Martin-Gohlas-Computer:~ martin$ open xinvaders
2004-03-28 08:38:47.814 open[340] No such file: /Users/martin/xinvaders

This is normal. The "open" command is an Apple-specific gadget whose interaction with the Unix side of OSX is rather obscure. In particular, it knows nothing about command paths in the PATH environment variable. If you use it as


open foo

then "foo" must either be a command that exists in the current directory or the complete path to a command. You can say "open -a TextEdit" and it will start TextEdit, wherever that application is installed, but not "open perl", although "perl" alone works.

Since xinvaders needs a running X11, you are lucky that "open" sometimes understands this and starts X11 before starting the application in question.

A better launcher for X11 applications is "open-x11". This one knows about PATH. So you would probably have succeeded with

open-x11 xinvaders

Martin-Gohlas-Computer:~ martin$ xinvaders
bash: xinvaders: command not found

This one is indeed strange. I would have expected the error message


Error: Can't open display: :0

Maybe you would just have needed to start a new shell, that is, open a new Terminal window after the installation of xinvaders. But, in principle, this should not be needed for the bash shell which you are using. Type "printenv PATH" and look whether /sw/bin appears in the list. You showed that the pathsetup script thinks it does.

Martin-Gohlas-Computer:/sw/bin martin$ open xinvaders

the program xinvaders is started properly.

If I give the command the output ist as follows:

Martin-Gohlas-Computer:/sw/bin martin$ xinvaders
bash: xinvaders: command not found

This is because the current directory is not in your PATH. You would have had to type


./xinvaders

--
Martin





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to