Forums Archived

The forums are being archived. See this topic for more information.

How install Rubygame on amd64

Get help and support with Rubygame

How install Rubygame on amd64

Postby zeo » Thu Feb 19, 2009 12:59 am

Hello
I have problem with install rubygame on Debian amd64. I found some posts about this case but without answer. When i try "rake build" i get:
Code: Select all
kamil@kama:~/Desktop/rubygame-2.4.1$ rake build
(in /home/kamil/Desktop/rubygame-2.4.1)
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.
Linking compiled files to create rubygame/rubygame_core.so
/usr/bin/ld: ext/rubygame/rubygame_main.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
ext/rubygame/rubygame_main.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
rake aborted!
Command failed. Aborting.
/home/kamil/Desktop/rubygame-2.4.1/Rakefile:69:in `try_shell'
(See full trace by running task with --trace)


I think i know where is the problem but i don't know how to compile rubygame_main.o with -fPIC flag. I must add this somwhere in Rakefile but i don't have idea where exactly.
zeo
 
Posts: 2
Joined: Thu Feb 19, 2009 12:47 am

Re: How install Rubygame on amd64

Postby jacius » Thu Feb 19, 2009 6:36 am

Hi zeo, try doing
Code: Select all
CFLAGS="-fPIC" rake build
or
Code: Select all
sudo CFLAGS="-fPIC" gem install rubygame

That sets the CFLAGS variable for that one command (and any child processes of that command). The Rakefile looks at CFLAGS when compiling.
User avatar
jacius
Site Admin
 
Posts: 131
Joined: Fri Feb 06, 2009 11:13 pm

Re: How install Rubygame on amd64

Postby zeo » Thu Feb 19, 2009 11:05 am

This work, thx :)
zeo
 
Posts: 2
Joined: Thu Feb 19, 2009 12:47 am


Return to Help & Support

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron