Barry,

I am not sure what you are asking exactly, but see my response below --


On Sat, Jul 17, 2010 at 10:40 AM, Barry Hall <[email protected]> wrote:
> are the instructions under
>
> man perlmacosx
>
> sufficient for someone who is "challenged" to do a complete install of perl
> on a mac book?
>
> If so, what version do you recommend?

What version perl? Is that what you are asking? Snow Leopard comes
with perl 5.10.1 under /usr/bin

Personally, I just don't use it nor do I tinker with it. I install my
own perl, and by default, it installs in /usr/local/bin

I have perl 5.12.1 installed, which installed as easily as downloading
the source code, unzipping it, cd-ing into the source code directory
and typing

./configure
make
make test
sudo make install


>
> I think I would like a clean copy now ... I'm willing to spend an afternoon
> on it if need be.
>

Installing perl takes about 30 mins or less. It is remarkable... all
almost 200,000 tests of it pass cleanly.

> I really need all the functionality of PDL now ... was too busy to fart with
> it before when I asked. Had to get some stuff done for work.
>

Ok, not that we have dealt with perl, lets tackle PDL. You can get
most of PDL by installing SciKarl. The only issue with SciKarl is that
it uses the Apple perl and installs under /usr/bin. If you are ok with
that, SciKarl is a highly recommended route. Apparently it is a single
click install (I say "apparently" because I haven't installed it
myself).

If you want to install your own Perl and PDL (like I have done), first
start by defining 'all' in "I really need all the functionality of PDL
now." Most all PDL modules install without any problem. The ones that
I haven't been able to install are GSL (Gnu Scientific Library) and
slatec. I don't really need them right now. Are they are part of your
"all"?

The other module that I had problem with was PLplot. First get PLplot
installed correctly (instructions are in several recent emails in this
list archive). Then, 'make' PDL, but then, edit the
Graphics/PLplot/Makefile (again, instructions are in many recent
emails in this list archive).

With that done, PDL builds very well.

Oh, and use the latest dev release. It works very well.

> I'm just a little afraid of the warnings in that man page ... I can't afford
> to "cream" my perl and not have anything useful come Monday.
>
>
> On Jul 3, 2010, at 10:45 AM, P Kishor wrote:
>
>> On Sat, Jul 3, 2010 at 9:01 AM, Barry Hall <[email protected]>
>> wrote:
>>>
>>> Trying to install PDL using CPAN -- newbie not sure where to start here.
>>
>>
>> I will write up my experience, but until then, here is what I suggest --
>>
>> 0. I prefer to install against my own install of Perl. Perl installs
>> cleanly, clearly, and without a single hassle on a Mac. All one
>> hundred and bazillion thousand tests of it pass cleanly. It is a heady
>> feeling to read the summary that 100% of 1,85,000 (or whatever large
>> number) tests passed. That is what I would recommend. If you do, Perl
>> will get installed in /usr/local
>>
>> 0.1. Even if you prefer to not install your own Perl, you will likely
>> have to install some dependencies yourself, in which case, the stuff
>> you install will go under /usr/local
>>
>> 1. Forget CPAN, when it comes to PDL. Instead, download the source,
>> and start from there. Assume, the PDL source is in ~/src/PDL-2.4.6.
>>
>> 2. cd into PDL src and open up perldl.conf in a text editor. Set
>> slatec, GSL, PLplot, PGPLOT and other exotic stuff that you may not
>> need to 0 (zero). Remember, undef means PDL will still try to build if
>> it can (let PDL decide), 1 means PDL will be forced to build it, and 0
>> means PDL will ignore it. Start with 0.
>>
>> 3. type the following in your PDL src file
>>
>> ~/src/PDL-2.4.6 % perl Makefile.PL
>>
>> 4. If you are lucky, it will configure without any errors. In which
>> case, type the following
>>
>> ~/src/PDL-2.4.6 % make && sudo make install
>>
>> and start using PDL once it is installed.
>>
>> 5. If you are unlucky in #3 above, and encounter errors, note them all
>> down. Most will be easily fixable, because they will be because of old
>> or missing libraries. Find the libraries and install them (one by
>> one). After each install of a library, repeat step #3 again. Remember,
>> all the stuff you install will go to /usr/local
>>
>> I keep a record of everything I have installed, including the
>> configure options I used, and any relevant output of the make and make
>> install commands.
>>
>> 80%-90% of PDL is very easy to install. The remainder is a pain in the
>> ass, but it is doable. All depends on how badly you want it all.
>>
>> Once you have installed PDL, read the chapter on Threading. Be amazed,
>> and evangelize PDL's use to others.
>>
>>> I've just accepted whatever else CPAN wanted to install.
>>> Need someone to point me in the right direction.
>>> Used to using PPM on windows based machine.
>>> Never had this number of errors trying install any package.
>>> Don't know where to start.
>>>
>>>
>>>
>>> cpan> install PDL
>>>
>>>
>>> I get a lot of these:
>>>
>>>   -- NOT OK
>>> Running make test
>>>  Can't test without successful make
>>> Running make install
>>>  make had returned bad status, install seems impossible
>>>
>>>
>>> probable cause?
>>>
>>> Also had a couple of  these:
>>>
>>>
>>> Can't locate ExtUtils/F77.pm in @INC (@INC contains:
>>> /Library/Perl/Updates/5.8.8
>>> /System/Library/Perl/5.8.8/darwin-thread-multi-2level
>>> /System/Library/Perl/5.8.8
>>> /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8
>>> /Library/Perl
>>> /Network/Library/Perl/5.8.8/darwin-thread-multi-2level
>>> /Network/Library/Perl/5.8.8 /Network/Library/Perl
>>> /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level
>>> /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1
>>> /Users/barryhall/.cpan/build/PDL-2.4.6
>>> /Users/barryhall/.cpan/build/PDL-2.4.6/Lib .) at (eval 269) line 2.
>>> BEGIN failed--compilation aborted at (eval 269) line 2.
>>>
>>>       ExtUtils::F77 module not found. Ought not build PDL::Slatec
>>>
>>>
>>>
>>> _______________________________________________
>>> Perldl mailing list
>>> [email protected]
>>> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>>>
>>
>>
>>
>> --
>> Puneet Kishor http://www.punkish.org
>> Carbon Model http://carbonmodel.org
>> Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
>> Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
>> Nelson Institute, UW-Madison http://www.nelson.wisc.edu
>> -----------------------------------------------------------------------
>> Assertions are politics; backing up assertions with evidence is science
>> =======================================================================
>>
>
>

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to