Trying to install perl module


 
Thread Tools Search this Thread
Operating Systems Solaris Trying to install perl module
# 1  
Old 02-15-2011
Trying to install perl module

Here's the deal:

I'm trying to install perl's DBI Module in my Solaris 11 express ( ALSO TRYING IN SOLARIS 10 )
but I'm getting these errors/warnings when using the respective commands

perl Makefile.PL

PHP Code:
Warningprerequisite ExtUtils::MakeMaker 6.48 not foundWe have 6.42.
Warningprerequisite Test::Simple 0.90 not foundWe have 0.72.

    
I see you're using perl 5.010000 on i86pc-solaris-64int, okay.
    Remember to actually *read* the README file!
    Use  '
make' to build the software (dmake or nmake on Windows).
    Then '
make test' to execute self tests.
    Then '
make install' to install the DBI and then delete this working
    directory before unpacking and building any DBD::* drivers 
Then, make:
PHP Code:
cc -c   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -DPERL_USE_SAFE_PUTENV -xO3 -xspace -xildoff   -DVERSION=\"1.616\" -DXS_VERSION=\"1.616\" -KPIC "-I/usr/perl5/5.10.0/lib/i86pc-solaris-64int/CORE"  -DDBI_NO_THREADS Perl.c
cc: unrecognized option `-KPIC'
cc: language ildoff not recognized
cc: Perl.c: linker input file unused because linking not done
/usr/bin/perl /usr/perl5/5.10.0/lib/ExtUtils/xsubpp  -typemap /usr/perl5/5.10.0/lib/ExtUtils/typemap -typemap typemap  DBI.xs > DBI.xsc && mv DBI.xsc DBI.c
cc -c   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -DPERL_USE_SAFE_PUTENV -xO3 -xspace -xildoff   -DVERSION=\"1.616\" -DXS_VERSION=\"1.616\" -KPIC "
-I/usr/perl5/5.10.0/lib/i86pc-solaris-64int/CORE"  -DDBI_NO_THREADS DBI.c
cc: unrecognized option `-KPIC'
cc: language ildoff not recognized
cc: DBI.c: linker input file unused because linking not done
rm -f blib/arch/auto/DBI/DBI.so
cc  -G DBI.o  -o blib/arch/auto/DBI/DBI.so     \
             \
      
cc: DBI.o: No such file or directory
cc: no input files
make: *** [blib/arch/auto/DBI/DBI.so] Error 
I also used perlgcc and gmake but still getting similar errors, can anybody gimme a hand, i will appreciate it very much Smilie

Last edited by alvaradogunner; 02-15-2011 at 11:22 PM..
# 2  
Old 02-16-2011
Make sure, /usr/bin is before /usr/gnu/bin in $PATH and that you have installed the sun studio compiler. It seems, you are using the gcc (as /usr/gnu/bin/cc).

Code:
 # pkg install sunstudio12u1
  
$ PATH=/usr/bin:/usr/gnu/bin
$ whence cc
/usr/bin/cc

# 3  
Old 02-16-2011
Thanks for replying Hergp.

I think i successfully installed the DBI module, but now i gotta install DBD:

/usr/perl5/something/perlgcc

PHP Code:
PLEASE NOTE:

For 
'make test' to run properlyyou must ensure that the 
database user 
'andres' can connect to your MySQL server 
and has the proper privileges that these tests require such 
as 'drop table''create table''drop procedure''create procedure'
as well as others

mysqlgrant all privileges on test.* to 'andres'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

I will 
use the following settings for compiling and testing:

  
cflags        (mysql_config) = -I/usr/sfw/include/mysql -xstrconst -mt
  embedded      
(mysql_config) = 
  
libs          (mysql_config) = -R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
  mysql_config  
(guessed     ) = mysql_config
  nocatchstderr 
(default     ) = 0
  nofoundrows   
(default     ) = 0
  ssl           
(guessed     ) = 0
  testdb        
(default     ) = test
  testhost      
(default     ) = 
  
testpassword  (default     ) = 
  
testsocket    (default     ) = 
  
testuser      (guessed     ) = andres

