[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] CHICKEN_REPOSITORY (not working?)
From: |
Lasse Kliemann |
Subject: |
Re: [Chicken-users] CHICKEN_REPOSITORY (not working?) |
Date: |
Sun, 11 Apr 2010 15:31:54 +0200 |
* Message by -Jeronimo Pellegrini- from Sun 2010-04-11:
> $ chicken-install -init ~/chicken/
> copying required files to /home/jeronimo/chicken/ ...
> cp -r /usr/local/lib/chicken/5/setup-api.so /home/jeronimo/chicken/
> cp -r /usr/local/lib/chicken/5/setup-api.import.so /home/jeronimo/chicken/
> cp -r /usr/local/lib/chicken/5/setup-download.so /home/jeronimo/chicken/
> cp -r /usr/local/lib/chicken/5/setup-download.import.so
> /home/jeronimo/chicken/
> ...
> \---
>
> OK, I initialzied the new repository! But chicken-install still won't use it:
>
> /---
> $ CHICKEN_REPOSITORY=~/chicken/ chicken-install test
> ...
> installing test: ...
> changing current directory to /tmp/chicken-install-2aa.tmp/test
> /usr/local/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e
> "(import setup-api)" -e "(extension-name-and-version '(\"test\" \"\"))"
> /tmp/chicken-install-2aa.tmp/test/test.setup
> /usr/local/bin/csc -feature compiling-extension -setup-mode -s -O2 -d0
> test.scm -j test
>
> Warning: global variable `test#test-group-push!' is never used
> /usr/local/bin/csc -feature compiling-extension -setup-mode -s -O2 -d0
> test.import.scm
> rm -fr /usr/local/lib/chicken/5/test.so
> cp -r test.so /usr/local/lib/chicken/5/test.so
> cp: cannot create regular file `/usr/local/lib/chicken/5/test.so': Permission
> denied
Use the -p Option to chicken-install in order to direct it to
'~/chicken'. However, then the repository will in fact be at
~/chicken/lib/chicken/5
You must also use this longer path for initialization via -init.
In order to use the installed eggs it may also be necessary to
set CHICKEN_INCLUDE_PATH in addition to CHICKEN_REPOSITORY like
so:
CHICKEN_INCLUDE_PATH="${HOME?}"/chicken/lib/chicken/5';'"${HOME?}"/chicken/share/chicken
The documentation on this is written quite tersely, so I found
most of this out by trial-and-error. Maybe someone with a real
clue might comment on it. :-)
pgpUKvqrJkJgS.pgp
Description: PGP signature