How to restrict who may read my entries?
DBI-1.59 install failure on Ubuntu. lacking......compiler complains of missing files
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Ñîîáùåñòâà
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Perl web-programming > DBI-1.59 install failure on Ubuntu. lacking......compil­er complains of missing files 15 September 2007 10:21:15

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Ìîäåðàòîð:

DBI-1.59 install failure on Ubuntu. lacking......compil­er complains of missing files

Nn Nn 12 September 2007 17:26:14
 Hi!

I can't install DBI-1.59 on ubuntu 7.04 with
This is perl, v5.8.8 built for
i486-linux-gnu-thre­ad-multi
Seems like ubuntu lacks some files. but which?
Can't install through cpan or synaptic either.

After downloading DBI-1.59, the 'Makefile.PL' runs
fine, but When trying to 'make' I get this:

cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS­
-DDEBIAN -fno-strict-aliasin­g -pipe
-I/usr/local/includ­e -D_LARGEFILE_SOURCE­
-D_FILE_OFFSET_BITS­=64 -O2 -DVERSION=\"1.59\"
-DXS_VERSION=\"1.59­\" -fPIC "-I/usr/lib/perl/5.­8/CORE"
-W -Wall -Wpointer-arith -Wbad-function-cast­
-Wno-comment -Wno-sign-compare -Wno-cast-qual
-Wmissing-noreturn -Wno-unused-paramet­er Perl.c
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perl.h:420:24: error:
sys/types.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:451:19: error: ctype.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:463:23: error: locale.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:480:20: error: setjmp.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:486:26: error:
sys/param.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:491:23: error: stdlib.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:496:23: error: unistd.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:776:23: error: string.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:925:27: error:
netinet/in.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:929:26: error:
arpa/inet.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:939:25: error:
sys/stat.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:961:21: error: time.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:968:25: error:
sys/time.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:975:27: error:
sys/times.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:982:19: error: errno.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:997:25: error:
sys/socket.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:1024:21: error: netdb.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:1127:24: error:
sys/ioctl.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:1156:23: error:
dirent.h: No such file or directory
In file included from
/usr/lib/gcc/i486-l­inux-gnu/4.1.2/inclu­de/syslimits.h:7,
from
/usr/lib/gcc/i486-l­inux-gnu/4.1.2/inclu­de/limits.h:11,
from
/usr/lib/perl/5.8/C­ORE/perl.h:1510,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/gcc/i486-l­inux-gnu/4.1.2/inclu­de/limits.h:122:61:
error: limits.h: No such file or directory
In file included from
/usr/lib/perl/5.8/C­ORE/perl.h:2120,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/handy.h:136:25: error:
inttypes.h: No such file or directory
In file included from
/usr/lib/perl/5.8/C­ORE/perl.h:2284,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/unixish.h:106:21­: error:
signal.h: No such file or directory
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perl.h:2421:33: error:
pthread.h: No such file or directory
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perl.h:2423: error: expected
= , , , ; , asm or __attribute__ before
perl_os_thread
/usr/lib/perl/5.8/C­ORE/perl.h:2424: error: expected
= , , , ; , asm or __attribute__ before
perl_mutex
/usr/lib/perl/5.8/C­ORE/perl.h:2425: error: expected
= , , , ; , asm or __attribute__ before
perl_cond
/usr/lib/perl/5.8/C­ORE/perl.h:2426: error: expected
= , , , ; , asm or __attribute__ before
perl_key
In file included from
/usr/lib/perl/5.8/C­ORE/iperlsys.h:51,
from
/usr/lib/perl/5.8/C­ORE/perl.h:2733,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perlio.h:65:19: error: stdio.h:
No such file or directory
In file included from
/usr/lib/perl/5.8/C­ORE/iperlsys.h:51,
from
/usr/lib/perl/5.8/C­ORE/perl.h:2733,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perlio.h:259: error: expected
) before * token
/usr/lib/perl/5.8/C­ORE/perlio.h:262: error: expected
= , , , ; , asm or __attribute__ before *
token
/usr/lib/perl/5.8/C­ORE/perlio.h:265: error: expected
= , , , ; , asm or __attribute__ before *
token
/usr/lib/perl/5.8/C­ORE/perlio.h:268: error: expected
declaration specifiers or ... before FILE
In file included from
/usr/lib/perl/5.8/C­ORE/perl.h:2747,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/sv.h:389: error: expected
specifier-qualifier­-list before DIR
In file included from /usr/lib/perl/5.8/C­ORE/op.h:497,
from
/usr/lib/perl/5.8/C­ORE/perl.h:2754,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/reentr.h:72:20: error: pwd.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/reentr.h:75:20: error: grp.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/reentr.h:85:26: error: crypt.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/reentr.h:90:27: error:
shadow.h: No such file or directory
In file included from /usr/lib/perl/5.8/C­ORE/op.h:497,
from
/usr/lib/perl/5.8/C­ORE/perl.h:2754,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/reentr.h:612: error: field
_crypt_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:620: error: field
_drand48_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:624: error: field
_grent_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:635: error: field
_hostent_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:654: error: field
_netent_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:669: error: field
_protoent_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:684: error: field
_pwent_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:695: error: field
_servent_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:710: error: field
_spent_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:721: error: field
_gmtime_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:724: error: field
_localtime_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:771: error: field
_random_struct has incomplete type
/usr/lib/perl/5.8/C­ORE/reentr.h:772: error: expected
specifier-qualifier­-list before int32_t
In file included from
/usr/lib/perl/5.8/C­ORE/perl.h:2756,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/av.h:13: error: expected
specifier-qualifier­-list before ssize_t
In file included from
/usr/lib/perl/5.8/C­ORE/perl.h:2759,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/scope.h:232: error: expected
specifier-qualifier­-list before sigjmp_buf
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perl.h:2931: error: expected
= , , , ; , asm or __attribute__ before
getuid
/usr/lib/perl/5.8/C­ORE/perl.h:2932: error: expected
= , , , ; , asm or __attribute__ before
geteuid
/usr/lib/perl/5.8/C­ORE/perl.h:2933: error: expected
= , , , ; , asm or __attribute__ before
getgid
/usr/lib/perl/5.8/C­ORE/perl.h:2934: error: expected
= , , , ; , asm or __attribute__ before
getegid
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perl.h:3238:22: error: math.h:
No such file or directory
In file included from
/usr/lib/perl/5.8/C­ORE/perl.h:3881,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/thrdvar.h:85: error: field
Tstatbuf has incomplete type
/usr/lib/perl/5.8/C­ORE/thrdvar.h:86: error: field
Tstatcache has incomplete type
/usr/lib/perl/5.8/C­ORE/thrdvar.h:91: error: field
Ttimesbuf has incomplete type
In file included from
/usr/lib/perl/5.8/C­ORE/perl.h:3883,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/intrpvar.h:66: error: expected
specifier-qualifier­-list before time_t
In file included from
/usr/lib/perl/5.8/C­ORE/perl.h:3950,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/proto.h:128: error: expected
declaration specifiers or ... before mode_t
/usr/lib/perl/5.8/C­ORE/proto.h:128: error: expected
declaration specifiers or ... before uid_t
/usr/lib/perl/5.8/C­ORE/proto.h:297: error: expected
declaration specifiers or ... before off64_t
/usr/lib/perl/5.8/C­ORE/proto.h:299: error: expected
= , , , ; , asm or __attribute__ before
Perl_do_sysseek
/usr/lib/perl/5.8/C­ORE/proto.h:300: error: expected
= , , , ; , asm or __attribute__ before
Perl_do_tell
/usr/lib/perl/5.8/C­ORE/proto.h:411: error: expected
declaration specifiers or ... before gid_t
/usr/lib/perl/5.8/C­ORE/proto.h:411: error: expected
declaration specifiers or ... before uid_t
/usr/lib/perl/5.8/C­ORE/proto.h:736: error: expected
= , , , ; , asm or __attribute__ before
Perl_my_fork
/usr/lib/perl/5.8/C­ORE/proto.h:1020: error: expected
declaration specifiers or ... before pid_t
/usr/lib/perl/5.8/C­ORE/proto.h:1300: error: expected
declaration specifiers or ... before pid_t
/usr/lib/perl/5.8/C­ORE/proto.h:1456: error: expected
= , , , ; , asm or __attribute__ before *
token
/usr/lib/perl/5.8/C­ORE/proto.h:2001: error: expected
= , , , ; , asm or __attribute__ before
Perl_PerlIO_read
/usr/lib/perl/5.8/C­ORE/proto.h:2002: error: expected
= , , , ; , asm or __attribute__ before
Perl_PerlIO_write
/usr/lib/perl/5.8/C­ORE/proto.h:2003: error: expected
= , , , ; , asm or __attribute__ before
Perl_PerlIO_unread
/usr/lib/perl/5.8/C­ORE/proto.h:2004: error: expected
= , , , ; , asm or __attribute__ before
Perl_PerlIO_tell
/usr/lib/perl/5.8/C­ORE/proto.h:2005: error: expected
declaration specifiers or ... before off64_t
In file included from
/usr/lib/perl/5.8/C­ORE/perl.h:3988,
from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perlvars.h:31: error: expected
= , , , ; , asm or __attribute__ before
PL_thr_key
/usr/lib/perl/5.8/C­ORE/perlvars.h:48: error: expected
= , , , ; , asm or __attribute__ before
PL_op_mutex
/usr/lib/perl/5.8/C­ORE/perlvars.h:52: error: expected
= , , , ; , asm or __attribute__ before
PL_dollarzero_mutex­
/usr/lib/perl/5.8/C­ORE/perl.h:4485:24: error:
sys/ipc.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:4486:24: error:
sys/sem.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:4611:24: error:
sys/file.h: No such file or directory
In file included from
/usr/lib/perl/5.8/C­ORE/perlapi.h:38,
from
/usr/lib/perl/5.8/C­ORE/XSUB.h:349,
from DBIXS.h:20,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/intrpvar.h:66: error: expected
= , , , ; , asm or __attribute__ before *
token
/usr/lib/perl/5.8/C­ORE/intrpvar.h:237: error: expected
= , , , ; , asm or __attribute__ before *
token
/usr/lib/perl/5.8/C­ORE/intrpvar.h:238: error: expected
= , , , ; , asm or __attribute__ before *
token
/usr/lib/perl/5.8/C­ORE/intrpvar.h:239: error: expected
= , , , ; , asm or __attribute__ before *
token
/usr/lib/perl/5.8/C­ORE/intrpvar.h:240: error: expected
= , , , ; , asm or __attribute__ before *
token
In file included from
/usr/lib/perl/5.8/C­ORE/perlapi.h:39,
from
/usr/lib/perl/5.8/C­ORE/XSUB.h:349,
from DBIXS.h:20,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perlvars.h:31: error: expected
= , , , ; , asm or __attribute__ before *
token
/usr/lib/perl/5.8/C­ORE/perlvars.h:48: error: expected
= , , , ; , asm or __attribute__ before *
token
/usr/lib/perl/5.8/C­ORE/perlvars.h:52: error: expected
= , , , ; , asm or __attribute__ before *
token
Perl.xs: In function dbd_st_rows :
Perl.xs:42: warning: implicit declaration of function
pthread_getspecific­
Perl.xs:42: warning: implicit declaration of function
Perl_Gthr_key_ptr
Perl.xs:42: error: invalid type argument of unary *
Perl.xs:42: warning: cast from function call of type
int to non-matching type struct PerlInterpreter *
In file included from Perl.c:62:
Driver_xst.h: In function dbixst_bounce_metho­d :
Driver_xst.h:18: error: invalid type argument of
unary *
Driver_xst.h:18: warning: cast from function call of
type int to non-matching type struct
PerlInterpreter *
Driver_xst.h: In function dbdxst_bind_params :
Driver_xst.h:56: error: invalid type argument of
unary *
Driver_xst.h:56: warning: cast from function call of
type int to non-matching type struct
PerlInterpreter *
Driver_xst.h:63: warning: implicit declaration of
function sprintf
Driver_xst.h:63: warning: incompatible implicit
declaration of built-in function sprintf
Driver_xst.h: In function dbdxst_fetchall_arr­ayref :
Driver_xst.h:86: error: invalid type argument of
unary *
Driver_xst.h:86: warning: cast from function call of
type int to non-matching type struct
PerlInterpreter *
Driver_xst.h:91: warning: incompatible implicit
declaration of built-in function sprintf
Driver_xst.h:109: error: XPVAV has no member named
xav_fill
Perl.xsi: In function XS_DBD__Perl__dr_da­ta_sources :
Perl.xsi:61: error: XPVAV has no member named
xav_fill
Perl.xsi: In function
XS_DBD__Perl__db_se­lectrow_arrayref :
Perl.xsi:190: error: XPVAV has no member named
xav_fill
Perl.xsi: In function
XS_DBD__Perl__st_fe­tchrow_array :
Perl.xsi:617: error: XPVAV has no member named
xav_fill
Perl.c: In function boot_DBD__Perl :
Perl.c:1139: warning: implicit declaration of function
strcmp
make: *** [Perl.o] Error 1

