Ruby RVM and installing gems

I'm not sure about the best way to manage ruby gems using rvm.
I followed the wiki guidelines for installing rvm system wide. When I install a gem using 'gem install rails' I get a file permission error for the /usr/local/rvm/gems/ruby-1.8.7-p334 directory. The rvm guidelines states DO NOT use sudo. Is it advisable to ignore this since I am using a system wide install?
Am I better off using a per user install?
I'm interested to know other arch users' experience and approach to using rvm.
Thanks,
Ed

A per-user install makes sense unless you have multiple accounts using the same machine and prevents the need to use sudo.
I use RVM daily with this setup and haven't had any problems.
If you'd prefer to go stick with the system-wide installation then ensure you're now a member of the rvm group.
The system-wide script should have added this group for you and set up permissions on the rvm directory.
These links give a more detailed explanation of what the install script actually does and how to do the same thing manually:
http://rvm.beginrescueend.com/deployment/system-wide/
http://blog.ninjahideout.com/posts/rvm- … ntegration
http://injekt.net/blog/9-rvm-plays-nice-on-production

Similar Messages

  • [SOLVED] bundle from ruby package can not install gems

    Hello, I was stuck with 'bundle' for hours, I do not know anything about Ruby, and even looking at the code won't get my anywhere. kindda don't like it... (guilty). Anyway, I'm gonna post it here to save someone else's time.
    What I was trying to do:
      I was trying to run this command, as developing an omega sub-theme for Drupal requires this. This command will read GemFile and install all GEM dependencies.
    bundle install
    What happened? What's the problem?
      this happened:
    Fetching gem metadata from https://rubygems.org/............
    Fetching additional metadata from https://rubygems.org/..
    Resolving dependencies...
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    /home/MY_USER/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of necessary
    libraries and/or headers. Check the mkmf.log file for more details. You may
    need configuration options.
    Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/MY_USER/.rvm/rubies/ruby-2.1.2/bin/ruby
    --with-ffi_c-dir
    --without-ffi_c-dir
    --with-ffi_c-include
    --without-ffi_c-include=${ffi_c-dir}/include
    --with-ffi_c-lib
    --without-ffi_c-lib=${ffi_c-dir}/lib
    --with-libffi-config
    --without-libffi-config
    --with-pkg-config
    --without-pkg-config
    /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
    You have to install development tools first.
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:541:in `try_link0'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:556:in `try_link'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:642:in `block in try_ldflags'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:635:in `with_ldflags'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:641:in `try_ldflags'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:1762:in `pkg_config'
    from extconf.rb:15:in `<main>'
    extconf failed, exit code 1
    Gem files will remain installed in /home/MY_USER/.rvm/gems/ruby-2.1.2/gems/ffi-1.9.3 for inspection.
    Results logged to /home/MY_USER/.rvm/gems/ruby-2.1.2/extensions/x86_64-linux/2.1.0/ffi-1.9.3/gem_make.out
    An error occurred while installing ffi (1.9.3), and Bundler cannot continue.
    Make sure that `gem install ffi -v '1.9.3'` succeeds before bundling.
    What was tried?
      Everything: cloning eventmachine directly from github which produced same result, removing gems depending on eventmachine however other packages produced the same result, ...
      The error message says: You have to install development tools first. however it was installed:
    sudo pacman --needed -S base-devel
    What was the problem? What's the solution then?
      Well, I had previously enabled multilib in pacman.com which resulted in gcc-multilib and gcc-libs-multilib being installed however these multilib packages does NOT work, gcc and gcc-libs needs to be installed instead. I do not know what is the proper solution for having these multilib packages and compiling ruby gems? (maybe adding multilib back to pacman.conf!) but it finally worked for me.
    I would create a wiki article but I don't know if it deserve's one + I'm not very good english writer + not sure if the solution is 100% right. probably this should be added to ruby page: in order to compile ruby gems you have to install gcc and gcc-libs instead of gcc-multilib and gcc-libs-multilib since multilib packages wont work because of...?
    Last edited by loolooyyyy (2014-06-19 17:33:08)

    Don't have the 7100 board , but some of theese issues are common .
    Enter BIOS in the following submenus :
    Advanced BIOS Features:
    -HD-Boot order - Make sure your SATA drive where you install OS is first in the list .
    (always check this one when altering HD's and connections of drives/usb-drives/card readers etc)
    Set normal boot order
    1'st boot device : CDROM
    2'nd boot device :Harddisk
    3'rd boot device : Harddisk (just to have something there)
    or if having floppy
    1'st boot device : Floppy
    2'nd boot device : CDROM
    3'rd boot device : Harddisk
    Boot other device : disabled
    Disconnect all USB cables coming from case or multicard dreader device etc. terminated on the motherboards JUSB1/JUSB2 .. headers .
    Enter Advanced Chipset features
    Integrated pheripherals
    Ide function setup ->
    Onchip IDE channel 0 : Disabled
    Onchip IDE channel 1 : Disabled
    SATA 1/2 : Enabled
    SATA 3/4 : Enabled
    Onboard device->
    OnBoard Sil3132 RAID : disabled
    OnBoard Sil3132 Mode :SATA
    Also recommend setting
    USB KB/Storage Support : Disabled
    (and connect the keyboard to PS2 via the delivered USB/PS2 adapter )
    Boot once , and enter bios again to verify the HDbootorder
    BTW: Having only 2.5GB for is not gonna cut it as OS partition is not enough as pagefile written under install is 1.5 times installed memory
    and the install will halt .
    Windows updates and other stuff as mail storage , my documents , user prifiles and registry hives need space and grow some over time .
    Primary OS partition workes best having altleast a minimum 20% free space all the time for housekeeping tasks lige changing layout ini , prefetch data
    defragmenting etc.
    Don't use anything less than 15GB to have peace of mind . ( I usually make it 30GB or more to avoid having lack of space later on , as that is a bitch )
     

  • Ruby-activesupport and Ruby-actionpack not found

    I'm trying installing ruby-rails via AUR then I got this error:
    Continue building ruby-railties ? [Y/n]
    ==> ---------------------------------------
    ==>
    ==> Building and installing package
    ==> Install or build missing dependencies for ruby-railties:
    ==> Making package: ruby-railties 4.2.1-1 (Sun Jun 21 16:06:38 WIB 2015)
    ==> Checking runtime dependencies...
    ==> Installing missing dependencies...
    error: target not found: ruby-activesupport
    error: target not found: ruby-actionpack
    ==> ERROR: 'pacman' failed to install missing dependencies.
    ==> ERROR: Makepkg was unable to build ruby-railties.
    ==> Restart building ruby-railties ? [y/N]
    ==> --------------------------------------
    ==>
    ==> Restart building ruby-rails ? [y/N]
    ==> -----------------------------------
    ==>
    any idea why this countinuously happen when I'm trying to install ruby-rails?

    jasonwryan wrote:Pacman can't install packages from unsupported repos, like the AUR...
    It looks like yaourt doesn't understand that...
    @rvu95: that looks like yaourt output. You should really post the full command(s) and output (and in code tags) or at the very least say that you're using yaourt. Then the default solution is to not use yaourt

  • Ruby, Cucumber and Watir Automation Scripting Basics

    Greetings my friends,Thank y'all all within the community and the moderators for being so cool and willing to help so quickly! Just wanted to lead in with that. So I could really use some help with this basic automation script that I am running. I am trying to select the search bar on Google.com and enter some text. I have gotten some help from friends but they were stuck as well. But it learning this I was hoping to get some help from the experts and just ask these questions that I have because Google ain't got shit!1) How to select the search field and enter text. # Mine looks something like this I've tried xpath, different values, id's classes.require 'ruby'require 'water-webdrivrer'browser Browser::browser.new :firefoxbrowser.goto 'http://google.com'$browser.text_field( :value = 'Search').set('google search')2)When I inspect...
    This topic first appeared in the Spiceworks Community

    Hi Sona Shetty,
    As far as I know, VB script and Excel VBA are different functions.
    Office VBA is used to extend Microsoft Office. I think your issue is more related to VB script debug, I recommend you post your question to Script forum:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • TS1538 I cannot sync my iPhone 3GS after upgrading to a new computer and installing iTunes

    i am trying to sync my iPhone 3GS to a new computer. I downloaded and installed iTunes and copied over the iTunes folder into My Music. Unfortunately iTunes on the new computer does not recognize my iPhone.
    - The old computer was running windows XP OS 32bit. My new computer is running Windows 7, 64 bit.
    - I have installed iTunes on the new computer. Windows OS recognizes the iPhone but iTunes does not. I have uninstalled and reinstall iTunes a few times now. On one reinstall, i recieved the following messages:  "an iPhone has been detected, but it could not be identified. Please disconnect and reconnect the iPhone, then try again".  Upon trying again, i recieved this message: "iTunes could not connect to the iPhone because an invalid response was received from the device".
    every other time, nothing happens other that Windows prompting that the iPhone is detected. Any suggestions appreciated.
    thanks, Singletrack200

    Made a new folder and that solved my problem

  • I have ios 5.1.1. When I sync to iTunes, my purchased apps no longer work. They blink but do not open. The only way I have been able to solve this, is as follows: I delete one of the apps and then re-download and install it. Then, all my apps work.

    My new iPod touch 64 Gig has a problem after syncing with iTunes. My purchased apps no longer work. I touch them and they seem to try to open but they do not.
    The only way I have found to fix this is as follows:
    I delete one of the purchased apps. Then I go to the App Store and re-download and install the same app. After that, all my apps work again.
    Please help.

    Download/install an app is a know possible solution.
    3. Install another app from the App Store
    If all user-installed apps are not launching, it could be an Apple ID authorization issue. Download and install an app that isn't already installed on your device to reset this information.
    Note: If you have installed apps using multiple Apple ID accounts, you may need to perform this step for each account.
    Above from Apple's :
    iOS: Troubleshooting applications purchased from the App Store

  • How do I go about saving ALL data on an imac running 10.5.8 and wipe the harddrive and install an new OSX

    I have an old imac running OSX 10.5.8 which for various reasons was never updated further
    Processor is 2.4GHz Intel Core 2 Duo
    memory 2 GB 667 MHz DDR2 SDRAM
    It has iphoto 08 7.1.5 (378)
    I also have a macbook Pro.  Running OSX 10.7.5
    Processor 2.4 GHz intelCore i5
    memory 4GB 1333 Mhz DDR3
    This one runs iphoto 11 v 9.2.3 (629.52)
    On Both these Machines I want to save all the files  and particularly the photos to an external hard drive.   I can do the files etc but having problems with iphoto.  I want a complete functional copy of both libraries in iphoto and I want to be able to access it and pick and choose which ones I want to use  but not STORE on a new Macbook.  I want to access the photos from several machines and just browse through them.
    Then ..  once I have a proper copy of everything  I want to reformat the old imac and install the newest OSX it will run given its Processor etc.    any advice on which OSX it can cope with?
    Also possibly upgrade the  macbook pro , so that they talk to each other properly, will access icloud and will also both be compatible with a new macbook pro running Yosimite... 
    But I want to be able to pick and choose which files I move to the new macbook. Both photos and general filing.
    This may be easy for an expert but I am not an expert, I am reasonably competent.. but definitely not an expert and I don't want to mess up and lose stuff.
    can anyone help?

    Click here and buy the DVD.
    (115929)

  • I have downloaded Indesign CC2014 and installed 3-4 times but it doesn't run. I have installed on  Windows 7 64 bit ,  HP laptop i7

    I have downloaded Indesign CC2014 and installed 3-4 times but it doesn't run /work. I have installed on  Windows 7 64 bit ,  HP laptop i7.

    sign out and then sign back in to your cc desktop app.
    then install cc 2014.

  • I have low C disk space. Want to install Ai Trial. Not enough Space. But have a huge space of G: drive. How I can direct install to download and install on other than C: drive?

    I am short with C: Drive space. Cannont Install Ai Trial. How I can download and Install on other than C: drive? I am trying to download it through Creative Cloud as a subscriber.

    Thanks for help. It worked. Now up and running Ai.
    Sent by:
    Khalid Hameed
    London - UK

  • How can i save my individual playlist on itunes on my external hard drive because i want to buy a laptop and install itunes and move all my music and playlist thats on my desktop to my laptop and almost all my music is from a bunch of cd's i own

    how can i save my individual playlist on itunes on my external hard drive because i want to buy a laptop and install itunes and move all my music and playlist thats on my desktop to my laptop and almost all of my music is from a bunch of cds i own

    Hello ryane84
    The easiest and most efficient way to copy your music is to follow the steps under the External drive section. Make sure that you have organized the iTunes library first before you copy it over. Then put the copied iTunes folder in the same Music folder on your computer.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Regards,
    -Norm G.

  • Window 8.1 Chinese character cannot display properly in a game even though I have downloaded and install all chinese language packs

    Hi,
    The operation system for my computer is Window 8.1. I am currently trying to install a chinese game. Even though I have downloaded and install all the chinese language pack, I have even set the regional language locale to chinese (similified / traditional),
    the chinese characters will not display properly in the game. Some people told me i need to set the locale to Chinese PRC, but I am not sure where to download this PRC language pack for window 8.1 (as I only have chinese simplified and chinese traditional).
    I would greatly appreciate if someone can give me a hand in solving this problem. Thank you for your help in advance. 

    Hi,
    The operation system for my computer is Window 8.1. I am currently trying to install a chinese game. Even though I have downloaded and install all the chinese language pack, I have even set the regional language locale to chinese (similified / traditional),
    the chinese characters will not display properly in the game. Some people told me i need to set the locale to Chinese PRC, but I am not sure where to download this PRC language pack for window 8.1 (as I only have chinese simplified and chinese traditional).
    I would greatly appreciate if someone can give me a hand in solving this problem. Thank you for your help in advance. 
    Hi,
    Please open Region, under administrative -> Language for non-Unicode programs: choose Chinese.
    Kate Li
    TechNet Community Support

  • I remove CTIOS 8 in window 8.1, and install CTIOS 9.0 but i am trying to login new one they given the error. Pls help

    I remove CTIOS 8 in window 8.1, and install CTIOS 9.0 but i am trying to login they given the error. Pls help

    This may help, it allows you to reset the application, it also may be worth clearing out the app store cache and temp files.
    http://www.ryanragle.com/index.php?/site/comments/where-does-the-mac-app-store-d ownload-temp-files-to
    To contact Apple use the feedback form, this is a user forum and I don't think they will respond here.
    regards

  • DVD player 5.4 keeps crashing using a variety of DVDs.  I have OS 10.6.8, and have repaired permissions, verified the disc, and installed the 10.6.8 update combo.  Several previous questions have adressed this problem.  What is the solution?

    DVD player 5.4 keeps crashing.  I have seen here that a number of other people have had this problem.  I recently started one DVD, and when I went back to it, it opened to a black screen twice.  It also crashes with other DVDs after I scroll ahead or back.  It gives an error message that it is skipping damaged areas, or sometines error 69889.  Playing this on a PC, however, there is no problem.  I repaired the permissions, verified the disc, and installed the OS 10.6.8 combo update, all to no avail.  Techs told me that it is usually the hardware, so I bought a LaCie external combo drive.  Still crashes.  Looked on Apple downloads and they don't list a 5.4 to replace this version.  Mac informer.com offers a free download for DVD 5.5- should I try this?  Why doesn't Apple fix this problem?

    Your suggestions did not help.  I repeated them again after the first try did not succeed.  Any other ideas?
    Would installing another copy of DVD 5.4 help?  How can I get another copy of DVD player 5.4, since Apple does not seem to offer it?  I do have the disc for Snow Leopard, but am not extremely tech savy (and maybe it is the same corrupted version). 

  • Where can I buy a larger hard drive for my late 2008, 15" macbook pro?  From reviewing questions and answers on the support community it would appear that having Apple remove the old and install the new hard drive is recommended.  But how/where?

    Where can I buy a larger hard drive for my late 2008, 15" macbook pro?  From reviewing questions and answers on the support community it would appear that having Apple remove the old and install the new hard drive is recommended.  But how/where?

    Welcome to Apple Support Communities
    You can install the new hard disk yourself if you want to. You just need a 2'5" SATA II hard drive, which is compatible with your MacBook Pro. You can buy one at OWC > http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/ You can filter hard drives by computer, so press a "Click to view all...", choose your computer in the sidebar and it will give you the compatible hard drives.
    There are different brands for the MacBook Pro. The most recommended are HGST and Seagate, which have good reputation. A 7200 rpm hard drive will give you extra performance

  • How to properly clean install: erase, partition hard drive, and install tiger then SL

    Hello,
         I am a noob at this, so if responders would be kind enough to be detailed / specific with any instructions it would be most helpful! I own a dinosaur apparently (even though I don't think so): the white (not unibody) Intel macbook2,1 (late 2006) 1.83 GHz with currently 1GB of RAM, but I have 2x2GB RAM sitting next to me ready for install. However, first I would like to do a clean uninstall of my computer (running OS X 10.6.8 SL). I also would like to properly partition my hard drive while I'm at it.
         About 6 months ago I had serious crashing issues, along with kernel panics, hangs, applications randomly appearing & disappearing, system settings and options doing the same, fans running high (probably due to the low RAM available), and basically overall screwiness. So, after trying pretty much every option I could find on this community...and many others... (e.g. clean cache, clean old logs, already did a clean uninstall and install of SL, and much much more) I have reached my wits end. I would say that to date I've wasted a good solid 2 months with this.
         The clean install worked for MAYBE a month or so, but then it started acting up again with the fans (even without high pages in/out, CPU or memory usage) and excessive heat, along with the apps freezing and quitting (mind you it would be only two things open such as 1 word document and then firefox-- with flash disabeled). SOOOOOO long story short, I have purchased new RAM and I would like to try this once again, but to ensure I don't screw it up this time I would like some directions as to how to do the uninstall, partition, then reinstall. (currently to date I ensured all updates are completed---even though they are no longer released for SL, and I just did a full backup).
         Also, I need to first install Tiger (my original OS) as when I went to do a hardware test the other day this was not an option (and upon further research it is due to me not using Tiger as a first install and then using my mac box set for SL). I didn't use my original OS first because....one issue encountered when I had tried to install Tiger was that my Disc 2 (the applications one) took around 1.5 hrs to complete, but when I reached the last step of glory where I expected it to say COMPLETE it instead said that there was some sort of issue with the disc..........of course).
         Any help would be greatly appreciated.

    1: If near a Apple Store or Authorized Repair, take it to then for a free evaluation, it might have other hardware problems now that it would be a waste of effort even continuing.
    2: The RAM needs to be
    Maximum Memory
    3.0 GB (Actual) 2.0 GB (Apple)
    Memory Slots
    2 - 200-pin PC2-5300 (667MHz) DDR2 SO-DIMM
    Basically what this means is you can put in a 2GB module and a 1GB module for 3GB total.
    I wouldn't proceed with installing RAM just yet, not until you get a stable OS X version on the machine, you might have a hard drive needing to be replaced as well which you can do while inserting new RAM.
    3: This User Tip can assist in installing 10.6 Snow Leopard, partition format etc.
    How to erase and install Snow Leopard 10.6
    Software Update fully immediately after setup.
    There is no need to install Tiger, he 10.6 disk contains the full 10.6 version, you can either install the iLife from Tiger disks or use Pacifist from Charlesoft to extract them and place on your new install, then Software update to get them current.
    4: If not successful then the drive also likely needs to be replaced, if so choose a 7,200 RPM SATA I  w/1.5Gb/s connection.
    Install/upgrade RAM or storage drive in Mac's
    Repeat #3
    If your getting beeping noises or "you need to restart" issues, it's likely one or more of the RAM modules is bad. Have it exchanged or swapped.
    I advise good quality RAM the first time, if you buy cheap stuff it's just going back.
    Don't go any further than 10.6.8 with that old machine, the performance will be terrible.

Maybe you are looking for

  • Recording to external hard drives - Firewire 800 problems

    Ok so i did post a similar thread on this in the "mac mini" part of the website so im very sorry for double posting but I thought since this problems pertains mostly to recording and specifically recording on garageband, that I would try posting here

  • Require help on Array of Nested tables and Oracle Object type

    Hi All, I have a scenario where I have some millions of records received from a flat file and the record is stored in Table as below: Tablename: FILE_RECORD Rows: FILE_REG_ID = 1 RECORD_NBR = 1      PROCESSED_IND = U RECORD= 00120130326006A FILE_REG_

  • Redundancy for startup class.

    Hi, I have a startup class in weblogic server. This class acts as a daemon inside weblogic server. What happens if this class goes down due to an exception after a while ? does the weblogic server brings it up again or can we configure it or is it ju

  • Imovie 13 song volume adjust

    seems like the volume adjust for songs added to iMovies only has one ajductment option; grabing the line and using mouse or track pad to move it up or down. it is very sensative. is there another way to adjust volume like older imovie versions? i box

  • Error in contract cash flow generation

    Hello Gurus, I get the error Message no. RECABC010, Reference Flow Type 030 does not exist I have maintained ref flow types 30, checked the ref flow types and the acct symbols. I deleted them and transported, then assigned them and transported again.