# make command

**URL:** <https://community.unix.com/t/make-command/146171>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [July 7, 2003, 5:44am UTC](https://community.unix.com/t/make-command/146171 "2003-07-07T05:44:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamemi](https://community.unix.com/letter_avatar/tamemi/32/6_449c533f586939b6e5f246632a46421f.png) [@tamemi](https://community.unix.com/u/tamemi)\
**Post date:** [July 7, 2003, 5:44am UTC](https://community.unix.com/t/make-command/146171/1 "2003-07-07T05:44:31Z")

</div>

Dear Guys ,

Kindly note that i have sun solaries 8 intel machine .  
i installed apache and it is working fine .

i am installing perl5 , MD5 and CGI .  
but whenever i execute the commands , make , make test and make install i get error message : not found

# make  
make: not found

also i want to ask what does this mean "If you do install this perl and want to use it rather than the Sun one, you will need to have /usr/local/bin in your PATH before /usr/bin " ???

koz i installed perl in my home directory and tried to set it up from my home DIR. is this correct ?? or i should install in in /usr/local/bin ??

Thanks so much

---

<div class="post-metadata">

**Author:** ![mib](https://community.unix.com/letter_avatar/mib/32/6_449c533f586939b6e5f246632a46421f.png) [@mib](https://community.unix.com/u/mib)\
**Post date:** [July 7, 2003, 8:56am UTC](https://community.unix.com/t/make-command/146171/2 "2003-07-07T08:56:34Z")

</div>

> [@](#):
>
> Originally posted by tamemi  
> Dear Guys ,
> 
> Kindly note that i have sun solaries 8 intel machine .  
> i installed apache and it is working fine .
> 
> i am installing perl5 , MD5 and CGI .  
> but whenever i execute the commands , make , make test and make install i get error message : not found
> 
> # make  
> make: not found

Means program 'make ' is not in your PATH or not available on your system (i doubt it. check /usr/ccs/bin). When you type command 'make' in shell prompt it looks for file named 'make' in directories mentioned in PATH environment variable. If there is no file named 'make' in these directory it returns above mentioned error.

To see your PATH setting, use command (in sh):  
echo $PATH  
or  
printenv PATH

To fix this problem, first find out where program 'make' is located. Try commands like:

which make  
whereis make  
locate make

Once you figure out where program make is installed add this directory to PATH (I use example directory /usr/ccs/bin)

export PATH=$PATH:/usr/ccs/bin/make  
or alternatively you can execute program typing absolute path.  
ie: /usr/ccs/bin/make

> [@](#):
>
> also i want to ask what does this mean "If you do install this perl and want to use it rather than the Sun one, you will need to have /usr/local/bin in your PATH before /usr/bin " ???

Means if you want to use newly installed perl (by defualt which will be installed in /usr/local/bin) instead of using one shipped with solaris (which is installed in /usr/bin) modify PATH variable to set /usr/local/bin before /usr/bin  
$echo $PATH  
/bin:/usr/dt/bin:/usr/bin:/usr/local/bin

$ export PATH=/bin:/usr/dt/bin:/usr/local/bin:/usr/bin  
$echo $PATH  
/bin:/usr/dt/bin:/usr/local/bin:/usr/bin

$perl -V  
This should give infomation about newly installed perl.

You can also set a symlink from /usr/bin/perl to /usr/local/bin/perl  
man ln for more details

> [@](#):
>
> koz i installed perl in my home directory and tried to set it up from my home DIR. is this correct ?? or i should install in in /usr/local/bin ??

You can install wherever you want if you know what you are doing :). If you want to install perl in your home directory pass appropriate parameters to ./configure script (./configure --help or read INSTALL doc) and change PATH env.

---

<div class="post-metadata">

**Author:** ![mib](https://community.unix.com/letter_avatar/mib/32/6_449c533f586939b6e5f246632a46421f.png) [@mib](https://community.unix.com/u/mib)\
**Post date:** [July 7, 2003, 8:56am UTC](https://community.unix.com/t/make-command/146171/3 "2003-07-07T08:56:38Z")

</div>

> [@](#):
>
> Originally posted by tamemi  
> Dear Guys ,
> 
> Kindly note that i have sun solaries 8 intel machine .  
> i installed apache and it is working fine .
> 
> i am installing perl5 , MD5 and CGI .  
> but whenever i execute the commands , make , make test and make install i get error message : not found
> 
> # make  
> make: not found

Means program 'make ' is not in your PATH or not available on your system (i doubt it. check /usr/ccs/bin). When you type command 'make' in shell prompt it looks for file named 'make' in directories mentioned in PATH environment variable. If there is no file named 'make' in these directory it returns above mentioned error.

To see your PATH setting, use command (in sh):  
echo $PATH  
or  
printenv PATH

To fix this problem, first find out where program 'make' is located. Try commands like:

which make  
whereis make  
locate make

Once you figure out where program make is installed add this directory to PATH (I use example directory /usr/ccs/bin)

export PATH=$PATH:/usr/ccs/bin/make  
or alternatively you can execute program typing abs
