Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / October 2004



Tip: Looking for answers? Try searching our database.

Unable to install modules that require compilation of C code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Jantzen - 29 Sep 2004 22:13 GMT
Hi Folks,

I've been struggling for some time trying to use the CPAN module to
install modules with C components.  For example, trying to get DBI
installed yields this:

/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp  -typemap
/System/Library/Perl/5.8.1/ExtUtils/typemap -typemap typemap  Perl.xs >
Perl.xsc && mv Perl.xsc Perl.c
cc -c   -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include -Os   -DVERSION=\"1.43\"
-DXS_VERSION=\"1.43\"  
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"  -Wall
-Wno-comment Perl.c
/usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp  -typemap
/System/Library/Perl/5.8.1/ExtUtils/typemap -typemap typemap  DBI.xs >
DBI.xsc && mv DBI.xsc DBI.c
cc -c   -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include -Os   -DVERSION=\"1.43\"
-DXS_VERSION=\"1.43\"  
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"  -Wall
-Wno-comment DBI.c
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -undefined
dynamic_lookup -L/usr/local/lib DBI.o  -o blib/arch/auto/DBI/DBI.bundle
ld: can't locate file for: -lbundle1.o
make: *** [blib/arch/auto/DBI/DBI.bundle] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

Note that I'm attempting to utilize the fix mentioned here:

  http://www.mail-archive.com/macosx@perl.org/msg05736.html

The OS is 10.3.5 with the stock Perl 5.8.1 installation.

TIA,
David
Ken Williams - 29 Sep 2004 22:42 GMT
Hi David,

Try applying the same fix you applied to 'ld' on the 'shrpenv' entry in
Config.pm.

By the way, my relevant line says:

  shrpenv='env
LD_RUN_PATH=/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE'

Does yours say:

  shrpenv='LD_RUN_PATH=""'

?  Weird.

 -Ken

> Hi Folks,
>
[quoted text clipped - 41 lines]
> TIA,
> David
David Jantzen - 29 Sep 2004 23:01 GMT
Hi Ken, my shrpenv entry is the same as yours:

  shrpenv='env  
LD_RUN_PATH=/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE'

> Hi David,
>
[quoted text clipped - 60 lines]
>> TIA,
>> David
David Jantzen - 06 Oct 2004 04:24 GMT
I encountered a similar problem compiling nmap ("compiler cannot create  
executable") and decided to try upgrading my installation of the Xcode  
Tools (which come with 10.3 by default).  After registration you can  
get the update here:

  http://developer.apple.com/tools/download/

That solved the nmap issue and the problems with compiling C code using  
CPAN.  DBD::mysql here I come

:^D

> Hi Ken, my shrpenv entry is the same as yours:
>
[quoted text clipped - 66 lines]
>>> TIA,
>>> David
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.