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
using_chicken_on_sdf [2021/03/17 20:47] – [Learn] hc9using_chicken_on_sdf [2021/03/17 20:52] (current) – [Learn] hc9
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 40: Line 40:
 ===== Install Eggs ===== ===== Install Eggs =====
  
-The Chicken community produces third-party libraries called eggs. (If you're familiar with the Ruby programming language, eggs are like Ruby's gems.) As an example, let's install the [[http://wiki.call-cc.org/eggref/4/readline|readline]] egg. This will allow you to use in the Chicken interpreter the same editing and history commands you use in your shell. For example, hitting the Up key will enter your previous command.+The Chicken community produces third-party libraries called //eggs//. (If you're familiar with the Ruby programming language, eggs are like Ruby's gems.) As an example, let's install the [[http://wiki.call-cc.org/eggref/4/readline|readline]] egg. This will allow you to use in the Chicken interpreter the same editing and history commands you use in your shell. For example, hitting the Up key will enter your previous command.
  
-Ideally, you could just run chicken-install readline and the egg would be installed. But if you do that, you'll get an error. Since you don't have administrator privileges on SDF, you can't install eggs to the default location (a system directory). You must install the eggs in your home directory, which requires you to do a little configuration beforehand. I'll show you how to do that.+Ideally, you could just run ''chicken-install readline'' and the egg would be installed. But if you do that, you'll get an error. Since you don't have administrator privileges on SDF, you can't install eggs to the default location (a system directory). You must install the eggs in your home directory, which requires you to do a little configuration beforehand. I'll show you how to do that.
  
 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:
Line 72: Line 72:
 </code> </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:
  
 ''(use readline)'' ''(use readline)''
using_chicken_on_sdf.1616014033.txt.gz · Last modified: 2021/03/17 20:47 by hc9