Installing cpan module getting Could not make error - perl

I want to install cpan module called Coro for Perl, after typing
cpan Coro
I get error something like Could not make: Unknown error
Here is full log from console: http://pastebin.com/NpXbG2eN
I do not know what is wrong with this.
I found some errors during install:
error: lvalue required as left operand of assignment fatal error:
db.h: No such file or directory

This is relevant:
*** It seems you are running perl version 5.022001, likely the "official" or
*** "standard" version. While there is nothing wrong with doing that,
*** standard perl versions 5.022 and up are not supported by Coro.
The error you are getting:
State.xs: In function ‘coro_derive_padlist’:
State.xs:581:29: error: lvalue required as left operand of assignment
PadlistNAMES (newpadlist) = padnames;
Coro relies on Perl internals that changed.

Related

Unable to build Perl module Net::MAC::Vendor

I am unable to build Net::MAC::Vendor on a Mac w/ High Sierra. I am relatively new to Perl but have built modules in the past. The error appears to be:
Failed fetching [https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-L&format=html&text=14-10-9F] HTTP status []
message [IO::Socket::SSL 2.009+ required for TLS support] at t/fetch_oui_from_custom.t line 21.
Could not fetch data from the IEEE! at t/fetch_oui_from_custom.t line 21.
# Failed test ''Got back array reference' isa 'ARRAY''
# at t/fetch_oui_from_custom.t line 23.
# 'Got back array reference' isn't defined
# Failed test 'Fetched Apple's OUI entry'
# at t/fetch_oui_from_custom.t line 25.
# ''
# doesn't match '(?^:Apple, Inc\.)'
# Looks like you failed 2 tests of 2.
t/fetch_oui_from_custom.t .. 2/?
# Failed test 'fetch'
# at t/fetch_oui_from_custom.t line 27.
Use of uninitialized value in concatenation (.) or string at /Users/johnprokopek/.cpan/build/Net-MAC-Vendor-1.265-13/blib/lib/Net/MAC/Vendor.pm line 320.
Failed fetching [http://standards.ieee.org/cgi-bin/ouisearch?14-10-9F] HTTP status []
Can someone help, thanks
I'm also still on High Sierra (10.13.6), on an ancient-but-still-running Mac Mini mid-2010. Using the built-in /usr/bin/perl (v5.18.2), running install Net::MAC::Vendor inside the CPAN shell gave me the same error. Running force install Net::MAC::Vendor worked, in that the module was installed.
A simple perl -MNet::MAC::Vendor -e "print 'hi'" works, so it looks like Perl can at least load that library, not really sure how to test that it works for real. But, at least this will let you install it and try it.

Align.so; symbol lookup error; undefined symbol

I am running a perl script on a web server. I am getting the error in the httpd error log file:
/usr/bin/perl: symbol lookup error:
/usr/local/lib64/perl5/auto/Bio/Ext/Align/Align.so:
undefined symbol:
bp_sw_read_Blast_file_CompMat, referer: http://XX/model_select.pl
[Line breaks added for readability]
I checked some of the forums and did this:
cpanp -i /usr/local/lib64/perl5/auto/Bio/Ext/Align/Align.so
ERROR '/usr/local/lib64/perl5/auto/Bio/Ext/Align/Align.so' does not contain an author part
ERROR Cannot find '/usr/local/lib64/perl5/auto/Bio/Ext/Align/Align.so' in the module tree
No such module: /usr/local/lib64/perl5/auto/Bio/Ext/Align/Align.so
No modules found to operate on!
Nothing done
I checked, Align.so exists in the path shown in the error message
Can someone please help me solve the problem. Thanks much ! :-)

Tests for Proc::ProcessTable module fail after successful build on Solaris

