Discussion:
Anybody here
(too old to reply)
LeRoy DeVries
2008-01-05 13:27:08 UTC
Permalink
I've subscribed to this forum however, I have not seen any traffic.
Anybody here that might be able to help out a newbie
Andy Armstrong
2008-01-05 13:35:36 UTC
Permalink
Post by LeRoy DeVries
I've subscribed to this forum however, I have not seen any traffic.
Anybody here that might be able to help out a newbie
Hello LeRoy. What's up?
--
Andy Armstrong, Hexten
Andy Armstrong
2008-01-05 14:35:06 UTC
Permalink
Post by Andy Armstrong
Post by LeRoy DeVries
I've subscribed to this forum however, I have not seen any traffic.
Anybody here that might be able to help out a newbie
Hello LeRoy. What's up?
I have been trying to install some modules (ie threads,
threads::share) etc and I get the following error
Running install for module 'threads'
Running make for J/JD/JDHEDDEN/threads-1.67.tar.gz
Has already been unwrapped into directory /home/ldevries/.cpan/
build/threads-1.67-2t_tsK
Could not make: Unknown error
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Whats the best way to proceed? Should I delete everything and start
over and if I do what do I delete?
(I've added the list address back in)

It sounds as if threads and threads::share previously got some test
errors in the same cpan session. If you quit from cpan, restart it and
then attempt the install again you may see the test errors. That's the
information that we need to diagnose the problem.

Another thing you could try is

cpan> look threads

That'll unpack the threads distribution and open a command shell in
the directory where it was unpacked. Then you can manually attempt:

$ perl Makefile.PL
$ make
$ make test
$ sudo make install

(only do each step if the previous one succeeded)

I've just tried that here and I notice that threads needs you to have
a C compiler. Might that be the reason why it failed to build? Do you
have a C compiler installed?
--
Andy Armstrong, Hexten
Andy Armstrong
2008-01-05 14:58:01 UTC
Permalink
(added list address back in again - hit reply to all when you reply
LeRoy)
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.67\" -DXS_VERSION=\"1.67\"
-fPIC "-I/usr/lib/perl/5.8/CORE" -DHAS_PPPORT_H threads.c
/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
Ah - that's the problem - you don't have the standard headers needed
to compile the module.

On Ubuntu I believe you need to

$ sudo apt-get install libc6-dev

Alternately you could

$ sudo apt-get install build-essentials

which would get you libc6-dev and a bunch of other stuff you may or
may not need :)
--
Andy Armstrong, Hexten
Andy Armstrong
2008-01-05 15:10:44 UTC
Permalink
Post by Andy Armstrong
Ah - that's the problem - you don't have the standard headers needed
to compile the module.
On Ubuntu I believe you need to
$ sudo apt-get install libc6-dev
Alternately you could
$ sudo apt-get install build-essentials
which would get you libc6-dev and a bunch of other stuff you may or
may not need :)
And I've just installed threads and threads::shared on an Ubuntu box
here and it works fine, so once you have libc6-dev you should be OK I
hope.
--
Andy Armstrong, Hexten
LeRoy DeVries
2008-01-05 15:15:15 UTC
Permalink
Post by Andy Armstrong
Post by Andy Armstrong
Ah - that's the problem - you don't have the standard headers needed
to compile the module.
On Ubuntu I believe you need to
$ sudo apt-get install libc6-dev
Alternately you could
$ sudo apt-get install build-essentials
which would get you libc6-dev and a bunch of other stuff you may or
may not need :)
And I've just installed threads and threads::shared on an Ubuntu box
here and it works fine, so once you have libc6-dev you should be OK I
hope.
That did the trick... thanks for all your help

Continue reading on narkive:
Loading...