To change these settings
see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Multiple copies of Driver.xst found in: /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/DBI/ /usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/auto/DBIat Makefile.PL line 907
Using DBI 1.616 
(for perl 5.008004 on i86pc-solaris-64intinstalled in /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/DBI/
Writing Makefile for DBD::mysql 
then, calling a gmake:
PHP Code:
gcc -c  -I/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/DBI -I/usr/sfw/include/mysql -xstrconst -mt -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-aliasing   -DVERSION=\"4.018\" -DXS_VERSION=\"4.018\" -fPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"   dbdimp.c
gcc: language strconst not recognized
gcc: dbdimp.c: linker input file unused because linking not done
gcc -c  -I/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/DBI -I/usr/sfw/include/mysql -xstrconst -mt -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 -fno-strict-aliasing   -DVERSION=\"4.018\" -DXS_VERSION=\"4.018\" -fPIC "
-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"   mysql.c
gcc: language strconst not recognized
gcc: mysql.c: linker input file unused because linking not done
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="
/usr/sfw/lib:/usr/lib:/lib" /usr/perl5/5.8.4/bin/perl myld gcc  -G dbdimp.o mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so   -R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm   
gcc: dbdimp.o: No existe tal archivo o directorio
gcc: mysql.o: No existe tal archivo o directorio
gmake: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1 
Any suggestions?
# 4  
Old 02-17-2011
I think, this is the same problem as before. You are using gcc instead of cc and the makefile uses '-xstrconst', which is cc-specific.

Either remove '-xstrconst' from the makefile or - better - use the sunstudio compiler.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Solaris install php as an apache module

Hi, I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10. Please any help is wellcome. Some aditional info: /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs bash-3.2# g++ -v Reading specs from... (1 Reply)
Discussion started by: lbslbs
1 Replies

2. Shell Programming and Scripting

Unable to install module using cpan

Hi, I am unable to install module using cpan. It says 407 Proxy Authentication Required I did setup proxy server and given username and password in .bashrc file and apt.conf file. export http_proxy=http://username:password@proxyserver:portno/ However, still unable to install... (1 Reply)
Discussion started by: Anjan1
1 Replies

3. Solaris

perl module install issue

Hi, I've been trying to install the perl module DateTime-0.72 onto Solaris 10 server. # uname -a SunOS 5.10 Generic_142910-17 i86pc i386 i86pc but I'm getting the following error: /export/home/perl-modules/DateTime-0.72/> perl Build.PL Can't locate Module/Build.pm in @INC (@INC... (4 Replies)
Discussion started by: keatingb
4 Replies

4. Shell Programming and Scripting

Unable to Install "Devel-Profile" perl module in windows.

Hi, I want to install 'Devel-Profile' in windows but i am not able to install. Here is the error. PPM> install Devel-Profile Install package 'Devel-Profile?' (y/N): y Installing package 'Devel-Profile'... Error installing package 'Devel-Profile': Could not locate a PPD file for... (3 Replies)
Discussion started by: vanitham
3 Replies

5. Shell Programming and Scripting

Can't locate inc/Module/Install.pm in @INC

Hi, I'm trying to install "Date-FromToday" module on my solaris box as below. #perl Makefile.pl (i got the below error) Can't locate inc/Module/Install.pm in @INC (@INC contains: /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int... (3 Replies)
Discussion started by: admin@2010
3 Replies

6. Shell Programming and Scripting

calling perl subroutine from perl expect module

All, Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm logging in using the expect module, the logic is also available in the same expect program. Thanks,... (5 Replies)
Discussion started by: arun_maffy
5 Replies

7. OS X (Apple)

Unable to install Perl module via CPAN

Hi, I am trying to install Unicode::String from the cpan shell, and here is what I get: Checking if your kit is complete... Looks good Writing Makefile for Unicode::String cp String.pm blib/lib/Unicode/String.pm cp lib/Unicode/CharName.pm blib/lib/Unicode/CharName.pm... (3 Replies)
Discussion started by: psychomachine
3 Replies

8. Shell Programming and Scripting

[Perl] How to install with CPAN specified version of module

Hello all, i am searching how to install a module but the question is : howto specify CPAN to install a determined version of the module ? In my case i want to install DBD:Oracle1.14 and not version 1.23 proposed ! Any idea welcome ! :rolleyes: Thanks ! (1 Reply)
Discussion started by: sun_cracker
1 Replies

9. Solaris

Install Perl Module

Hi Every one, I am suing solaris 5.10. i want install perl modules, how insall cn any body help me to install perl Module.. Thank you for your Help Thanks, Hari.A. (1 Reply)
Discussion started by: hari.jnvc90
1 Replies

10. Shell Programming and Scripting

PERL DBI module install

We ran into an issue trying to install DBI and DB2 modules for perl for AIX from the link http://www-306.ibm.com/software/data/db2/perl/ We tried to install the DBI module using bash# perl -MCPAN -e 'install DBI' command. However we ended up with the following error. Stop. ... (3 Replies)
Discussion started by: jerardfjay
3 Replies
Login or Register to Ask a Question