Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

"make: not found" when installing Perl module

by perleager (Pilgrim)
on Jan 16, 2004 at 06:20 UTC ( [id://321748]=perlquestion: print w/replies, xml ) Need Help??

perleager has asked for the wisdom of the Perl Monks concerning the following question:

Hey I'm on a new SUN Box I just got and properly installed Perl.

When I try to install any kind of module, lets say DBI-1.37.

When I do the Makefile.PL step, it works fine, but then when I type 'make' , it says "make: not found" ....and the installation for the module stops.

Does anyone know why this problem might happen?

Thanks,
Anthony

janitored by ybiC: Retitle from less-than-descriptive "Help installing modules on Apache"

  • Comment on "make: not found" when installing Perl module

Replies are listed 'Best First'.
Re: "make: not found" when installing Perl module
by Roger (Parson) on Jan 16, 2004 at 06:31 UTC
    New SUN Box... Ummm, do you have a compiler installed on the box? You probably need to install the Sun Workshop that has a full compiler package, many perl modules (including DBI) need a C compiler to compile the XS codes. You could also install the GNU gcc compiler. The 'make' utility should come with both these packages. If your system already has a compiler, then you need to update your PATH environment variable. Add /usr/ccs/bin (for SUN workshop) or /usr/local/bin (for GNU gcc / gmake).

Re: "make: not found" when installing Perl module
by neuroball (Pilgrim) on Jan 16, 2004 at 06:38 UTC
    • Your shell can't find make in the PATH variable.
      Solution(s): Give which make and locate make a try.
      If any of these shell commands returns a location, add it to the path variable by using
      set path=$PATH:/location/found/by/you or
      export path=$PATH:/location/found/by/you.
      The code differences depend on the kind of shell you use.
    • If the above doesn't work... you might need to install the SUN development tools/packages.

    /oliver/

Re: "make: not found" when installing Perl module (aka: Use the man, man!)
by Paulster2 (Priest) on Jan 16, 2004 at 13:29 UTC

    Your $PATH variable definitely sounds like the problem. More that likely the make is installed on your computer, but your shell can't find it. I usually can't remember where these things are kept, so I take a look at the man pages. By typing man make it gives you a pretty good description of what you are trying to do. In most cases, though, you also get the path for the command you are trying to run. When you have that, either run it directly (Solaris8 keeps it here):

    /usr/ccs/bin/make

    or put it in your path (ksh shown):

    export PATH=$PATH:/usr/ccs/bin

    Either way should solve your problem.



    UPDATE: Rereading the above nodes, I realize that you probably don't have the compiler installed, and gcc is a good choice for that (mainly because it works good and I believe it's free distro!). This should not negate what I am trying to say here, though.

    UPDATE2: Question to myself: Don't you have to have a compiler installed on your box in order to compile Perl? I guess if you installed a premade package on your Solaris box you might not.

    Man I'm wishy-washy today.

    Paulster2

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://321748]
Approved by Roger
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found