Trema on Ubuntu 14.04

360 views
Skip to first unread message

Denis Ovsienko

unread,
Jan 7, 2015, 7:03:04 PM1/7/15
to trem...@googlegroups.com
Hello list.

Some time ago I tried to install Trema on a fresh Ubuntu 14.04 PC. The instructions from the README didn't work but after looking through the recent issues on GitHub I figured it out how to make it work using the default ruby version (1.9.1). Today I tried to setup another Trema controller on another Ubuntu 14.04 host and it failed because trema/pio now requires ruby 2.0.

I hope this will be eventually fixed and/or documented, meanwhile let me share the commands that made it work for me, maybe it will save somebody an hour.

(as root)
apt-get --yes install gcc make ruby2.0 ruby2.0-dev libsqlite3-dev libpcap-dev libglib2.0-dev
for f in erb gem irb rake rdoc ri ruby testrb; do rm /usr/bin/$f; ln -s ${f}2.0 /usr/bin/$f; done
gem install rubygems-update
update_rubygems
gem install bundler
ln -s /usr/include/x86_64-linux-gnu/ruby-2.0.0/ruby/config.h /usr/include/ruby-2.0.0/ruby/

(as user)
git clone git://github.com/trema/trema
cd trema
bundle install
rake

--
Denis Ovsienko

Azmi Megat

unread,
Jul 28, 2015, 12:24:18 AM7/28/15
to trema-dev, de...@ovsienko.info
Hi Denis,

I had already successfully install the trema version 0.48 with ruby 2.0. Thanks for the post. However I failed to run the "Hello-Trema.rb" with the error of  uninitialized constant Controller (NameError).

Hope you can help.

Thank you.

Megat
Reply all
Reply to author
Forward
0 new messages