Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Basically, these installation steps are from this article <em><a href="http://arantaday.com/?tag=hunchentoot" rel="nofollow noreferrer">A Simple Lisp Webapp for beginners</a></em>, recommended by Frank Shearar (thanks again). But I didn't follow the exact steps because (1) I'd like to install Common Lisp with a local user; (2) I am not familiar with a few things the author mentioned. You can check out the original article or you can just follow me here. I am afraid my instructions are much easier to follow. :)</p> <p>Three packages need to be downloaded before installation. sbcl binary and source packages can be downloaded <a href="http://sbcl.sourceforge.net/platform-table.html" rel="nofollow noreferrer"><strong><em>here</em></strong></a>, and smanek package can be downloaded <a href="http://github.com/smanek/trivial-lisp-webapp" rel="nofollow noreferrer"><strong><em>here</em></strong></a>.</p> <ul> <li><p>sbcl-1.0.38-x86-linux-binary.tar.bz2</p></li> <li><p>sbcl-1.0.38-source.tar.bz2</p></li> <li><p>smanek-trivial-lisp-webapp-3681c1</p></li> </ul> <p><em>Note: The version number may have changed when you see this essay. So don't bother to get the exact packages. However, this is right packages working for me.</em></p> <p>Here is what I do (<em>replace YOURPATH with your real path and I assume you are using <strong>BASH</em></strong>):</p> <p><strong>1. Install the binary sbcl package</strong></p> <pre><code>tar jxf sbcl-1.0.38-x86-linux-binary.tar.bz2 cd sbcl-1.0.38-x86-linux INSTALL_ROOT=YOURPATH sh install.sh cd .. </code></pre> <p><em>Well, the binary sbcl package has been installed now. When the install program complains with something like "no manual found", it is OK since the manual stuff is not included in the binary package. Let it be.</em></p> <p><strong>2. Set the PATH and SBCL_HOME</strong></p> <pre><code>export PATH=YOURPATH/bin/:$PATH export SBCL_HOME=YOURPATH/lib/sbcl/ </code></pre> <p><strong>3. Install the source sbcl package</strong></p> <pre><code>tar jxf sbcl-1.0.38-source.tar.bz2 cd sbcl-1.0.38 sh make.sh export SBCL_HOME='' INSTALL_ROOT=YOUROTHTERPATH sh install.sh cd .. </code></pre> <p><em>NOTE: You may need to specify another directory for installation, or it will be installed into the same directory the binary sbcl resides in.</em></p> <p><strong>4. Set the PATH and SBCL_HOME</strong></p> <pre><code>export PATH=YOUROTHERPATH/bin/:$PATH export SBCL_HOME=YOUROTHERPATH/lib/sbcl/ </code></pre> <p><strong>5. Install the smanek package</strong></p> <pre><code>unzip smanek-trivial-lisp-webapp-36816c1.zip cd smanek-trival-lisp-webapp-36816c1 cd scripts ./startserver.sh </code></pre> <p><em>When it says "Webserver started on port 8080", you can visit "<a href="http://localhost:8080" rel="nofollow noreferrer">http://localhost:8080</a>" in your web browser. It is there, right?</em></p> <p><strong>6. A few notes</strong></p> <ul> <li>After putting the three packages in one directory, you can run the above scripts one by one or in a batch. Remember to replace the PATHs with your real paths.</li> <li>I suspect Shaneal Manek has hacked the asdf and hunchentoot packages a lot, as I didn't find anything in the $HOME/.sbclrc and $HOME/.sbcl. Thank you, Shaneal Manek, you've helped a lot of people a lot.</li> <li>I still feel hateful toward those who always says a lot but does a little. Even people are angry, it is still evident that it is what they say matters, not how they say it. Nevertheless, I was wrong to say something bad in a bad mood. </li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload