Alternatively you could install Crystal without a version manager.
Lucky uses a process manager to watch assets and start the server in development.
Install one of these process managers: Overmind (recommended), Heroku CLI (great if you plan to use Heroku to deploy), forego, or foreman.
By default Lucky creates a
Procfile.devthat defines what processes should be started when running
lucky dev. You can modify the
Procfile.devto start other processes like running background jobs.
apt-get install libc6-dev libevent-dev libpcre2-dev libpng-dev libssl1.0-dev libyaml-dev zlib1g-dev
dnf install glibc-devel libevent-devel pcre2-devel openssl-devel libyaml-devel zlib-devel libpng-devel. libpng-devel is for Laravel Mix
Once the required dependencies are installed, set up Lucky for your system.
brew install opensslto make sure you have OpenSSL
brew tap luckyframework/homebrew-lucky
brew install lucky
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfigto your
If you get an error like this:
Package libssl/libcrypto was not found in the pkg-config search paththen be sure to run the last step listed above so that Crystal knows where OpenSSL is located.
git clonethe CLI repo at https://github.com/luckyframework/lucky_cli
git checkout v0.18.3
crystal build src/lucky.cr
luckybinary to your path. Most of the time you can move it to
/usr/local/binand it should work:
mv lucky /usr/local/bin.
If you needed different steps, please help contribute to this section by editing this page on GitHub.