Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile and install lua-gd? #9

Open
RoPe93 opened this issue Jan 17, 2018 · 2 comments
Open

How to compile and install lua-gd? #9

RoPe93 opened this issue Jan 17, 2018 · 2 comments

Comments

@RoPe93
Copy link

RoPe93 commented Jan 17, 2018

There is no instructions on how to compile lua-gd after downloading. Please provide some.

@Andols0
Copy link

Andols0 commented Jan 31, 2018

If you are in windows, it is included in the LuaForWindows package.

This is how i did it on my RaspberryPi running Raspian.

  1. Install GD with sudo apt-get install libgd-dev (this will also install all dependencies)
  2. Remove it again, sudo apt-get remove libgd-dev
  3. Download the latest release from https://libgd.github.io/pages/downloads.html (I used libgd-2.2.5.tar.gz)
  4. Extract somewhere.
  5. Go to that folder with a terminal.
  6. ./configure
  7. make
  8. sudo make install
  9. Download Lua-gd from here and extract it.
  10. Go to that folder
  11. make
  12. 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!

@AntonyBarnard
Copy link

THIS HELPED THANK YOU!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants