Fixed this by adding:

#define RSTRING_PTR(s) (RSTRING(s)->ptr)
#define RSTRING_LEN(s) (RSTRING(s)->len)

to

/usr/lib64/ruby/1.8/x86_64-linux/ruby.h

and doing a

gem uninstall rdiscount
gem install rdiscount -v 1.3.1.1


On Jun 2, 12:54 pm, Steve Hajducko <[email protected]> wrote:
> Got gitorious up and running on a RHEL5 box - was able to register,
> login, create new project.  However, when I try to view the new
> project I've created, I get the following error:
>
> ruby: symbol lookup error: /usr/lib64/ruby/gems/1.8/gems/
> rdiscount-1.3.1.1/lib/rdiscount.so: undefined symbol: RSTRING_LEN
>
> And then the server dies.
>
> ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
> => Booting Mongrel
> => Rails 2.3.2 application starting onhttp://0.0.0.0:4001
> /opt/mainline/config/environment.rb:98: warning: already initialized
> constant CA_FILE
> /opt/mainline/app/metal/git_http_cloner.rb:53: warning: already
> initialized constant TRUSTED_PROXIES
> => Call with -d to detach
> => Ctrl-C to shutdown server
> ruby: symbol lookup error: /usr/lib64/ruby/gems/1.8/gems/
> rdiscount-1.3.1.1/lib/rdiscount.so: undefined symbol: RSTRING_LEN
>
> [r...@gears1:/opt/mainline]# ruby --version
> ruby 1.8.5 (2006-08-25) [x86_64-linux]
>
> [r...@gears1:/opt/mainline]# gem list
>
> *** LOCAL GEMS ***
>
> actionmailer (2.3.2, 2.2.2, 2.1.2)
> actionpack (2.3.2, 2.2.2, 2.1.2)
> activerecord (2.3.2, 2.2.2, 2.1.2)
> activeresource (2.3.2, 2.2.2, 2.1.2)
> activesupport (2.3.2, 2.2.2, 2.1.2)
> cgi_multipart_eof_fix (2.5.0)
> chronic (0.2.3)
> daemons (1.0.10)
> diff-lcs (1.1.2)
> echoe (3.1.1)
> fastthread (1.0.7)
> gem_plugin (0.2.3)
> geoip (0.8.0)
> highline (1.5.1)
> hoe (1.12.2)
> json (1.1.6)
> mime-types (1.16)
> mocha (0.9.5)
> mongrel (1.1.5)
> mysql (2.7)
> rack (1.0.0)
> rails (2.1.2)
> rake (0.8.4)
> rdiscount (1.3.1.1)
> rmagick (2.9.2)
> ruby-hmac (0.3.2)
> ruby-openid (2.1.6)
> ruby-yadis (0.3.4)
> rubyforge (1.0.3)
> stomp (1.1)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gitorious?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to