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 revisionBoth sides next revision
using_chicken_on_sdf [2021/03/17 20:44] – [Install Eggs] hc9using_chicken_on_sdf [2021/03/17 20:46] – [Install Eggs] hc9
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