leafo / gifine

Quickly record and edit gifs and videos of your desktop
285 stars 14 forks source link

luarocks install fails #3

Closed josefnpat closed 7 years ago

josefnpat commented 7 years ago

Perhaps I'm doing something wrong? Fresh install of luarocks:

Installing http://luarocks.org/dev/gifine-dev-1.rockspec...
Using http://luarocks.org/dev/gifine-dev-1.rockspec... switching to 'build' mode

Missing dependencies for gifine:
lgi 

Using https://rocks.moonscript.org/lgi-0.9.1-1.src.rock... switching to 'build' mode
make -C lgi
make[1]: Entering directory '/tmp/luarocks_lgi-0.9.1-1-3364/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
No package 'gobject-introspection-1.0' found
Makefile:53: recipe for target '.depcheck' failed
make[1]: *** [.depcheck] Error 1
make[1]: Leaving directory '/tmp/luarocks_lgi-0.9.1-1-3364/lgi/lgi'
Makefile:16: recipe for target 'all' failed
make: *** [all] Error 2

Error: Failed installing dependency: https://rocks.moonscript.org/lgi-0.9.1-1.src.rock - Build error: Failed building.
josefnpat commented 7 years ago

also, merry xmas!

~♠ luarocks --version
/usr/bin/luarocks 2.2.0
LuaRocks main command-line interface
leafo commented 7 years ago

the dependency lgi is failing to build, the error message says what's up:

No package 'gobject-introspection-1.0' found

did you install gobject-introspection to your system?

pacman -Syu gobject-introspection
josefnpat commented 7 years ago

Oh, I didn't recognize gobject-introspection - thought it was a lua dep.

I've installed it on Ubuntu 16.04:

$ sudo apt-get install gobject-introspection
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gobject-introspection is already the newest version (1.46.0-3ubuntu1).
The following package was automatically installed and is no longer required:
  ubuntu-core-launcher
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
$ sudo luarocks install --server=http://luarocks.org/dev gifine
Installing http://luarocks.org/dev/gifine-dev-1.rockspec...
Using http://luarocks.org/dev/gifine-dev-1.rockspec... switching to 'build' mode

Missing dependencies for gifine:
lgi 

Using https://rocks.moonscript.org/lgi-0.9.1-1.src.rock... switching to 'build' mode
make -C lgi
make[1]: Entering directory '/tmp/luarocks_lgi-0.9.1-1-7679/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
No package 'gobject-introspection-1.0' found
Makefile:53: recipe for target '.depcheck' failed
make[1]: *** [.depcheck] Error 1
make[1]: Leaving directory '/tmp/luarocks_lgi-0.9.1-1-7679/lgi/lgi'
Makefile:16: recipe for target 'all' failed
make: *** [all] Error 2

Error: Failed installing dependency: https://rocks.moonscript.org/lgi-0.9.1-1.src.rock - Build error: Failed building.

Does the 1.4 vs 1.0 matter?

leafo commented 7 years ago

try this: https://github.com/leafo/gifine/issues/1

LiamDawe commented 7 years ago

sudo apt install libgirepository1.0-dev (should be added to the list in the readme)

josefnpat commented 7 years ago

Derp, I had looked through the issues, and hadn't checked the closed ones. This worked, thanks!