lgi-devs / lgi

Dynamic Lua binding to GObject libraries using GObject-Introspection
MIT License
436 stars 69 forks source link

Installation errors #208

Open Migacz85 opened 5 years ago

Migacz85 commented 5 years ago

Hi I just followed installation step and get the following erros:

sudo luarocks install lgi Installing https://luarocks.org/lgi-0.9.2-1.src.rock make -C lgi make[1]: Entering directory '/tmp/luarocks_lgi-0.9.2-1-ppcbkw/lgi/lgi' pkg-config --exists 'gobject-introspection-1.0 >= 0.10.8' --print-errors Package gobject-introspection-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gobject-introspection-1.0.pc' to the PKG_CONFIG_PATH environment variable Package 'gobject-introspection-1.0', required by 'virtual:world', not found make[1]: [Makefile:53: .depcheck] Error 1 make[1]: Leaving directory '/tmp/luarocks_lgi-0.9.2-1-ppcbkw/lgi/lgi' make: [Makefile:16: all] Error 2

Error: Build error: Failed building.

psychon commented 5 years ago

Well, you need gobject-introspection. In Debian, the necessary package is called libgirepository1.0-dev. If you tell me what system you are on, I can try figuring out the necessary package.

Migacz85 commented 5 years ago

Hi, I'm on latest manjaro

psychon commented 5 years ago

Seems to be just gobject-introspection: https://code.foxkit.us/adelie/packages/blob/master/user/gobject-introspection/APKBUILD

Migacz85 commented 5 years ago

Brilliant, but how I should use/run this script ?

psychon commented 5 years ago

I don't know. I was googling for gobject-introspection and manjaro and found the above. I thought it meant that the package is simply called gobject-introspection in manjaro. But the URL does not look all that official...

TingPing commented 5 years ago

pacman -S gobject-introspection...