clog/ANDROID-TERMUX.md
2024-05-17 10:58:33 -04:00

83 lines
1.8 KiB
Markdown
Vendored

## Using Termux on Android devilces for Common Lisp and CLOG Developent
Install Termux
https://f-droid.org/en/packages/com.termux/
```
pkg upgrade
pkg install openssh
pkg install emacs
pkg install zstd
pkg install libsqlite
```
To use _ECL_ use the following (sbcl below):
```
pkg install clang
pkg install ecl
curl -o ql.lisp http://beta.quicklisp.org/quicklisp.lisp
ecl
```
then run in ecl:
```
(load "ql.lisp")
(quicklisp-quickstart:install :path "~/.quicklisp")
(ql:add-to-init-file)
(ql:quickload :quicklisp-slime-helper)
```
To use _SBCL_ use the following instead:
```
curl -OL "https://github.com/bohonghuang/sbcl-termux-build/releases/download/2.3.3/sbcl-2.3.3-arm64-termux.tar.zst"
unzstd -c "sbcl-2.3.3-arm64-termux.tar.zst" | tar -xf -
cd "sbcl-2.3.3"
sh install.sh
```
```
curl -o ql.lisp http://beta.quicklisp.org/quicklisp.lisp
sbcl --no-sysinit --no-userinit --load ql.lisp \
--eval '(quicklisp-quickstart:install :path "~/.quicklisp")' \
--eval '(ql:add-to-init-file)' \
--quit
sbcl --eval '(ql:quickload :quicklisp-slime-helper)' --quit
```
Both _SBCL and _ECL_ continue here:
Add to ~/.emacs.d/init.el
```
(load (expand-file-name "~/.quicklisp/slime-helper.el"))
(setq inferior-lisp-program "sbcl")
```
Install the UltraLisp distro for recent software for quicklisp:
```
sbcl --eval '(ql-dist:install-dist "http://dist.ultralisp.org/" :prompt nil)' --eval '(ql:update-all-dists)' --quit
```
Install CLOG and CLOG Builder for a rich GUI Lisp IDE that works with emacs
and on Android also:
```
sbcl --eval '(ql:quickload :clog/tools)' --quit
```
start emacs
M-x slime
Run builder with CLOG Builder for a rich GUI Lisp IDE
```
(ql:quickload :clog/tools) (clog-tools:clog-builder)
```
A failure will occur for sqlite on sbcl, either ignore or choose {use-value}
("/data/data/com.termux/files/usr/lib/libsqlite3.so")