2022년 4월 23일 토요일

Install Roswell on M1 Mac

Roswell is a Lisp implementation installer/manager, launcher, and much more! It started as a command-line tool with the aim to make installing and managing Common Lisp implementations really simple and easy. (https://roswell.github.io/)

There is a problem when installing Roswell using homebrew.

$ brew install roswell

$ ros setup


It fails to load sb-posix.

I couldn't found a solution and started to look into sbcl installation document and scripts.

I managed to fix the problem with following steps.

1. Go into sbcl source folder.

$  cd ~/.roswell/src/sbcl-2.2.2-arm64-darwin/

2. Run install.sh. it will copy fasl files to binary folder

$ INSTALL_ROOT=~/.roswell/impls/arm64/darwin/sbcl-bin/2.2.2 bash install.sh