WebFaction
Community site: login faq

Hi, I tried to upgrade to ruby on rails 4 but it fails.

I move into my rails app generated by webfaction installer script and I run this commands:

export GEM_HOME=$PWD/gems
export RUBYLIB=$PWD/lib
export PATH=$PWD/bin:$PATH

In this way I try to install the gems locally instead of trying to install it where I don't have permissions to.

Then I run:

gem install rails --version 4.0.0rc2

and I get this:

Building native extensions.  This could take a while...
ERROR:  Error installing rails:
    ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby2.0 extconf.rb
creating Makefile

make
compiling atomic_reference.c
atomic_reference.c:58:2: error: #error No CAS operation available for this platform
make: *** [atomic_reference.o] Error 1

asked 03 Jul '13, 13:21

Federico Tom...
336
accept rate: 0%

edited 03 Jul '13, 16:43

seanf
12.2k41836


This appears to be a problem with the Ruby 2.0 installation on our CentOS5 servers.

I'm not sure when it will be feasible to fix it, since it will require an update to glibc, which could break a lot of other things on the server.

If you need to update to Rails 4 immediately, then my recommendation is that you migrate your account to one of our CentOS6 servers, where we've verified that the problem does not exist.

permanent link

answered 03 Jul '13, 17:49

seanf
12.2k41836
accept rate: 37%

Hi, thank you so much. I am using WebFaction since a few years and I am always very satisfied!

I asked for the migration. In case I face problems I will write in this conversation.

(04 Jul '13, 03:32) Federico Tom...

Migration performed: I was able to build correctly the gem on the new machine

permanent link

answered 12 Jul '13, 04:52

Federico Tom...
336
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108
×81
×7
×6

question asked: 03 Jul '13, 13:21

question was seen: 3,023 times

last updated: 12 Jul '13, 04:52

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM