Error Installing GTK2

217 views
Skip to first unread message

jena peoples

unread,
Apr 23, 2012, 12:56:39 PM4/23/12
to origa...@googlegroups.com
Two errors actually, the first in installing the gtk2


Computer:~ user$ sudo gem install gtk2
Building native extensions.  This could take a while...
ERROR:  Error installing gtk2:
ERROR: Failed to build gem native extension
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/glib2-1.1.3 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/glib2-1.1.3/ext/glib2/gem_make.out


--------------------------AND-----------------------------

Computer:~ user$ sudo git clone 'https://code.google.com/p/origami-pdf/' origami
Cloning into 'origami'...
fatal: remote error: Repository not found


Any help or suggestions would be appreciated. 

Guillaume Delugré

unread,
Apr 28, 2012, 10:16:58 PM4/28/12
to origa...@googlegroups.com
Hello jena,

Le 23 avr. 2012 à 18:56, jena peoples a écrit :

Two errors actually, the first in installing the gtk2


Computer:~ user$ sudo gem install gtk2
Building native extensions.  This could take a while...
ERROR:  Error installing gtk2:
ERROR: Failed to build gem native extension
 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/glib2-1.1.3 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/glib2-1.1.3/ext/glib2/gem_make.out

You seem to be using the default Ruby installation on Mac OS.
I encountered no problem when building the gem using a MacPorts installation of Ruby.



--------------------------AND-----------------------------

Computer:~ user$ sudo git clone 'https://code.google.com/p/origami-pdf/' origami
Cloning into 'origami'...
fatal: remote error: Repository not found


Any help or suggestions would be appreciated. 

This is a not a git repository, but a mercurial one :)
So the right command is : 

Regards,
Guillaume

jena peoples

unread,
Apr 28, 2012, 10:44:23 PM4/28/12
to origa...@googlegroups.com

Sanjay Kumar

unread,
Jul 10, 2013, 7:11:28 AM7/10/13
to origa...@googlegroups.com
I encountered the same problem, it  has dependency on XQuartz.
You have to install XQuartz from https://xquartz.macosforge.org/landing/
then  gem install gtk2 went fine
BTW, to use pdfwalker, you need to have X11 also installed and DISPLAY variable set to :0 and you also have to execute xhost+ command,
otherwise you get an error - cannot open display
Reply all
Reply to author
Forward
0 new messages