Re: can't find installed executables

2011-10-11 Thread Jerry McAllister
On Tue, Oct 11, 2011 at 11:09:40AM +0200, Jim jim wrote:

Jim,

First, just a politeness thing; please break your lines at about 72
character length.   It helps in reading and responding to your
questions.   Most Email clients allow you to set a line length.

> 
> Hallo,
> I'm kind of new to FreeBSD and installed the latest version a few days ago, 
> it gave me the option to install some packages and I chose some of them like 
> 'FlightGear' for example.But now I don't know how to execute this game or any 
> other program I got installed. I can find the folder and it's like 
> /usr/ports/games/flightgear but there is the Makefile so I think that is the 
> installation folder and i also tried to install it but than it shows me that 
> it is already installed.Could you tell me which one is the executable and how 
> to run it or where I can find it?
> Hope you can help me with this.

Besides the comments that some others have made, you might want to
learn about which(1), although in the case of flightgear it might not
have helped much because the installed name is a bit hard to guess 
from the name of the port.   But, most binaries pretty much follow
the name of the port.

That 'rehash' is also important.   When you first start a csh or tcsh
shell, it sets up a known picture of where things it knows about live.  
If you add something, it will ot know about it until something happens
to cause it to remake its list.  The Rehash command will do that.  Run
it before running the which.

jerry


> Yours Sincerely
> Jim van Dooren. 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: can't find installed executables

2011-10-11 Thread Matthew Seaman
On 11/10/2011 10:09, Jim jim wrote:
> I'm kind of new to FreeBSD and installed the latest version a few
> days ago, it gave me the option to install some packages and I chose
> some of them like 'FlightGear' for example.But now I don't know how
> to execute this game or any other program I got installed. I can find
> the folder and it's like /usr/ports/games/flightgear but there is the
> Makefile so I think that is the installation folder and i also tried
> to install it but than it shows me that it is already installed.Could
> you tell me which one is the executable and how to run it or where I
> can find it?

We all had to begin somewhere.  As a general principle, if you don't
know how to do something, first check the handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

Also, the usual regime of Googling and so forth.  If you're still
mystified, then feel free to ask here.

Now, for your specific question.  /usr/ports/games/flightgear is not the
location of the software you installed.  Rather it is a set of
instructions for how to download, build and install that particular
software.

FlightGear is a bit tricky in that the programs you need to run don't
have names anything like the package itself, as you might expect.  You
can tell this by looking at the file
/usr/ports/games/flightgear/pkg-plist which is a list of the files that
package installs.  Not all ports have a simple pkg-plist file like that,
so alternatively you could run:

pkg_info -lx flightgear | less

(most, but not all, portnames are lower-case)

Now, which of those to run?  This port installs some manual pages.  I'd
try reading fgfs(1) and fgjs(1) -- which means read the manual page for
fgfs from section 1 of the manual. ie type this:

man 1 fgfs

Well, '1' is the default actually, so you could miss that bit out and
still achieve the desired effect.  There can be occasions where you need
to specify it --- compare printf(1) with printf(3) for example.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: can't find installed executables

2011-10-11 Thread Bas Smeelen
On 10/11/2011 11:09 AM, Jim jim wrote:
> Hallo,
> I'm kind of new to FreeBSD and installed the latest version a few days ago, 
> it gave me the option to install some packages and I chose some of them like 
> 'FlightGear' for example.But now I don't know how to execute this game or any 
> other program I got installed. I can find the folder and it's like 
> /usr/ports/games/flightgear but there is the Makefile so I think that is the 
> installation folder and i also tried to install it but than it shows me that 
> it is already installed.Could you tell me which one is the executable and how 
> to run it or where I can find it?
> Hope you can help me with this.
> Yours Sincerely
> Jim van Dooren. 
Hi Jim,

Ports (and packages) are installed under /usr/local
For Flightgear for example in de ports directory you mention
/usr/ports/games/flightgear there is a file pkg-plist which contains a list
of files that are installed by this port. If you have done a rehash after
installing then the binary should be found in your path.
Good luck.


This e-mail is for the intended recipient(s) only. Access, disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: can't find installed executables

2011-10-11 Thread Rares Aioanei
On Tue, 11 Oct 2011 11:09:40 +0200
Jim jim  wrote:

> 
> Hallo,
> I'm kind of new to FreeBSD and installed the latest version a few days ago, 
> it gave me the option to install some packages and I chose some of them like 
> 'FlightGear' for example.But now I don't know how to execute this game or any 
> other program I got installed. I can find the folder and it's like 
> /usr/ports/games/flightgear but there is the Makefile so I think that is the 
> installation folder and i also tried to install it but than it shows me that 
> it is already installed.Could you tell me which one is the executable and how 
> to run it or where I can find it?
> Hope you can help me with this.
> Yours Sincerely
> Jim van Dooren. 

Try 'rehash' from the terminal. (T)csh users need that.

-- 
Rares Aioanei
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


can't find installed executables

2011-10-11 Thread Jim jim

Hallo,
I'm kind of new to FreeBSD and installed the latest version a few days ago, it 
gave me the option to install some packages and I chose some of them like 
'FlightGear' for example.But now I don't know how to execute this game or any 
other program I got installed. I can find the folder and it's like 
/usr/ports/games/flightgear but there is the Makefile so I think that is the 
installation folder and i also tried to install it but than it shows me that it 
is already installed.Could you tell me which one is the executable and how to 
run it or where I can find it?
Hope you can help me with this.
Yours Sincerely
Jim van Dooren.   
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"