Thread

Posted on Fri May 27 02:45:45 2005 by thorby
Writing Makefile for <any module> -- NOT OK
I am trying to help an inexperienced user at long distance. She is attempting to install various modules using CPAN under Mac OS X (10.3). She uses the command sudo perl -MCPAN -e 'install some::module'. There is no shortage of disk space.

No matter what module -- specifically requested, or unsatisfied prerequisite -- CPAN tries to install, it always fails the exact same way, like this:

Writing Makefile for Compress::Zlib
-- NOT OK

I think the "Writing Makefile for X" message comes from flush() in MakeMakefile.pm, but I have NO idea where the "NOT OK" comes from. The only other error messages follow on from that,
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

Please can somebody tell give me some possible causes for this error -- OR suggest some debugging or tracing steps?

Thanks,
Dave Cortesi

Direct Responses: 503 | Write a response
Posted on Fri May 27 11:26:40 2005 by eserte in response to 502
Re: Writing Makefile for <any module> -- NOT OK
AFAIK one has to install some development tools (XCode?) on the Mac to be able to use CPAN.pm.
Direct Responses: 506 | Write a response
Posted on Fri May 27 20:25:07 2005 by thorby in response to 503
Re: Writing Makefile for <any module> -- NOT OK
This user absolutely has devtools installed. Or so she tells me.

However, I do notice that when I have her do cpan> o conf the only difference between her output and mine is the line make which in my system says /usr/bin/make and in hers, is blank.

Let us suppose that she doesn't have /usr/bin/make -- in what way would this cause the consistent error, quote

Writing Makefile for what::ever
NOT OK

Is /usr/bin/make being invoked here?

I should say, that I had her run the test after cpan> debug all and there were no additional error messages.
Direct Responses: 508 | Write a response
Posted on Sat May 28 20:58:55 2005 by thorby in response to 506
Re: Writing Makefile for <any module> -- NOT OK

The problem was in the configuration. When she set make to /usr/bin/make suddenly the error went away.

For the record, between the user and me we wasted at least 8 hours of person-time because CPAN couldn't issue a simple error message, "this install fails because I can't run make."

BTW -- where does that message "NOT OK" come from, anyway? I could never find it.

Direct Responses: 512 | 4045 | 4046 | Write a response
Posted on Mon May 30 11:48:18 2005 by eserte in response to 508
Re: Writing Makefile for <any module> -- NOT OK
It's in CPAN.pm, the "make" function.
Direct Responses: 2025 | Write a response
Posted on Fri Mar 24 02:29:49 2006 by dull in response to 512
Re: Writing Makefile for <any module> -- NOT OK
This is all very interesting!! Same things happened to me on a Ubuntu Dapper F5 (virtual machine) install!!
Direct Responses: 2026 | Write a response
Posted on Fri Mar 24 02:34:52 2006 by dull in response to 2025
Re: Writing Makefile for <any module> -- NOT OK
and of course i did not have make installed; I am dull for a reason, but still but still this message is bogus: Writing Makefile for what::ever NOT OK When it could very easily tell me: IDIOT::Install Make ...$%%
Direct Responses: 2731 | Write a response
Posted on Sat Jul 29 16:04:42 2006 by jeremiah in response to 2026
Re: Writing Makefile for <any module> -- NOT OK
I am having the same issue. However, make _is_ installed on my machine. The OS I am running where I see this problem is Mac OS X, I do not get this issue under Ubuntu. I have a version of make, and o conf sees it. If anyone knows a possible work-around I would be grateful.
Write a response
Posted on Tue Jan 16 09:05:55 2007 by skavengerx3 in response to 508
Re: Writing Makefile for <any module> -- NOT OK
I'm having the same problem(I'm a rookie). How do you set make to /usr/bin/make
Write a response
Posted on Tue Jan 16 10:24:38 2007 by skavengerx3 in response to 508
Re: Writing Makefile for <any module> -- NOT OK
I'm having the same problem(I'm a rookie). How do you set make to /usr/bin/make
Direct Responses: 4105 | Write a response
Posted on Mon Jan 22 08:29:02 2007 by gavr in response to 4046
Re: Writing Makefile for <any module> -- NOT OK
perl -MCPAN -e shell CPAN> o conf make /usr/bin/make (or if your using a sun box, its /usr/ccs/bin/make) Check the setting by typing CPAN> o conf to list off the option settings. :o)
Direct Responses: 4367 | 5095 | Write a response
Posted on Sat Feb 17 01:03:51 2007 by fshiekh in response to 4105
Re: Writing Makefile for <any module> -- NOT OK
Did all the above, make is included in the list when I run o conf, made sure make is in /usr/bin
Still get the same error when running "make fixdeps" for my RT3 installation on Ubuntu-Server6.10
Error is
-- NOT OK
Running make test
Can't run test witout successful make
Running make install
make had returned bad status, install seems impossible

any suggestions on what to do next? I'm pretty new at this...
Thanks,
Francesca
Direct Responses: 4369 | Write a response
Posted on Sat Feb 17 05:44:12 2007 by schwern in response to 4367
Re: Writing Makefile for <any module> -- NOT OK

What you should do is download and try to install a Perl module from CPAN without using the CPAN shell. Test-Simple is a good example because it has almost no dependencies and doesn't do anything fancy.

Download it. Unpack it. perl Makefile.PL. make. make test. sudo make install.

If that doesn't work then at least you'll have all the error messages you need. If it does work your CPAN shell is misconfigured. Talk to the Ubuntu folks. Or the CPAN shell folks. This isn't about MakeMaker.

Write a response
Posted on Wed May 9 10:34:29 2007 by seancoady in response to 4105
Re: Writing Makefile for <any module> -- NOT OK
Thanks, changing it to /usr/bin/make worked for me too. Don't forget to commit the configuration changes so that they take effect every time: o conf make /usr/bin/make o conf commit
Direct Responses: 7326 | Write a response
Posted on Wed Mar 12 09:51:56 2008 by pietie in response to 5095
Re: Writing Makefile for <any module> -- NOT OK
Hey thanks, this helped me alot as well
Direct Responses: 7625 | Write a response
Posted on Wed Apr 9 16:46:19 2008 by hotrod in response to 7326
Re: Writing Makefile for <any module> -- NOT OK
My problem on Solaris 10 was a bit different. I set the correct $PATH as noted for Solaris earlier in the posts. Each time I tried doing install Bundle::CPAN or the Net::LDAP module I got make: Warning: Ignoring DistributedMake -j option make: Fatal error: No dmake max jobs argument after -j flag /usr/ccs/bin/make -j3 -- NOT OK. I edited the /usr/perl5/5.8.4/lib/CPAN/Config.PM file and changed the 'make_arg' = q[-j3] parameter to 'make_arg' = q[] and now I can install the bundle and any other module directly from the CPAN shell. I am not a programmer, but evidently the version of make that I installed for Solaris could not handle the "number of jobs" flag.
Write a response