User Tools

Site Tools


using_chicken_on_sdf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
using_chicken_on_sdf [2021/03/17 20:44] – [Install Eggs] hc9using_chicken_on_sdf [2021/03/17 20:48] – [Play Around] hc9
Line 5: Line 5:
 ===== Learn ===== ===== Learn =====
  
-To learn Scheme programming, check out a tutorial like [[http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme.html|Teach Yourself Scheme in Fixnum Days]].+To learn Scheme programming, check out a tutorial like //[[http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme.html|Teach Yourself Scheme in Fixnum Days]]//.
  
 To learn about Chicken, check out the [[http://call-cc.org/|Chicken website]], which includes a [[http://wiki.call-cc.org/man/4/The%20User%27s%20Manual|manual]] and a [[http://wiki.call-cc.org/|wiki]]. To learn about Chicken, check out the [[http://call-cc.org/|Chicken website]], which includes a [[http://wiki.call-cc.org/man/4/The%20User%27s%20Manual|manual]] and a [[http://wiki.call-cc.org/|wiki]].
Line 11: Line 11:
 ===== Play Around ===== ===== Play Around =====
  
-To play with Chicken, start the interactive interpreter by running csi. It should look like this:+To play with Chicken, start the interactive interpreter by running ''csi''. It should look like this:
  
 <code> <code>
Line 46: Line 46:
 I'll assume you're running Bash as your shell and that you want to keep Chicken-related files in ~/chicken. First create a directory for a Chicken repository: I'll assume you're running Bash as your shell and that you want to keep Chicken-related files in ~/chicken. First create a directory for a Chicken repository:
  
 +<code>
   mkdir -p ~/chicken/lib/chicken/6   mkdir -p ~/chicken/lib/chicken/6
 +</code>
  
 Then install the repository: Then install the repository:
  
 +<code>
   chicken-install -init ~/chicken/lib/chicken/6   chicken-install -init ~/chicken/lib/chicken/6
 +</code>
  
 Then create some environment variables so Chicken will know to use your new repository for eggs, and will compile against SDF's system libraries when installing eggs: Then create some environment variables so Chicken will know to use your new repository for eggs, and will compile against SDF's system libraries when installing eggs:
  
 +<code>
   export CHICKEN_INCLUDE_PATH=${HOME}/chicken/lib/chicken/6   export CHICKEN_INCLUDE_PATH=${HOME}/chicken/lib/chicken/6
   export CHICKEN_REPOSITORY=${HOME}/chicken/lib/chicken/6   export CHICKEN_REPOSITORY=${HOME}/chicken/lib/chicken/6
   export CSC_OPTIONS="-I/usr/pkg/include -L/usr/pkg/lib -static-libs"   export CSC_OPTIONS="-I/usr/pkg/include -L/usr/pkg/lib -static-libs"
 +</code>
  
 (You may also wish to put the above lines in a shell startup file, like ~/.bash_profile, so that the variables will be set every time you log in to SDF.) (You may also wish to put the above lines in a shell startup file, like ~/.bash_profile, so that the variables will be set every time you log in to SDF.)
Line 62: Line 68:
 Now you can install the readline egg: Now you can install the readline egg:
  
 +<code>
   chicken-install readline   chicken-install readline
 +</code>
  
 If the install was successful, we can check whether everything's working. Start the Chicken interpreter with csi and run this Scheme program to load the readline egg: If the install was successful, we can check whether everything's working. Start the Chicken interpreter with csi and run this Scheme program to load the readline egg:
using_chicken_on_sdf.txt · Last modified: 2021/03/17 20:52 by hc9