Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: pugs link error

2 views
Skip to first unread message

Beau E. Cox

unread,
Feb 18, 2006, 2:27:14 PM2/18/06
to perl6-c...@perl.org, Peter Schwenn
On Friday 17 February 2006 14:48, Peter Schwenn wrote:
> Dear Beau Cox,
>
> I can't make explicit sense of
>
> "
> you need to keep
>
> > the original Parrot source tree around, and let Pugs find one of
> > src/{null,parrot,install}_config.o for embedding to happen.
>
> "
>
> Could you give a concrete example of sub-directory placement or
> environment settings that makes Pugs aware of Parrot's presence?
>
> Sincerely,
>
> Peter Schwenn

Hi Peter -

I am no expert, but what I do is:

1) create a 'pugs-and-parrot' dir. I put this
in /usr/local/src/pugs-and-parrot.
You could put the dir anywhere, i.e. /home/pschwenn/pugs-and-parrot or where
ever.

2) Get the parrot source, either from svn (that's what I do) or a tarball.
If you use a tarball, unpack it to a subdirectory of pugs-and-parrot. THIS IS
THE PARROT SOURCE TREE YOU NEED TO BUILD PUGS. Do NOT make clean or remove
this
tree until you have built pugs.

3) Configure, make, and install parrot.

4) Get the pugs source and put it in a subdirectory of pugs-and-parrot
just as in 2) above.

5) Export:
export PARROT_PATH="the-parrot-tree-in-step-2"
export PUGS_EMBED="parrot perl5"
These are the only environment settings needed to inform pugs about
parrot. Pugs should configure with parrot and be ready to use.

6) Configure, make, and install pugs.

7) You may now clean-up or remove your pugs-and-parrot directory.

>
> [p.s. I have successfully built pugs-6.2.11 with Ghc-4.11 w/ hs-plugins
> support, and parrot-0.4.1 (with built source tree) both under FedoraC4

It seems that you have done the above already... :)

> linux, but Pugs does not see Parrot when I try, e.g., pugs -Bparrot
> <src.p6> (or -BPIR ...). Same thing under Cygwin]

Do you need the '-Bparrot'? The pugs configure 'imbeds' parrot in pugs
and to the best of my knowledge it's just there. 'pugs <src.p6>' should
work (it does for me). Maybe someone here with more experience with the
pugs system can address this issue further. As I mentioned, I am just
playing with pugs to get a feel for p6 syntax, etc., and am no expert.

--
Aloha => Beau;

0 new messages