To get Lucky, you need to install these first.
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.17.0
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.