trying to install DBI module
while in apache2 ubuntu trying to install the DBI function recieved error messages:
something...can not find directory.... a whole bunch of these. when i run the test.pl script in the DBI-1.609 folder it gives me this: DBI object version 1.601 does not match $DBI::VERSION 1.609 at /usr/lib/perl/5.8/DynaLoader.pm line 245. BEGIN failed--compilation aborted at /home/justin/Desktop/DBI-1.609/blib/lib/DBI.pm line 263. Compilation failed in require at test.pl line 23. BEGIN failed--compilation aborted at test.pl line 23. i could upgrade the version but i dont even know what im looking for. i remember when i do perl Makefile.PL a bunch of messages comes up saying i need to disable threading. and another one says to change the LANG variable... i changed the LANG variable to UNSET but does anyone know how to disable perl threading? thanks. |
Quote:
The DBI module has prerequisites. When you run "perl Makefile.PL", it'll probably complain about what's missing. Download those dependencies, and install them, until you get everything satisfied. The test is failing because the module didn't get installed..... |
tried running Bundle::DBI module from CPAN
Running make test Prepending /home/justin/.cpan/build/Text-Reform-1.11/blib/arch /home/justin/.cpan/build/Text-Reform-1.11/blib/lib /home/justin/.cpan/build/DBD-Multiplex/blib/arch /home/justin/.cpan/build/DBD-Multiplex/blib/lib /home/justin/.cpan/build/IO-Tee-0.64/blib/arch /home/justin/.cpan/build/IO-Tee-0.64/blib/lib /home/justin/.cpan/build/Net-Daemon/blib/arch /home/justin/.cpan/build/Net-Daemon/blib/lib to PERL5LIB. PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/batch.......ok t/core........ok t/csv.........ok 1/13Unable to select 'csv': Can't locate Text/CSV_XS.pm in @INC (@INC contains: /home/justin/.cpan/build/DBI-Shell-11.95/blib/lib /home/justin/.cpan/build/DBI-Shell-11.95/blib/arch /home/justin/.cpan/build/Text-Reform-1.11/blib/arch /home/justin/.cpan/build/Text-Reform-1.11/blib/lib /home/justin/.cpan/build/DBD-Multiplex/blib/arch /home/justin/.cpan/build/DBD-Multiplex/blib/lib /home/justin/.cpan/build/IO-Tee-0.64/blib/arch /home/justin/.cpan/build/IO-Tee-0.64/blib/lib /home/justin/.cpan/build/Net-Daemon/blib/arch /home/justin/.cpan/build/Net-Daemon/blib/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/justin/.cpan/build/DBI-Shell-11.95/blib/lib/DBI/Format/CSV.pm line 20. BEGIN failed--compilation aborted at /home/justin/.cpan/build/DBI-Shell-11.95/blib/lib/DBI/Format/CSV.pm line 20. Compilation failed in require at (eval 23) line 2. BEGIN failed--compilation aborted at (eval 23) line 2. t/csv.........ok t/func........skipped all skipped: Function tests not completed t/shell.......ok t/spool.......ok t/sqlminus....ok 97/109DBD::ExampleP::db prepare failed: Unknown field names: yuck_error. t/sqlminus....ok t/timing......ok All tests successful, 1 test skipped. Files=8, Tests=274, 2 wallclock secs ( 1.52 cusr + 0.15 csys = 1.67 CPU) /usr/bin/make test -- OK Running make install Manifying blib/man1/dbish.1p Installing /usr/local/share/perl/5.8.8/DBI/Format.pm Installing /usr/local/share/perl/5.8.8/DBI/Shell.pm Installing /usr/local/share/perl/5.8.8/DBI/Format/CSV.pm Installing /usr/local/share/perl/5.8.8/DBI/Format/SQLMinus.pm Installing /usr/local/share/perl/5.8.8/DBI/Shell/FindSqlFile.pm Installing /usr/local/share/perl/5.8.8/DBI/Shell/Spool.pm Installing /usr/local/share/perl/5.8.8/DBI/Shell/SQLMinus.pm Installing /usr/local/share/perl/5.8.8/DBI/Shell/Timing.pm Installing /usr/local/share/perl/5.8.8/DBI/Shell/Completion.pm Installing /usr/local/man/man1/dbish.1p Installing /usr/local/man/man3/DBI::Format::CSV.3pm Installing /usr/local/man/man3/DBI::Format.3pm Installing /usr/local/man/man3/DBI::Shell.3pm Installing /usr/local/man/man3/DBI::Format::SQLMinus.3pm Installing /usr/local/bin/dbish Writing /usr/local/lib/perl/5.8.8/auto/DBI/Shell/.packlist Appending installation info to /usr/local/lib/perl/5.8.8/perllocal.pod make: *** No rule to make target `1'. Stop. /usr/bin/make install 1 -- NOT OK I thought that this would install all the dependencies for me but I'm missing something else. i first tried to install the dbi module itself, do i need to remove the downloaded folder first before i can go ahead with the bundle? |
i think what i have to do is create the CSV_XS.pm file and i found the source on cpan but where do i put it? meaning, where to i save the file to?
|
nevermind, i got it. i'm going to install the module now.
|
tried installing the CSV_XS module and it's giving same errors:
Checking if your kit is complete... Looks good Writing Makefile for Text::CSV_XS justin@justin-desktop:~/Desktop/Text-CSV_XS-0.65$ sudo make cp CSV_XS.pm blib/lib/Text/CSV_XS.pm /usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap CSV_XS.xs > CSV_XS.xsc && mv CSV_XS.xsc CSV_XS.c cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.65\" -DXS_VERSION=\"0.65\" -fPIC "-I/usr/lib/perl/5.8/CORE" CSV_XS.c In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:420:24: error: sys/types.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:451:19: error: ctype.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:463:23: error: locale.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:480:20: error: setjmp.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:486:26: error: sys/param.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:491:23: error: stdlib.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:496:23: error: unistd.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:776:23: error: string.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:925:27: error: netinet/in.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:929:26: error: arpa/inet.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:939:25: error: sys/stat.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:961:21: error: time.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:968:25: error: sys/time.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:975:27: error: sys/times.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:982:19: error: errno.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:997:25: error: sys/socket.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:1024:21: error: netdb.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:1127:24: error: sys/ioctl.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:1156:23: error: dirent.h: No such file or directory In file included from /usr/lib/gcc/i486-linux-gnu/4.2.4/include/syslimits.h:7, from /usr/lib/gcc/i486-linux-gnu/4.2.4/include/limits.h:11, from /usr/lib/perl/5.8/CORE/perl.h:1510, from CSV_XS.xs:8: /usr/lib/gcc/i486-linux-gnu/4.2.4/include/limits.h:122:61: error: limits.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perl.h:2120, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/handy.h:136:25: error: inttypes.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perl.h:2284, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/unixish.h:106:21: error: signal.h: No such file or directory In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:2421:33: error: pthread.h: No such file or directory In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:2423: error: expected =, ,, ;, asm or __attribute__ before perl_os_thread /usr/lib/perl/5.8/CORE/perl.h:2424: error: expected =, ,, ;, asm or __attribute__ before perl_mutex /usr/lib/perl/5.8/CORE/perl.h:2425: error: expected =, ,, ;, asm or __attribute__ before perl_cond /usr/lib/perl/5.8/CORE/perl.h:2426: error: expected =, ,, ;, asm or __attribute__ before perl_key In file included from /usr/lib/perl/5.8/CORE/iperlsys.h:51, from /usr/lib/perl/5.8/CORE/perl.h:2733, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perlio.h:65:19: error: stdio.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/iperlsys.h:51, from /usr/lib/perl/5.8/CORE/perl.h:2733, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perlio.h:259: error: expected ) before * token /usr/lib/perl/5.8/CORE/perlio.h:262: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/perlio.h:265: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/perlio.h:268: error: expected declaration specifiers or ... before FILE In file included from /usr/lib/perl/5.8/CORE/perl.h:2747, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/sv.h:389: error: expected specifier-qualifier-list before DIR In file included from /usr/lib/perl/5.8/CORE/op.h:497, from /usr/lib/perl/5.8/CORE/perl.h:2754, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/reentr.h:72:20: error: pwd.h: No such file or directory /usr/lib/perl/5.8/CORE/reentr.h:75:20: error: grp.h: No such file or directory /usr/lib/perl/5.8/CORE/reentr.h:85:26: error: crypt.h: No such file or directory /usr/lib/perl/5.8/CORE/reentr.h:90:27: error: shadow.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/op.h:497, from /usr/lib/perl/5.8/CORE/perl.h:2754, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/reentr.h:612: error: field _crypt_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:620: error: field _drand48_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:624: error: field _grent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:635: error: field _hostent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:654: error: field _netent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:669: error: field _protoent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:684: error: field _pwent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:695: error: field _servent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:710: error: field _spent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:721: error: field _gmtime_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:724: error: field _localtime_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:771: error: field _random_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:772: error: expected specifier-qualifier-list before int32_t In file included from /usr/lib/perl/5.8/CORE/perl.h:2756, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/av.h:13: error: expected specifier-qualifier-list before ssize_t In file included from /usr/lib/perl/5.8/CORE/perl.h:2759, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/scope.h:232: error: expected specifier-qualifier-list before sigjmp_buf In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:2931: error: expected =, ,, ;, asm or __attribute__ before getuid /usr/lib/perl/5.8/CORE/perl.h:2932: error: expected =, ,, ;, asm or __attribute__ before geteuid /usr/lib/perl/5.8/CORE/perl.h:2933: error: expected =, ,, ;, asm or __attribute__ before getgid /usr/lib/perl/5.8/CORE/perl.h:2934: error: expected =, ,, ;, asm or __attribute__ before getegid In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:3238:22: error: math.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perl.h:3881, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/thrdvar.h:85: error: field Tstatbuf has incomplete type /usr/lib/perl/5.8/CORE/thrdvar.h:86: error: field Tstatcache has incomplete type /usr/lib/perl/5.8/CORE/thrdvar.h:91: error: field Ttimesbuf has incomplete type In file included from /usr/lib/perl/5.8/CORE/perl.h:3883, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/intrpvar.h:66: error: expected specifier-qualifier-list before time_t In file included from /usr/lib/perl/5.8/CORE/perl.h:3950, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/proto.h:128: error: expected declaration specifiers or ... before mode_t /usr/lib/perl/5.8/CORE/proto.h:128: error: expected declaration specifiers or ... before uid_t /usr/lib/perl/5.8/CORE/proto.h:297: error: expected declaration specifiers or ... before off64_t /usr/lib/perl/5.8/CORE/proto.h:299: error: expected =, ,, ;, asm or __attribute__ before Perl_do_sysseek /usr/lib/perl/5.8/CORE/proto.h:300: error: expected =, ,, ;, asm or __attribute__ before Perl_do_tell /usr/lib/perl/5.8/CORE/proto.h:411: error: expected declaration specifiers or ... before gid_t /usr/lib/perl/5.8/CORE/proto.h:411: error: expected declaration specifiers or ... before uid_t /usr/lib/perl/5.8/CORE/proto.h:736: error: expected =, ,, ;, asm or __attribute__ before Perl_my_fork /usr/lib/perl/5.8/CORE/proto.h:1020: error: expected declaration specifiers or ... before pid_t /usr/lib/perl/5.8/CORE/proto.h:1300: error: expected declaration specifiers or ... before pid_t /usr/lib/perl/5.8/CORE/proto.h:1456: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/proto.h:2002: error: expected =, ,, ;, asm or __attribute__ before Perl_PerlIO_read /usr/lib/perl/5.8/CORE/proto.h:2003: error: expected =, ,, ;, asm or __attribute__ before Perl_PerlIO_write /usr/lib/perl/5.8/CORE/proto.h:2004: error: expected =, ,, ;, asm or __attribute__ before Perl_PerlIO_unread /usr/lib/perl/5.8/CORE/proto.h:2005: error: expected =, ,, ;, asm or __attribute__ before Perl_PerlIO_tell /usr/lib/perl/5.8/CORE/proto.h:2006: error: expected declaration specifiers or ... before off64_t In file included from /usr/lib/perl/5.8/CORE/perl.h:3988, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perlvars.h:31: error: expected =, ,, ;, asm or __attribute__ before PL_thr_key /usr/lib/perl/5.8/CORE/perlvars.h:48: error: expected =, ,, ;, asm or __attribute__ before PL_op_mutex /usr/lib/perl/5.8/CORE/perlvars.h:52: error: expected =, ,, ;, asm or __attribute__ before PL_dollarzero_mutex /usr/lib/perl/5.8/CORE/perl.h:4485:24: error: sys/ipc.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:4486:24: error: sys/sem.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:4611:24: error: sys/file.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perlapi.h:38, from /usr/lib/perl/5.8/CORE/XSUB.h:349, from CSV_XS.xs:9: /usr/lib/perl/5.8/CORE/intrpvar.h:66: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/intrpvar.h:237: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/intrpvar.h:238: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/intrpvar.h:239: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/intrpvar.h:240: error: expected =, ,, ;, asm or __attribute__ before * token In file included from /usr/lib/perl/5.8/CORE/perlapi.h:39, from /usr/lib/perl/5.8/CORE/XSUB.h:349, from CSV_XS.xs:9: /usr/lib/perl/5.8/CORE/perlvars.h:31: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/perlvars.h:48: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/perlvars.h:52: error: expected =, ,, ;, asm or __attribute__ before * token CSV_XS.xs: In function cx_SetupCsv: CSV_XS.xs:232: warning: incompatible implicit declaration of built-in function memcpy CSV_XS.xs:357: warning: incompatible implicit declaration of built-in function strcpy make: *** [CSV_XS.o] Error 1 justin@justin-desktop:~/Desktop/Text-CSV_XS-0.65$ make cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.65\" -DXS_VERSION=\"0.65\" -fPIC "-I/usr/lib/perl/5.8/CORE" CSV_XS.c In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:420:24: error: sys/types.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:451:19: error: ctype.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:463:23: error: locale.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:480:20: error: setjmp.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:486:26: error: sys/param.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:491:23: error: stdlib.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:496:23: error: unistd.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:776:23: error: string.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:925:27: error: netinet/in.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:929:26: error: arpa/inet.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:939:25: error: sys/stat.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:961:21: error: time.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:968:25: error: sys/time.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:975:27: error: sys/times.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:982:19: error: errno.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:997:25: error: sys/socket.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:1024:21: error: netdb.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:1127:24: error: sys/ioctl.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:1156:23: error: dirent.h: No such file or directory In file included from /usr/lib/gcc/i486-linux-gnu/4.2.4/include/syslimits.h:7, from /usr/lib/gcc/i486-linux-gnu/4.2.4/include/limits.h:11, from /usr/lib/perl/5.8/CORE/perl.h:1510, from CSV_XS.xs:8: /usr/lib/gcc/i486-linux-gnu/4.2.4/include/limits.h:122:61: error: limits.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perl.h:2120, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/handy.h:136:25: error: inttypes.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perl.h:2284, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/unixish.h:106:21: error: signal.h: No such file or directory In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:2421:33: error: pthread.h: No such file or directory In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:2423: error: expected =, ,, ;, asm or __attribute__ before perl_os_thread /usr/lib/perl/5.8/CORE/perl.h:2424: error: expected =, ,, ;, asm or __attribute__ before perl_mutex /usr/lib/perl/5.8/CORE/perl.h:2425: error: expected =, ,, ;, asm or __attribute__ before perl_cond /usr/lib/perl/5.8/CORE/perl.h:2426: error: expected =, ,, ;, asm or __attribute__ before perl_key In file included from /usr/lib/perl/5.8/CORE/iperlsys.h:51, from /usr/lib/perl/5.8/CORE/perl.h:2733, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perlio.h:65:19: error: stdio.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/iperlsys.h:51, from /usr/lib/perl/5.8/CORE/perl.h:2733, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perlio.h:259: error: expected ) before * token /usr/lib/perl/5.8/CORE/perlio.h:262: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/perlio.h:265: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/perlio.h:268: error: expected declaration specifiers or ... before FILE In file included from /usr/lib/perl/5.8/CORE/perl.h:2747, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/sv.h:389: error: expected specifier-qualifier-list before DIR In file included from /usr/lib/perl/5.8/CORE/op.h:497, from /usr/lib/perl/5.8/CORE/perl.h:2754, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/reentr.h:72:20: error: pwd.h: No such file or directory /usr/lib/perl/5.8/CORE/reentr.h:75:20: error: grp.h: No such file or directory /usr/lib/perl/5.8/CORE/reentr.h:85:26: error: crypt.h: No such file or directory /usr/lib/perl/5.8/CORE/reentr.h:90:27: error: shadow.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/op.h:497, from /usr/lib/perl/5.8/CORE/perl.h:2754, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/reentr.h:612: error: field _crypt_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:620: error: field _drand48_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:624: error: field _grent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:635: error: field _hostent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:654: error: field _netent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:669: error: field _protoent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:684: error: field _pwent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:695: error: field _servent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:710: error: field _spent_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:721: error: field _gmtime_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:724: error: field _localtime_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:771: error: field _random_struct has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:772: error: expected specifier-qualifier-list before int32_t In file included from /usr/lib/perl/5.8/CORE/perl.h:2756, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/av.h:13: error: expected specifier-qualifier-list before ssize_t In file included from /usr/lib/perl/5.8/CORE/perl.h:2759, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/scope.h:232: error: expected specifier-qualifier-list before sigjmp_buf In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:2931: error: expected =, ,, ;, asm or __attribute__ before getuid /usr/lib/perl/5.8/CORE/perl.h:2932: error: expected =, ,, ;, asm or __attribute__ before geteuid /usr/lib/perl/5.8/CORE/perl.h:2933: error: expected =, ,, ;, asm or __attribute__ before getgid /usr/lib/perl/5.8/CORE/perl.h:2934: error: expected =, ,, ;, asm or __attribute__ before getegid In file included from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perl.h:3238:22: error: math.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perl.h:3881, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/thrdvar.h:85: error: field Tstatbuf has incomplete type /usr/lib/perl/5.8/CORE/thrdvar.h:86: error: field Tstatcache has incomplete type /usr/lib/perl/5.8/CORE/thrdvar.h:91: error: field Ttimesbuf has incomplete type In file included from /usr/lib/perl/5.8/CORE/perl.h:3883, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/intrpvar.h:66: error: expected specifier-qualifier-list before time_t In file included from /usr/lib/perl/5.8/CORE/perl.h:3950, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/proto.h:128: error: expected declaration specifiers or ... before mode_t /usr/lib/perl/5.8/CORE/proto.h:128: error: expected declaration specifiers or ... before uid_t /usr/lib/perl/5.8/CORE/proto.h:297: error: expected declaration specifiers or ... before off64_t /usr/lib/perl/5.8/CORE/proto.h:299: error: expected =, ,, ;, asm or __attribute__ before Perl_do_sysseek /usr/lib/perl/5.8/CORE/proto.h:300: error: expected =, ,, ;, asm or __attribute__ before Perl_do_tell /usr/lib/perl/5.8/CORE/proto.h:411: error: expected declaration specifiers or ... before gid_t /usr/lib/perl/5.8/CORE/proto.h:411: error: expected declaration specifiers or ... before uid_t /usr/lib/perl/5.8/CORE/proto.h:736: error: expected =, ,, ;, asm or __attribute__ before Perl_my_fork /usr/lib/perl/5.8/CORE/proto.h:1020: error: expected declaration specifiers or ... before pid_t /usr/lib/perl/5.8/CORE/proto.h:1300: error: expected declaration specifiers or ... before pid_t /usr/lib/perl/5.8/CORE/proto.h:1456: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/proto.h:2002: error: expected =, ,, ;, asm or __attribute__ before Perl_PerlIO_read /usr/lib/perl/5.8/CORE/proto.h:2003: error: expected =, ,, ;, asm or __attribute__ before Perl_PerlIO_write /usr/lib/perl/5.8/CORE/proto.h:2004: error: expected =, ,, ;, asm or __attribute__ before Perl_PerlIO_unread /usr/lib/perl/5.8/CORE/proto.h:2005: error: expected =, ,, ;, asm or __attribute__ before Perl_PerlIO_tell /usr/lib/perl/5.8/CORE/proto.h:2006: error: expected declaration specifiers or ... before off64_t In file included from /usr/lib/perl/5.8/CORE/perl.h:3988, from CSV_XS.xs:8: /usr/lib/perl/5.8/CORE/perlvars.h:31: error: expected =, ,, ;, asm or __attribute__ before PL_thr_key /usr/lib/perl/5.8/CORE/perlvars.h:48: error: expected =, ,, ;, asm or __attribute__ before PL_op_mutex /usr/lib/perl/5.8/CORE/perlvars.h:52: error: expected =, ,, ;, asm or __attribute__ before PL_dollarzero_mutex /usr/lib/perl/5.8/CORE/perl.h:4485:24: error: sys/ipc.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:4486:24: error: sys/sem.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:4611:24: error: sys/file.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perlapi.h:38, from /usr/lib/perl/5.8/CORE/XSUB.h:349, from CSV_XS.xs:9: /usr/lib/perl/5.8/CORE/intrpvar.h:66: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/intrpvar.h:237: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/intrpvar.h:238: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/intrpvar.h:239: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/intrpvar.h:240: error: expected =, ,, ;, asm or __attribute__ before * token In file included from /usr/lib/perl/5.8/CORE/perlapi.h:39, from /usr/lib/perl/5.8/CORE/XSUB.h:349, from CSV_XS.xs:9: /usr/lib/perl/5.8/CORE/perlvars.h:31: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/perlvars.h:48: error: expected =, ,, ;, asm or __attribute__ before * token /usr/lib/perl/5.8/CORE/perlvars.h:52: error: expected =, ,, ;, asm or __attribute__ before * token CSV_XS.xs: In function cx_SetupCsv: CSV_XS.xs:232: warning: incompatible implicit declaration of built-in function memcpy CSV_XS.xs:357: warning: incompatible implicit declaration of built-in function strcpy make: *** [CSV_XS.o] Error 1 maybe i need to change my Lang variable? LANG=en_US.UTF-8 GDM_LANG=en_US.UTF-8 |
Those are *not* the same errors. Apparently you're missing
most basic stuff to compile anything ... try: apt-get install build-essential I'm not too familiar with Ubuntu, but chances are you're missing kernel-headers and other things, too. Speaking of which: before trying to install all that stuff from source/CPAN ... have you actually checked Ubunuts repositories for the dbi module(s)? I'm fairly certain you'll find them there, ready for install... Cheers, Tink |
installed essentials:
apt-get install build-essential then was able to install DBI module. had some trouble installing the DBD::mysql module but finally figured out that i didnt have the mysql_config file. installed that and now i am able to connect and update my db through perl. thanks dude. |
apt-cache search dbi
I bet there's pre-fab packages around ... ;} Never mind. Cheers, Tink |
I know this thread is solved but why not use:
Code:
perl -MCPAN -e 'install DBI' |
That's good for modules that aren't in the repos, but for those that are, its safer to use the repo one.
|
I thought of the CPAN archive as kind of a repository. Do you mind explaining to me why one way is safer than the other?
|
Quote:
Or because they'll always match the pre-existing standards, and you'll get warnings from the packet management system when you're about to do something silly. Cheers, Tink |
I see thanks' I've been known to do some silly things'
|
All times are GMT -5. The time now is 09:28 PM. |