image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old April 18th, 2002, 12:57 PM
Registered User
 
Join Date: Apr 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
yogi is on a distinguished road
troubles installing Perl modules with CPAN.pm

Hi,
I am trying to install a couple of Perl modules, using the CPAN.pm module. The Version of CPAN.pm provided with OS X 10.1 was a bit older, I got the new one using the same module, no problems. Then installed FTP.pm, no problemo either. Then tried Bundle::LWP, only went well when I did force install LWP.
Neither the DBI, nor DBD::mysql, nor DBD::CSV, nor GD could be installed properly. CPAN went through the moves, but eventually some of its tests failed and it could not terminate the install, not even with force.
Currently I am having problems with the terminal, since I am in a local network and now it seems everything is being referred to that network instead of my Mac's /Library, but it also did not finish correctly when the Terminal was still working oK. Only problem is that now I cannot get the original error message and have to logout soon.
Are those problems with CPAN known, are there workarounds, or do you simply need more data?
Cheerio, yogi
Reply With Quote
  #2  
Old April 20th, 2002, 12:00 PM
Registered User
 
Join Date: Aug 2001
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
baur is on a distinguished road
CPAN is a really nice tool, but since it automates almost the entire process, it isn't too useful all the time.

If you have a few packages that you want to install, I would suggest getting them off of www.cpan.org yourself, un-tar and install them by hand. Its usually a fairly easy and straight forward process - and if an error does occur, you might have a bit more control over what to do about it.
Reply With Quote
  #3  
Old April 20th, 2002, 03:15 PM
Registered User
 
Join Date: Apr 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
yogi is on a distinguished road
yeah, I also tried it directly, but got the same error messages as through CPAN. Luckily, this time I copied them (a bit largish, though).
This is what I get after "make" for the DBI:

[localhost:~/Documents/DBI-1.21] yogi% make
mkdir blib
mkdir blib/lib
mkdir blib/lib/DBI
cp Changes blib/lib/DBI/Changes.pm
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/DBI
mkdir blib/lib/auto
mkdir blib/lib/auto/DBI
mkdir blib/man1
mkdir blib/man3
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/Format.pm blib/lib/DBI/Format.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp lib/DBI/Shell.pm blib/lib/DBI/Shell.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" < blib/arch/auto/DBI/Driver.xst > Perl.xsi
/usr/bin/perl -I/System/Library/Perl/darwin -I/System/Library/Perl /System/Library/Perl/ExtUtils/xsubpp -typemap /System/Library/Perl/ExtUtils/typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
cc -c -g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3 -DVERSION=\"1.21\" -DXS_VERSION=\"1.21\" -I/System/Library/Perl/darwin/CORE -Wall -Wno-comment -DDBI_NO_THREADS Perl.c
#####I RECKON THIS IS WHERE IT GOES WRONG:#####
cc1obj: Invalid option `-flat_namespace'
Perl.c: In function `XS_DBD__Perl__dr_discon_all_':
Perl.c:32: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__db__login':
Perl.c:49: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__db_commit':
Perl.c:83: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__db_rollback':
Perl.c:100: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__db_disconnect':
Perl.c:117: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__db_STORE':
Perl.c:150: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__db_FETCH':
Perl.c:172: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__db_DESTROY':
Perl.c:191: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st__prepare':
Perl.c:242: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_bind_param':
Perl.c:287: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_bind_param_inout':
Perl.c:329: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_execute':
Perl.c:377: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_fetchrow_arrayref':
Perl.c:427: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_fetchrow_array':
Perl.c:446: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_finish':
Perl.c:514: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_blob_read':
Perl.c:544: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_STORE':
Perl.c:582: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_FETCH_attrib':
Perl.c:604: warning: unused variable `Perl___notused'
Perl.c: In function `XS_DBD__Perl__st_DESTROY':
Perl.c:626: warning: unused variable `Perl___notused'
Perl.c: In function `boot_DBD__Perl':
Perl.c:675: warning: unused variable `Perl___notused'
make: *** [Perl.o] Errors 1

that more suited to suggestions???
Reply With Quote
  #4  
Old April 20th, 2002, 03:23 PM
Registered User
 
Join Date: Apr 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
yogi is on a distinguished road
yeah, and the installation for GD.pm goes bad at exactly the same line; the "cc1obj: Invalid option `-flat_namespace'"
Looks like there is consistency, at least as far as error messages is concerned... So there seems to be something wrong with my cc setup.
Any suggestions there?
Reply With Quote
  #5  
Old April 21st, 2002, 01:45 AM
Registered User
 
Join Date: Aug 2001
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
baur is on a distinguished road
Are you using the most recent version of the MacOS X developer tools? It might also be worth it to install fink and some of the developer tools that come with that to see if they don't have the same issue. (Actually, I'm not sure that will help, since I'm not sure they have an alternate compiler.) ???
(I'll admit that I'm stretching right now... I had some problems making expat on OS X, so I moved to using a linux box for the development before I realized fink has expat built that I could use. fink also has the DBI.pm module already built, so that might be of some use...)
Reply With Quote
  #6  
Old April 21st, 2002, 03:58 AM
Registered User
 
Join Date: Apr 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
yogi is on a distinguished road
well, I am using Mac OS 10.1, but I only have the developer tools that came with 10.0. That might be one reason for the problems. Whereabouts can I find the latest version of the DevTools?
Reply With Quote
  #7  
Old April 21st, 2002, 10:00 AM
Registered User
 
Join Date: Apr 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
yogi is on a distinguished road
oK, the new DevTools worked. DBI is installed, as well as DBD:mysql, all as far as I can tell, since I have not really done any trickier things with the database. Only the DBD:CSV refuses to be installed (not so bad) and the GD, but I'll have to study the error messages somewhat closer to know what's going on.
Reply With Quote
  #8  
Old April 26th, 2002, 11:38 AM
usin UNIX since '92
 
Join Date: Oct 2000
Location: Barcelona, Catalonia - Spain
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
dani++ is on a distinguished road
There's this CPAN command that opens a shell on the offending module dir to let yo do things manually.

Do a 'look <module-name>' on the CPAN prompt.

dani++
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors with make while installing Perl 5.8 trex Unix & X11 3 July 6th, 2003 09:11 PM
installing Device::SerialPort perl module tobie Mac OS X System & Mac Software 0 February 20th, 2002 04:24 PM
Can't find Perl modules lwk Mac OS X System & Mac Software 0 February 11th, 2002 12:43 PM


All times are GMT -5. The time now is 07:31 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.