Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Get Involved With Pugs

by polettix (Vicar)
on May 18, 2005 at 10:07 UTC ( [id://458134]=note: print w/replies, xml ) Need Help??


in reply to Get Involved With Pugs

One of things I were afraid of was that I did not understand the entire architecture very well - Pugs, Parrot, Ponie, Perl6... any more?

But that was the dark side of lazyness, so I decided it was time to rise and see what has to be done. At the moment, I've been able to install it inside a user-space directory, which doesn't "clutter" the pseudo-production system I live in. I thought that it could be good to share this with you all, even if it's something that applies only here-and-now; just to take people lazier than me on the boat :)

My procedure in Linux (Slackware, so no rpm-s or similars):

Haskell is the first step. As of yesterday, version 6.4 is the latest available, so I link it here for your convenience. I appreciated the possibility to make in-place and avoid installing the package in a different place.
cd $HOME/src/ghc-6.4 ./configure make in-place PATH="$PATH:$HOME/src/ghc-6.4/bin/i386-unknown-linux"
I actually added the last line to $HOME/.bashrc as well (I don't still plan to use it inside crontab jobs :)

Pugs README says that you need an additional library to do something that's obscure for me at the moment. But I wanted all whistles and bells, so I installed it as well:

cd $HOME/src/ghc-6.4/hs-plugins-20050501 ./configure --prefix="$HOME/src/ghc-6.4/hs-plugins" make make install make register
The last line is quite important, because it registers the library inside Haskell. I presume.

Time for Parrot now. For what I understood, it's the foundation floor for all the Perl 6 stuff, so I decided to install it before the other floors :)

perl Configure.pl --prefix="$HOME/sviluppo/parrot-0.2.0" make make test # make install
Yes, last line is commented out. Which basically makes the prefix quite unuseful. Why? I don't know exactly, but it seems that Pugs feels more comfortable with the source tree of Parrot instead of the installed version - I had to fight with various errors in Pugs installation process before the light switched on. Good for me that I paid my dues to the local energy company.
export PUGS_EMBED=parrot #export PARROT_PATH="$HOME/sviluppo/parrot-0.2.0" export PARROT_PATH="$HOME/src/parrot-0.2.0"
These variables are needed for the following Pugs installation process. I decided to report all my installation process, so I report one more commented line, just to stress that the following Pugs installation process expects the path to the Parrot compilation directory instead of the installation one.

Pugs, at last! The previous setup (HS library, environment variables) gets rid of scary messages about being forced to do thing manually...

PUGSINSTALL="$HOME/sviluppo/pugs-6.2.3" perl Makefile.PL PREFIX="$PUGSINSTALL" DESTDIR="$PUGSINSTALL" make make test make install PATH="$PATH:$PUGSINSTALL/bin"
Yes, I admit my ignorance, I really don't know the difference between PREFIX and DESTDIR, but without the latter the installation inside my home directory tree did not work :)
The whole process requires some compiling but should go quite smooth; in about 1 hour you'd have pugs at your fingertips and start playing with hangman (in $HOME/src/Perl6-Pugs-6.2.3/examples/games), at last!

Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')

Don't fool yourself.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://458134]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found