What should I install?

Thanks!




Add comment
Martin Evans 12 September 2007 17:30:08 permanent link ]
 NN NN wrote:
Hi!
I can't install DBI-1.59 on ubuntu 7.04 with
This is perl, v5.8.8 built for
i486-linux-gnu-thre­ad-multi
Seems like ubuntu lacks some files. but which?
Can't install through cpan or synaptic either.
After downloading DBI-1.59, the 'Makefile.PL' runs
fine, but When trying to 'make' I get this:
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS­
-DDEBIAN -fno-strict-aliasin­g -pipe
-I/usr/local/includ­e -D_LARGEFILE_SOURCE­
-D_FILE_OFFSET_BITS­=64 -O2 -DVERSION=\"1.59\"
-DXS_VERSION=\"1.59­\" -fPIC "-I/usr/lib/perl/5.­8/CORE"
-W -Wall -Wpointer-arith -Wbad-function-cast­
-Wno-comment -Wno-sign-compare -Wno-cast-qual
-Wmissing-noreturn -Wno-unused-paramet­er Perl.c
In file included from DBIXS.h:19,
from Perl.xs:6:
/usr/lib/perl/5.8/C­ORE/perl.h:420:24: error:
sys/types.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:451:19: error: ctype.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:463:23: error: locale.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:480:20: error: setjmp.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:486:26: error:
sys/param.h: No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:491:23: error: stdlib.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:496:23: error: unistd.h:
No such file or directory
/usr/lib/perl/5.8/C­ORE/perl.h:776:23: error: string.h:

