Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Christoffer Lervåg
Error installing gem [ reply ]  
2010-05-23 16:24
Hello. I tried installing this gem on my Ubuntu 10.04 64-bit system, which uses the Ruby 1.9.1 version from the Ubuntu repository.

Installed libjpeg, libjpeg-dev, libpng and libpng-dev.

Then tried:
sudo gem1.9.1 install pikl

The installation failed with the following error message. Do you have any idea whats wrong?

chris@chris-desktop:~$ sudo gem1.9.1 install pikl

Building native extensions. This could take a while...
ERROR: Error installing pikl:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
checking for jpeglib.h... yes
checking for main() in -ljpeg... yes
checking for png.h... yes
checking for main() in -lpng... yes
creating Makefile

make
gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_JPEGLIB_H -DHAVE_PNG_H -fPIC -fno-strict-aliasing -g -g -O2 -O2 -g -Wall -Wno-parentheses -fPIC -o pikl_jpeg.o -c pikl_jpeg.c
gcc -I. -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_JPEGLIB_H -DHAVE_PNG_H -fPIC -fno-strict-aliasing -g -g -O2 -O2 -g -Wall -Wno-parentheses -fPIC -o pikl_io.o -c pikl_io.c
In file included from /usr/include/png.h:510,
from pikl_png.h:8,
from pikl_io.h:12,
from pikl_io.c:1:
/usr/include/pngconf.h:371: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
/usr/include/pngconf.h:372: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘include’
make: *** [pikl_io.o] Error 1


Gem files will remain installed in /usr/lib/ruby1.9.1/gems/1.9.1/gems/pikl-0.3.0 for inspection.
Results logged to /usr/lib/ruby1.9.1/gems/1.9.1/gems/pikl-0.3.0/ext/pikl/gem_make.out