Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to install ruby SQLite3 gem, on a remote freebsd server. I'm using RVM which in theory does not need 'root permission' to compile gems but I get a root error, here:

[user ~]$ gem install sqlite3 -- --with-sqlite3-dir=/home/www/atma/opt/ [...]

make install /usr/bin/install -c -o root -g wheel -m 0755 sqlite3_native.so /home/www/atma/.gems/gems/sqlite3-1.3.6/lib/sqlite3 install: /home/www/atma/.gems/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.so: chown/chgrp: Operation not permitted make: * [/home/www/atma/.gems/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.so] Error 71

Gem files will remain installed in /home/www/atma/.gems/gems/sqlite3-1.3.6 for inspection. Results logged to /home/www/atma/.gems/gems/sqlite3-1.3.6/ext/sqlite3/gem_make.out

Any ideas how to approach this? Maybe re-installing RVM?

best regards, PA

share|improve this question
    
What are the permissions in the target folders? Can't you modify them accordingly? –  slhck Aug 28 '12 at 11:47
    
define "accordingly"... –  atmosx Aug 28 '12 at 22:58

1 Answer 1

try installing the ruby version:

gem install sqlite3 --platform ruby

I'm not sure if you need to add path for sqlite3 dir but this should not require .so files - and most likely would skip the part of installing them.

share|improve this answer
    
Solved it, was a lame RVM error.. –  atmosx Sep 4 '12 at 10:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.