The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Building Pugs on OS X

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Premshree Pillai

Posts: 478
Nickname: premshree
Registered: Mar, 2004

Premshree Pillai is a Ruby evangelist, working with Yahoo!.
Building Pugs on OS X Posted: Mar 12, 2006 2:32 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Premshree Pillai.
Original Post: Building Pugs on OS X
Feed Title: Premshree's Personal Weblog
Feed URL: http://premshree.livejournal.com/data/rss
Feed Description: Premshree's Weblog
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Premshree Pillai
Latest Posts From Premshree's Personal Weblog

Advertisement

It’s indeed not very straightforward to install Pugs on OS X. There’s some good instructions available here. Anyway, I’ll just rehash most of the things mentioned there with the current state of the art, and some additional notes. These instructions are for GHC 6.4.1, hs-plugins (the latest), parrot 0.4.2 and Pugs 6.2.11.

Install parrot

Download parrot.

sudo mv parrot-0.4.2/ /usr/local/
cd /usr/local/parrot-0.4.2/
perl Configure.pl
make
make test # optional
sudo make install

Install GHC

(You’ll need DarwinPorts for this.)

sudo port install ghc

This will take a *long* time. Took me a little more than five hours. (Optionally, you could probably download the OS X binary.)

Install darcs

darcs is a revision control system, written in Haskell, required to get hs-plugins.

sudo port install darcs

Again, you could optionally download a binary.

Install hs-plugins

darcs get http://www.cse.unsw.edu.au/~dons/code/hs-plugins
cd hs-plugins/
runhaskell Setup.lhs build
runhaskell Setup.lhs install
sudo ranlib /usr/local/lib/plugins-1.0/libHSplugins-1.0.a

Install Pugs

Download Pugs.

export PUGS_EMBED=perl5,parrot
export PARROT_PATH=/usr/local/parrot-0.4.2
perl Makefile.PL
make
sudo make install

make will take a while. Took me around two hours. The wait is worth it; however, you could optionally use make unoptimized — this will make Pugs compile faster, but will run much slower.

That should be it. Pugs should run fine now (here’s a screenshot):

$ pugs
...
^z
$ pugs -e "print 'hello, world';"
hello, world

Read: Building Pugs on OS X

Topic: Vienna III: Hofburg Imperial Palace and Kunsthistorisches Museum Previous Topic   Next Topic Topic: Mainstream Rails Adoption Steams Ahead

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use