I am getting the error below during make test on Solaris even though the make command executed successfully.
Can't load '/e/scripts/Proc-ProcessTable-0.53/blib/arch/auto/Proc/ProcessTable/ProcessTable.so' for module Proc::ProcessTable: ld.so.1: perl: fatal: /e/scripts/Proc-ProcessTable-0.53/blib/arch/auto/Proc/ProcessTable/ProcessTable.so: wrong ELF class: ELFCLASS32 at /usr/perl5/5.10/lib/5.10.0/sun4-solaris-thread-multi-64/DynaLoader.pm line 203.
Can someone help and suggest what is wrong here?

Pb installing Date::Manip with cpan

I am struggling for one day installing date: with cpan (I am using os x). I always get this message
Warning: prerequisite Test::Inter 0 not found.
Bareword found where operator expected at ./Makefile.PL line 1, near "30 mtime"
(Missing operator before mtime?)
Number found where operator expected at ./Makefile.PL line 2, near "30"
(Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 2, near "30 atime"
(Missing operator before atime?)
Number found where operator expected at ./Makefile.PL line 3, near "30"
(Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 3, near "30 ctime"
(Missing operator before ctime?)
ERROR from evaluation of /Users/mehdibenchoufi/.cpan/build/SBECK-QEN4kY/Date-Manip-6.36/Makefile.PL: ERROR from evaluation of /Users/mehdibenchoufi/.cpan/build/SBECK-QEN4kY/Date-Manip-6.36/PaxHeaders.11917/Makefile.PL: syntax error at ./Makefile.PL line 1, near "30 mtime"
Warning: No success on command[/opt/local/bin/perl5.12 Makefile.PL]
'YAML' not installed, will not store persistent state
SBECK/Date-Manip-6.36.tar.gz
/opt/local/bin/perl5.12 Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
SBECK/Date-Manip-6.36.tar.gz : writemakefile NO '/opt/local/bin/perl5.12 Makefile.PL' returned status 65280
Does anyone knows how to debug ?
I ran into the same issue and these steps worked for me:
> sudo cpan
cpan[1]> install CPAN
cpan[2]> exit
> sudo rm -rf ~/.cpan/build/SBECK-*
> sudo cpan Date::Manip
Start by installing YAML.pm and Test::Iter.pm
But. You might not want to mess with the system perl on OS X.
You might want to give serious consideration to using perlbrew to manage a local install of perl wiith its own set of modules, separate form the system install.

Perl Cross Compilation: MAKE

I've been trying to Cross Compile Perl-5.14.2 for NetBSD target from Linux machine.
Configure script successfully invoked with following options,
./Configure -des -Dusecrosscompile
-Dtargetarch=netbsd
-Dosvers=3.0.0
-Dtargethost=10.184.22.48
-Dtargetuser=username
-Dusrinc=.../sb1-mips/usr/include
-Dlibpth=.../xc-sb1-mips/netbsd/Lib/lib
-Dcc=.../mips64-netbsdelf-gcc
Once after Configured, make wasn't successful.
It breaks at different places right from creating miniperlmain.o file.
For example following error occurred while generating gv.o file:
gv.c: In function `Perl_try_amagic_un':
gv.c:2018: error: void value not ignored as it ought to be
gv.c:2029: error: void value not ignored as it ought to be
gv.c:2029: warning: cast from pointer to integer of different size
gv.c: In function `Perl_try_amagic_bin':
gv.c:2061: error: void value not ignored as it ought to be
gv.c:2063: error: void value not ignored as it ought to be
make: *** [gv.o] Error 1
Now to get rid of these errors I've passed two flags namely -DPERL_IMPLICIT_CONTEXT and -DPERL_GCC_BRACE_GROUPS_FORBIDDEN to C Compiler CCFLAGS which solved the problem.
Since it is a custom build, want to know about all of the CCFLAGS that have to be passed in order to achieve a successful build?
What does each flag mean?
Is their any documentation available?
Use vagrant. It has some OpenBSD and FreeBSD images. Hopefuly those will be compatible with NetBSD.
You can get a build environment very fast with that. Then you can transfer and build your code happily :)