CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Cannot execute "make"

 



s660117
User

Apr 6, 2013, 12:40 PM

Post #1 of 8 (732 views)
Cannot execute "make" Can't Post

Hi,
I am running Perl 5.16.0 under Suse Linux 12.2.
I need to download the IO::Tee module, but can't seem to install it.
I downloaded the module from CPAN, extracting it to a user directory. I then copied the IO:Tee-0.64 to /usr/lib/perl5/5.16.0/IO-Tee-0.64. Next, I executed "perl Makefile.PL" which appears to have run successfully. But when I went to execute "make", I got the message "If 'make' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf make".
I thought perhaps I needed to first download the make module (Getopt-Plus-0-99) but am unsure how to proceed.
Thanks in advance,
s660117


Kenosis
User

Apr 6, 2013, 1:17 PM

Post #2 of 8 (727 views)
Re: [s660117] Cannot execute "make" [In reply to] Can't Post

Have you tried the following at the command line:


Code
sudo cpan install IO::Tee


This is typically the way to install a module under Linux. Just now installed IO::Tee in my Linux system using the above.

Hope this helps!


s660117
User

Apr 6, 2013, 1:46 PM

Post #3 of 8 (724 views)
Re: [Kenosis] Cannot execute "make" [In reply to] Can't Post

Thanks for the reply, Kenosis.
When I run

Code
sudo cpan install IO:Tee

it all goes fine until it gets to

Code
Checking if your kit is complete... 
Looks good
Writing Makefile for IO::Tee
Writing MYMETA.yml and MYMETA.json
KENSHAN/IO-Tee-0.64.tar.gz
make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible


This is, by the way, the first time that I have tried to install a module since I updated to 12.2

s660117


Kenosis
User

Apr 6, 2013, 2:11 PM

Post #4 of 8 (720 views)
Re: [s660117] Cannot execute "make" [In reply to] Can't Post

Try the following:


Code
sudo cpan install YAML


Then try reinstalling IO::Tee again. If unsuccessful, you can:


Code
perl -MCPAN -e "CPAN::Shell->force(qw(install IO::Tee));"


Source: force install in cpan

Sometimes I've had to resort to this...


(This post was edited by Kenosis on Apr 6, 2013, 2:13 PM)


s660117
User

Apr 6, 2013, 2:19 PM

Post #5 of 8 (718 views)
Re: [Kenosis] Cannot execute "make" [In reply to] Can't Post

Tried

Code
sudo cpan install YAML

and got

Code
  Database was generated on Sat, 06 Apr 2013 19:29:02 GMT 
Running install for module 'YAML'
Running make for M/MS/MSTROUT/YAML-0.84.tar.gz
Fetching with HTTP::Tiny:
http://httpupdate3.cpanel.net/CPAN/authors/id/M/MS/MSTROUT/YAML-0.84.tar.gz
Fetching with HTTP::Tiny:
http://httpupdate3.cpanel.net/CPAN/authors/id/M/MS/MSTROUT/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/M/MS/MSTROUT/YAML-0.84.tar.gz ok

CPAN.pm: Building M/MS/MSTROUT/YAML-0.84.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for YAML
Writing MYMETA.yml and MYMETA.json
MSTROUT/YAML-0.84.tar.gz
make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible

s660117


s660117
User

Apr 6, 2013, 2:25 PM

Post #6 of 8 (716 views)
Re: [s660117] Cannot execute "make" [In reply to] Can't Post

I tried to install the make module, but got --

Code
Reading '/root/.cpan/Metadata' 
Database was generated on Sat, 06 Apr 2013 19:29:02 GMT
Don't be silly, you can't install Matthias Kerk ;-)



s660117
User

Apr 7, 2013, 9:50 AM

Post #7 of 8 (700 views)
Re: [s660117] Cannot execute "make" [In reply to] Can't Post

What is YAML, and is the make command dependent on it?
Do I have a bad installation of Perl, which I installed as part of OpenSuse 12.2?


s660117
User

Apr 7, 2013, 1:05 PM

Post #8 of 8 (692 views)
Re: [s660117] Cannot execute "make" [In reply to] Can't Post

Ok....
Using Yast, I installed YAML, gcc, and make and I am now able to download and install Cpan modules.
s660117

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives