Re: DBI-1.59 install failure on Ubuntu. lacking......compiler complainsof missing files

Re: DBI-1.59 install failure on Ubuntu. lacking......compiler complainsof missing files

am 12.09.2007 15:30:08 von Martin.Evans

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-thread-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-aliasing -pipe
> -I/usr/local/include -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-parameter Perl.c
> In file included from DBIXS.h:19,
> from Perl.xs:6:
> /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:



>
> 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

SV: Re: DBI-1.59 install failure on Ubuntu. lacking......compiler complains of missing files

am 12.09.2007 16:26:29 von aogr_dk_2000

I have tried to install some libc packages, but no
luck.
I guess I have to sign up for a ubuntu mailing list
too, but thanks for replying.


--- Martin Evans skrev:

> 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-thread-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-aliasing -pipe
> > -I/usr/local/include -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-parameter Perl.c
> > In file included from DBIXS.h:19,
> > from Perl.xs:6:
> > /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:
>
>
>
> >
> > 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
>

Re: SV: Re: DBI-1.59 install failure on Ubuntu. lacking......compilercomplains of missing files

am 12.09.2007 16:38:02 von Martin.Evans

NN NN wrote:
> I have tried to install some libc packages, but no
> luck.
> I guess I have to sign up for a ubuntu mailing list
> too, but thanks for replying.
>

I believe you need libc-dev. Basically you need to find the package with
the file stdlib.h in it.

Martin

> --- Martin Evans skrev:
>
>> 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-thread-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-aliasing -pipe
>>> -I/usr/local/include -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-parameter Perl.c
>>> In file included from DBIXS.h:19,
>>> from Perl.xs:6:
>>> /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:
>>
>>
>>
>>> 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
>>
>
>
>
>
>
>
>


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

RE: Re: DBI-1.59 install failure on Ubuntu. lacking......compiler complains of missing files

am 12.09.2007 16:44:30 von Will.Rutherdale

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

Getting all the development packages installed in Ubuntu took several
hours' effort one evening. Basically the first thing you need to do is
set up hello.c and hello.C test cases and keep hammering at the
installation until you can get them working.

Unfortunately I'm not at home right now so I can't check what packages
I've got.

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.

-Will


> -----Original Message-----
> From: NN NN [mailto:aogr_dk_2000@yahoo.dk]
> Sent: Wednesday 12 September 2007 10:26
> To: dbi-users@perl.org
> Subject: SV: Re: DBI-1.59 install failure on Ubuntu.
> lacking......compiler complains of missing files
>
>
> I have tried to install some libc packages, but no
> luck.
> I guess I have to sign up for a ubuntu mailing list
> too, but thanks for replying.
>



- - - - - Appended by Scientific Atlanta, a Cisco company - - - - - =

This e-mail and any attachments may contain information which is confiden=
tial,
proprietary, privileged or otherwise protected by law. The information is=
solely
intended for the named addressee (or a person responsible for delivering =
it to
the addressee). If you are not the intended recipient of this message, yo=
u are
not authorized to read, print, retain, copy or disseminate this message o=
r any
part of it. If you have received this e-mail in error, please notify the =
sender
immediately by return e-mail and delete it from your computer.

Re: [off topic] DBI-1.59 install failure on Ubuntu.

am 12.09.2007 23:41:56 von SJS

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

VS. SV: Re: SV: Re: DBI-1.59 install failure on Ubuntu. lacking......compiler complains of missing f

am 13.09.2007 11:02:30 von aogr_dk_2000

--0-1454728268-1189674150=:11399
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Id:
Content-Disposition: inline

Bemærk: videresendt meddelelse er vedhæftet.




--0-1454728268-1189674150=:11399
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit

Received: from [80.197.251.171] by web51608.mail.re2.yahoo.com via HTTP; Thu, 13 Sep 2007 11:00:03 CEST
Date: Thu, 13 Sep 2007 11:00:03 +0200 (CEST)
From: NN NN
Subject: SV: Re: SV: Re: DBI-1.59 install failure on Ubuntu. lacking......compiler complains of missing files
To: Martin Evans
In-Reply-To: <46E7F9CA.7020601@easysoft.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Length: 1317

Hi again Martin!
For REF. here is how I made it work:
I went to the site:
http://www.debian.org/distrib/packages
here I can search for contents in packages.
I got the "tendra" package as result.
I installed it. Now all is fine.

A nice guy on "ubuntu-users" mailinglist quickly
instructed me in other ways to make it work. so, I can
recogment this mailinglist for future ubuntu/DBI
related Q's.
Thanks for the help!


--- Martin Evans skrev:

> NN NN wrote:
> > I have tried to install some libc packages, but no
> > luck.
> > I guess I have to sign up for a ubuntu mailing
> list
> > too, but thanks for replying.
> >
>
> I believe you need libc-dev. Basically you need to
> find the package with
> the file stdlib.h in it.
>
> Martin
>
> > --- Martin Evans
> skrev:
> >
> >> 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-thread-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-aliasing -pipe
> >>> -I/usr/local/include -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-parameter Perl.c
> >>> In file included from DBIXS.h:19,
> >>> from Perl.xs:6:
> >>> /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:
> >>
> >>
> >>
> >>> 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
> >>
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Martin J. Evans
> Easysoft Limited
> http://www.easysoft.com
>





--0-1454728268-1189674150=:11399--

Re: DBI-1.59 install failure on Ubuntu. lacking......compiler complains of missing files

am 15.09.2007 08:21:15 von danielmcbrearty

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 :-)

Re: [off topic] DBI-1.59 install failure on Ubuntu.

am 24.09.2007 00:33:26 von maemo

On Wednesday 12 Sep 2007, Stephen J. Smith wrote:
> On Wed, Sep 12, 2007 at 10:44:30AM -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.
>
> Yikes, not recommended. Sudo is an extra layer of logging and security
> that is well worth the minor inconvenience. You get used to it.

Depends on your level of experience/competence/confidence.

Personally, having many years of experience with Unix in general and Linux in
particular (and good backups :-) ) a proper root shell holds few fears or
dangers.

But for a user who's just moved from Windoze, I'd agree with you :-)


--
Tony Green
Ipswich, Suffolk, England
http://www.beermad.org.uk
http://no2id-ip.web-brewer.co.uk