ParseTree problem on Ubuntu 7.4, GCC 4.1

Hi List,

I am having trouble using ParseTree 1.7 on my new Ubuntu system.

When I require ‘parse_tree’, I get the following error:
http://pastie.caboo.se/55273

It seems like it can not find variuos development files. I am using GCC
4.1. Should I install the corresponding source? I’m downloading it at
the moment.

If not, any other suggestions?

I’m using:
Ruby 1.8.5
Rubygems 0.9

This is most frustrating. All help appreciated.

Xin

Xin Z. wrote:

Hi List,

I am having trouble using ParseTree 1.7 on my new Ubuntu system.

When I require ‘parse_tree’, I get the following error:
http://pastie.caboo.se/55273

It seems like it can not find variuos development files. I am using GCC
4.1. Should I install the corresponding source? I’m downloading it at
the moment.

Make sure ‘build-essential’ and ‘ruby1.8dev’ ubuntu packages are
installed.

For me it seems to work:

[email protected]:~$ gcc --version
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright © 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

[email protected]:~$ ruby --version
ruby 1.8.5 (2006-08-25) [i486-linux]
[email protected]:~$ ruby
ruby ruby1.8 rubyforge
[email protected]:~$ gem --version
0.9.0
[email protected]:~$ sudo gem install parsetree
Password:
Need to update 12 gems from http://gems.rubyforge.org

complete
Successfully installed ParseTree-1.7.0
Installing ri documentation for ParseTree-1.7.0…

lib/parse_tree.rb:123:26: ‘:’ not followed by identified or operator

test/test_parse_tree.rb:70:50: ‘:’ not followed by identified or
operator

test/test_parse_tree.rb:81:38: ‘:’ not followed by identified or
operator
Installing RDoc documentation for ParseTree-1.7.0…

lib/parse_tree.rb:123:26: ‘:’ not followed by identified or operator

test/test_parse_tree.rb:70:50: ‘:’ not followed by identified or
operator

test/test_parse_tree.rb:81:38: ‘:’ not followed by identified or
operator

Cheers,
Peter
__
http://www.rubyrailways.com :: Ruby and Web2.0 blog
http://scrubyt.org :: Ruby web scraping framework
http://rubykitchensink.ca/ :: The indexed archive of all things Ruby.

Well, oddly enough… though I am using x86_64 I was running into a lot
of compilation errors.
I removed binutils, installed build-essential and binutils and then
everything seemed to work.

this was a problem in a few beta’s but may have missed a fix before
release. I believe there is already a bug noted.

Mike

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs