Getting Started
The easiest way to use cosock
is to install it with luarocks.
luarocks install cosock
cosock
depends on both luasocket
and luasec, when running the above command
luarocks
will attempt to compile both of these libraries which have some system
dependencies.
Luasocket
The version of luasocket
we are using requires that the Lua development package is
available.
Linux
For Debian-based systems, you would need to run the following
sudo apt-get install liblua-dev
For Fedora
sudo dnf install lua-devel
Windows
Help Wanted: please open a PR with info here if you have successfully got this working on windows.
MacOS
These can be downloaded for MacOS via brew
brew install lua
Luasec
Luasec depends on Openssl so you will need those development libraries
Linux
For Debian-based systems, you would need to run the following
sudo apt-get install libssl-dev
For Fedora
sudo dnf install openssl-devel
Windows
Help Wanted: please open a PR with info here if you have successfully got this working on windows.
MacOS
These can be downloaded for MacOS via brew
brew install openssl