rugged icon indicating copy to clipboard operation
rugged copied to clipboard

build rugged with system libraries

Open one0fnine opened this issue 8 years ago • 4 comments

OS: Arch Linux Ruby: 2.3.4 I try build rugged with system libs. And get error: libgit2 version is not compatible, expected ~> 0.24.0 Default libgit2 version is 0.25

If I try build rugged without any flags I get another error: https://gist.github.com/one0fnine/8c748a63e2bcf4b707a35dd4445a2a51

one0fnine avatar May 27 '17 08:05 one0fnine

solution: sudo pacman -Sy openssl-1.0 PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig:/usr/lib/pkgconfig bundle install

one0fnine avatar May 27 '17 15:05 one0fnine

OS: Fedora Linux 28 Ruby: 2.5.1p57

libgit2 version is not compatible, expected ~> 0.27.0

Basically the same error on Fedora 28, versions of libgit2 and libgit2-devel installed by dnf were 0.26.6-1.fc38 when 0.27.0 was needed.


This fixed it in case anyone else runs into this error:

bundle init
echo 'gem "rugged"' >> Gemfile
bundle config build.rugged --use-system-libraries

wget https://github.com/libgit2/libgit2/archive/v0.27.0.tar.gz
tar xzf v0.27.0.tar.gz
cd libgit2-0.27.0
cmake .
make
sudo make install
cd ..

bundle install --path vendor/bundle/

hayesall avatar Oct 02 '18 23:10 hayesall

I'm currently maintaining ruby-rugged for Arch Linux and just opted to force remove the broken and unneeded checks from ext/rugged/extconf.rb.

dvzrv avatar Jun 09 '19 13:06 dvzrv

After 5 years this is still a problem.

dvzrv avatar Aug 16 '22 14:08 dvzrv