<snipped more of the same>

What should I install?
Thanks!

Looks like you need to install the C header files - that is probably a
package something like libc development/headers­?.

Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft­.com

Add comment
Ulisses Reina Montenegro 12 September 2007 20:54:36 permanent link ]
 [OFF-TOPIC]

On Wed, 2007-09-12 at 10:44 -0400, Rutherdale, Will wrote:

Also, one of the first things you want to do in Ubuntu is change the
root password so you don't have to use 'sudo' all the time. You effect
this password change the first time using 'sudo', of course.

Why, oh why? If you want to use 'sudo', why can't you just simply use
'sudo /bin/bash'?

-Will

Ulisses


Add comment
Stephen J. Smith 13 September 2007 00:19:17 permanent link ]
 On Wed, Sep 12, 2007 at 10:44:30AM -0400, Rutherdale, Will wrote:
I am using Ubuntu at home and have successfully installed all the C
development tools necessary to
a) install things like Perl and Perl libraries
b) write Linux device drivers

Look at apt-get build-dep.

Also, one of the first things you want to do in Ubuntu is change the
root password so you don't have to use 'sudo' all the time.

Yikes, not recommended. Sudo is an extra layer of logging and security
that is well worth the minor inconvenience. You get used to it.

-Stephen

Add comment
Danmcb 15 September 2007 10:21:15 permanent link ]
 from memory, the package you need would be libc6-dev.

Here are some useful things that will help you:

- install "apt-file" using apt-get or the GUI installer
- do "apt-file search blahblah.h" when you can't sort a dependency.

It gets easier after a bit :-)­




Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
respect your talk pals, avoid using obscene language, typing entire messages in CAPS, posting buy/sell ads or violating netiquette or the RF Criminal Code..


QAIX > Perl web-programming > DBI-1.59 install failure on Ubuntu. lacking......compil­er complains of missing files 15 September 2007 10:21:15

see also:
[Messaging, JMS & JBossMQ] - Re: No…
[JBoss Portal] - Cache-Control http…
[JBoss jBPM] - Hiding…
pass tests:
see also:
wcorto@gmail.com
HOW TO PRINT CENTER OF THE ROW FOR…
System error's blueprint

  Copyright © 2001—2009 QAIX
Idea: Miñhael Monashev
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .