Re: [Chicken-users] Custom repository (for chicken .so files)
On 9/15/06, Sridhar Ratna <[EMAIL PROTECTED]> wrote: hi! It seems like there isn't an obvious way to override the .so files for chicken eggs repository. I would like to install 'eggs' using chicken-setup, but copy the .so files to a custom directory in my $HOME (as I don't have root access in my webhost). Is there a way to override the respository? You can just set the CHICKEN_REPOSITORY environment variable - it should contain the path where you want eggs to be installed. cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
On Fri, 15 Sep 2006 15:46:09 +0200 "felix winkelmann" <[EMAIL PROTECTED]> wrote: > On 9/15/06, Sridhar Ratna <[EMAIL PROTECTED]> wrote: > > hi! > > > > It seems like there isn't an obvious way to override the .so files for > > chicken eggs repository. > > > > I would like to install 'eggs' using chicken-setup, but copy the .so files > > to a custom directory in my $HOME (as I don't have root access in my > > webhost). > > > > Is there a way to override the respository? > > You can just set the CHICKEN_REPOSITORY environment variable - it > should contain the path where you want eggs to be installed. As far as I could see from chicken-setup.scm, doing $ chicken-setup -repository path/to/alternative/repo egg also works, although chicken-setup -h says -repository only prints the location of the repository. Can -repository be safely used as an alternative to setting CHICKEN_REPOSITORY? Best wishes, Mario ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
Hi Sridhar, just curious about your hosted experience. Are you using Chicken to serve pages? Which webhost did you go with? -- Dan - Original Message From: Sridhar Ratna To: chicken-users@nongnu.org Sent: Friday, September 15, 2006 4:32:48 PM Subject: [Chicken-users] Custom repository (for chicken .so files) hi! It seems like there isn't an obvious way to override the .so files for chicken eggs repository. I would like to install 'eggs' using chicken-setup, but copy the .so files to a custom directory in my $HOME (as I don't have root access in my webhost). Is there a way to override the respository? ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
On 9/15/06, Dan <[EMAIL PROTECTED]> wrote: Hi Sridhar,just curious about your hosted experience. Are you using Chicken to serve pages?Yes, I'm planning to write a cgi app. Which webhost did you go with?NearlyFreeSpeech.Net has support for MIT-Scheme, Chicken and clisp.See http://example.nfshost.com/versions.php felix, thanks for the quick reply. I wonder why this isn't in the documentation (at least in 'chicken-setup -help')-- http://www.nearfar.org/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
On 15 Sep 2006 10:53:25 -0300, Mario Domenech Goulart <[EMAIL PROTECTED]> wrote: also works, although chicken-setup -h says -repository only prints the location of the repository. Can -repository be safely used as an alternative to setting CHICKEN_REPOSITORY? You are right, and -h doesn't print the whole truth (fixed, thanks). During execution of .setup scripts the environment-variable will be in effect, but for all actions performed by chicken-setup, the option will do the right thing. cheers, felix -- http://galinha.ucpel.tche.br:8081/blog/blog.ssp ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
> felix, thanks for the quick reply. I wonder why this isn't in the > documentation (at least in 'chicken-setup -help') Well, it seems to be in chicken-setup's manual: http://galinha.ucpel.tche.br/chicken-setup Then again, I suppose it should be added to the FAQ: http://galinha.ucpel.tche.br/faq It would be great if you could add your question, and the answer, there, Sridhar. I think it is general enough to deserve inclussion. I would probably add a “Extensions” section. There I would add “How can I install Chicken eggs to a non-default location?”. And then, I would add “Can I install chicken eggs as a non-root user?” and have the answer refer to the one for the previous question. Thanks. Alejo. http://azul.freaks-unidos.net/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
On 9/19/06, Alejandro Forero Cuervo <[EMAIL PROTECTED]> wrote: It would be great if you could add your question, and the answer,there, Sridhar. I think it is general enough to deserve inclussion.I would probably add a "Extensions" section. There I would add "How can I install Chicken eggs to a non-default location?". And then, Iwould add "Can I install chicken eggs as a non-root user?" and havethe answer refer to the one for the previous question.Alejo, I can't edit the FAQ. The wiki still have old links (with port 8080 in it). Can you fix them? You can edit the faq with the following content,== Extensions = How can I install Chicken eggs to a non-default location? You can just set the CHICKEN_REPOSITORY environment variable. It should contain the path where you want eggs to be installed.$ export CHICKEN_REPOSITORY=~/chicken/$ chicken-setup extensionname=== Can I install chicken eggs as a non-root user? Yes, see (link to prev faq)btw, (getenv "FOO") works, but (setenv "FOO" "VALUE") doesn't as 'setenv' is not at all recognized. Should I import any module? (I'm new to scheme) -- http://www.nearfar.org/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
On 9/15/06, felix winkelmann <[EMAIL PROTECTED]> wrote: You can just set the CHICKEN_REPOSITORY environment variable - itshould contain the path where you want eggs to be installed.I couldn't make this work with CGI apps though. -bash-2.05b$ head stream-cgi-test.cgi#!/bin/sh ":";exec /usr/local/bin/csi -s $0 "$@";; Set chicken respository path for importing eggs (use posix) (setenv "CHICKEN_REPOSITORY" "/home/htdocs/chicken") (use stream-cgi html-stream)Doing a 'setenv' programatically still doesn't work. Chicken bails out with following error,Error: (require) can not load extension: stream-cgiI think, chicken doesn't find the repository path at the time of (use posix), but before even the script is execute. Any idea on how to overcome this problem?-- http://www.nearfar.org/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
On 9/19/06, Sridhar Ratna <[EMAIL PROTECTED]> wrote: I couldn't make this work with CGI apps though. -bash-2.05b$ head stream-cgi-test.cgi #!/bin/sh ":";exec /usr/local/bin/csi -s $0 "$@" ;; Set chicken respository path for importing eggs (use posix) (setenv "CHICKEN_REPOSITORY" "/home/htdocs/chicken") (use stream-cgi html-stream) Doing a 'setenv' programatically still doesn't work. Chicken bails out with following error, Error: (require) can not load extension: stream-cgi I think, chicken doesn't find the repository path at the time of (use posix), but before even the script is execute. Any idea on how to overcome this problem? Try (repository-path "/home/htdocs/chicken") before doing the require. cheers, felix -- http://galinha.ucpel.tche.br:8081/blog/blog.ssp ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
> I can't edit the FAQ. The wiki still have old links (with port 8080 > in it). Can you fix them? Hmm, those links should work just as well as the regular (port 80) links. :-) But alright, since there's no need to use the non-standard 8080 port, I guess I will remove it. > You can edit the faq with the following content, I just added your content. Thanks for your contribution. :-) Alejo. http://azul.freaks-unidos.net/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Custom repository (for chicken .so files)
> I couldn't make this work with CGI apps though. [...] > > Any idea on how to overcome this problem? How about: > #!/bin/sh > ":";export CHICKEN_REPOSITORY="/home/htdocs/chicken";exec /usr/local/bin/csi > -s $0 "$@" > > (use stream-cgi html-stream) BTW, the export assumes you're using bash. If you're using GNU/Linux, this is likely your case. If you're using Apache, I would suggest setting the CHICKEN_REPOSITORY environment variable using its SetEnv directive; to me it sounds better to keep it in your configuration files rather than in your source code. In this case you'd just do something along the lines of: #!/usr/local/bin/csi -s (use stream-cgi html-stream) Good luck. :-) Alejo. http://azul.freaks-unidos.net/ ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users