From: Derek L. <de...@bo...> - 2018-03-22 20:15:08
|
Hi Will, This doesn't really seem to be a PDL issue. And you don't say whether you've been able to install on prior versions of macOS. But my PerlIO::Layers installed from MacPorts just fine on macOS 10.12.x (Sierra), and it doesn't look like MacPorts does anything special to make it work. And PerlIO::Layers hasn't been updated in 4 years, so it's probably not a recent issue. All of that suggests that it's something on your end. The PerlIO::Layers test that fails relies on open3 and waitpid, which means child processes etc are at work here. I notice you're trying to install with sudo. Are you installing into a user or a system directory? If you do a 'man perlrun' you can get descriptions of the PERL5LIB and PERL5OPT environment variables. The fact that they are not set here is interesting, considering you say you set PERL5LIB in your env. Is PERL5LIB exported? Have you sourced your ~/.profile (or whatever) since setting that, either explicitly or by opening a new terminal window? To be completely pedantic, I would expect to see something like: export PERL5LIB="/Users/carly/perl5" in your ~/.profile file. (that assumes some things about what's in that directory, but absent an explanation I am just making a guess.) Derek > On Mar 22, 2018, at 12:41 PM, William Schmidt <t.w...@gm...> wrote: > > Hello PDL peeps, > > I'm trying to build PDL in macOS 10.13.3 (High Sierra) and am getting a build test error in a pre-req, specifically, in PerlIO::Layers. The scenario: > > sudo cpan install PDL. # Warning: prerequisite File::Map 0.57 not found. There are other pre-req errors but the first one is a deal-killer. > > sudo cpan install File::Map # this build failed to find its pre-req, PerlIO::Layers, so it downloaded the bits and attempted to build it. The script reported the build was OK, but its tests failed with: > > t/00-compile.t ............ 1/1 > # Failed test 'PerlIO/Layers.pm loaded ok' > # at t/00-compile.t line 35. > # got: '512' > # expected: '0' > > File attached of relevant output. Notice that PERL5LIB and PERL5OPT at lines 30 and 31 are not resolved. PERL5LIB is set in my env (bash) but I am not setting PERL5OPT, whatever that means in this build. If PERL5LIB must be resolved, the build script is not pulling it from my env, and if PERL5OPT must be set, I need to know what to set it to. > > My compiler is: > > $ gcc -v > Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 > Apple LLVM version 9.0.0 (clang-900.0.39.2) > Target: x86_64-apple-darwin17.4.0 > Thread model: posix > InstalledDir: /Library/Developer/CommandLineTools/usr/bin > > Any ideas? (Yes, I know how fucking arrogant Apple is about building stuff on its latest OS, but getting PDL to run on my mac is very high priority :-) Why run R (and invest hours and hours learning it) when you can run PDL?) > > Regards, > Will Schmidt > t.w...@gm... <mailto:t.w...@gm...> > > > <PDLbuildErrors>------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel |