Hello, Cannot find the answer anywhere online. Trying to compile a Perl Module, Math-CDF, for an CLIP (RNA-protein crosslink analysis) and I am getting an error when I run the make commands.
Within the folder I have to run:
$perl Makefile.PL
$make
$make test
$make install
running $perl Makefile.PL runs fine but $make hits the following error:
Skip blib/lib/Math/CDF.pm (unchanged)
cd cdflib && /usr/bin/make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O3" PREFIX="/usr/local/ActivePerl-5.24/site" PASTHRU_DEFINE=' ' PASTHRU_INC=' '
make[1]: Nothing to be done for `all'.
Running Mkbootstrap for CDF ()
chmod 644 "CDF.bs"
"/usr/local/ActivePerl-5.24/bin/perl-dynamic" -MExtUtils::Command::MM -e 'cp_nonempty' -- CDF.bs blib/arch/auto/Math/CDF/CDF.bs 644
/usr/bin/gcc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -mmacosx-version-min=10.9 -arch x86_64 -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-strict-aliasing -pipe -fstack-protector -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"0.1\" -DXS_VERSION=\"0.1\" "-I/usr/local/ActivePerl-5.24/lib/CORE" CDF.c
gcc: error: unrecognized command line option '-no-cpp-precomp'
make: *** [CDF.o] Error 1
Any ideas? I've tried removing the -no-cpp-precomp flag but still doesn't run. P.S I am running a Mac O.S Yosemite Version 10.10.5 and I working with Perl modules for the first time. I have make and gcc under: /usr/bin/gcc /usr/bin/make Thanks.
Did you try installing usng CPAN? If you have cpanminus:
Or if you don't:
This is due to Apple having messed up with gcc in the past. See this blog post. Also, why would you use ActivePerl ? Mac OS comes already with perl installed and if you need another version, you should use perlbrew. By the way this is not a bioinformatics question. This should be posted on StackOverflow.
Thanks! I am still new at this, will move it over to stack over flow soon. Will try CPAN minus as soon as I get to a better connection.
Only using ActivePerl because I was told to have the latest version, but I see your point, hope all these issues get sorted out.
If you are on Mac, if I am not mistaken (I don't use Mac), the recommendation is to use homebrew for Perl, Python, GCC, and so on. Or try conda, another package manager, but which works on Mac, Linux and Windows.