ParseTree problem on Ubuntu 7.4, GCC 4.1

X

Xin Zheng

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
 
P

Peter Szinek

Xin said:
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:

peter@brain:~$ gcc --version
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 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.

peter@brain:~$ ruby --version
ruby 1.8.5 (2006-08-25) [i486-linux]
peter@brain:~$ ruby
ruby ruby1.8 rubyforge
peter@brain:~$ gem --version
0.9.0
peter@brain:~$ 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.
 
M

Michael Steinfeld

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

Xin said:
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:

peter@brain:~$ gcc --version
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 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.

peter@brain:~$ ruby --version
ruby 1.8.5 (2006-08-25) [i486-linux]
peter@brain:~$ ruby
ruby ruby1.8 rubyforge
peter@brain:~$ gem --version
0.9.0
peter@brain:~$ 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,967
Members
47,520
Latest member
KrisMacono

Latest Threads

Top