You obviously have it sussed, but a word of expalnation may help other
lurkers. A program needs to be in the path for it to execute. Your path
is contained in the variable PATH, you can see it by running

echo $PATH

Your current directory is ./ and is not in PATH by default, and don't be
tempted to put it there.

The usual procedure when compiling a program is:

./configure   - a script that sets up the Makefile

make    - compiles and links

sudo make install - installs the program to somewhere like /usr/bin. As
this directory isn't writable by mere mortals you need to be root to
install (hence sudo). Also usually installs documentation, man pages,
config files and so on.

You don't always need to do the last step just to play with and test the
program [1], you can often run it from the directory it was compiled in
by giving the path, as in ./program.



[1] I have found some kde programs want to be installed before they will
run, or they cannot find the right libraries, or something.


On Wed, 12 Jul 2006 11:31:49 +1200
David Merrick wrote:

> ./program worked thanks
> 
> On 7/12/06, Nick Rout <[EMAIL PROTECTED]> wrote:
> > What program?
> >
> > What errors do you get when trying to run it?
> >
> > On Wed, 12 Jul 2006 10:50:18 +1200
> > David Merrick wrote:
> >
> > > I am using Kubuntu 5.1. I can make the program (C Language)  compile
> > > but I can't get it to run. Any suggestions would be helpful.
> > >
> > > --
> > > David Merrick
> > >
> > > [EMAIL PROTECTED]
> >
> > --
> > Nick Rout <[EMAIL PROTECTED]>
> >
> >
> 
> 
> -- 
> David Merrick
> 
> [EMAIL PROTECTED]

-- 
Nick Rout <[EMAIL PROTECTED]>

Reply via email to