lua-gd
lua-gd copied to clipboard
How to compile and install lua-gd?
There is no instructions on how to compile lua-gd after downloading. Please provide some.
If you are in windows, it is included in the LuaForWindows package.
This is how i did it on my RaspberryPi running Raspian.
- Install GD with
sudo apt-get install libgd-dev
(this will also install all dependencies) - Remove it again,
sudo apt-get remove libgd-dev
- Download the latest release from https://libgd.github.io/pages/downloads.html (I used libgd-2.2.5.tar.gz)
- Extract somewhere.
- Go to that folder with a terminal.
-
./configure
-
make
-
sudo make install
- Download Lua-gd from here and extract it.
- Go to that folder
-
make
-
sudo make install
And now i can do gd = require("gd")
and it works.
I had some trial and error in the middle but I think i got all the main steps.
Good luck!
THIS HELPED THANK YOU!