I'm learning Rails and fairly new to Macports.
I receive the following error when running rails server
for my project:
/...config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end
I believe this syntax error is caused by running a version of Rails less than 1.9.0 confirmed because ruby -v
gives me ruby 1.8.7
.
The problem is that I'm sure I have installed ruby 1.9.3
I've run port clean ruby19
and various combinations to install ruby 1.9.3
port install ruby19
port install ruby19 -nosuffix
Both give me the following error:
Error: org.macports.activate for port ruby19 returned: Image error: /opt/local/bin/erb is being used by the active ruby port. Please deactivate this port first, or use 'port -f activate ruby19' to force the activation.
If I run port -f activate ruby19
I get this error:
---> The following versions of ruby19 are currently installed:
---> ruby19 @1.9.3-p194_3+doc (active)
---> ruby19 @1.9.3-p194_3+doc+mactk
---> ruby19 @1.9.3-p194_3+doc+nosuffix
Error: port activate failed: Registry error: Please specify the full version as recorded in the port registry.
Where do I go from here?!
I basically want the quickest simplest solution to get this project up and running - I don't need multiple versions of ruby on my machine.
Come on I know I can't be the first with this problem! Is RVM really the only way people do this?
Many thanks in advance!