How do I fix the “You don't have write permissions into the /usr/bin directory” error when installing...












60















I'm trying to install Rails 3 on a brand new MacBook Pro running OS X 10.6.3, Ruby 1.8.7, and Rails 2.3.5 and I'm wondering if I've hosed myself. So far, I've run these commands:



$ gem update --system
$ gem install arel tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
$ gem install rails --pre


However, when I run the last command, I get this error:



ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/bin directory.


I think it wants me to run the command with sudo so that it can write over /usr/bin/rails. But if I do that, won't I be overwriting my Rails 2.3.5 executable? I don't want to do that. Instead, I'd like to keep both versions of Rails. How do I do that?










share|improve this question

























  • I was getting same error on first command, use this command sudo gem update --system -n /usr/local/bin

    – nitish005
    May 3 '18 at 7:00











  • Bravo @nitish005 !!!

    – Alessign
    May 24 '18 at 15:33











  • What is the -n?

    – Scott Romack
    Nov 20 '18 at 13:58
















60















I'm trying to install Rails 3 on a brand new MacBook Pro running OS X 10.6.3, Ruby 1.8.7, and Rails 2.3.5 and I'm wondering if I've hosed myself. So far, I've run these commands:



$ gem update --system
$ gem install arel tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
$ gem install rails --pre


However, when I run the last command, I get this error:



ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/bin directory.


I think it wants me to run the command with sudo so that it can write over /usr/bin/rails. But if I do that, won't I be overwriting my Rails 2.3.5 executable? I don't want to do that. Instead, I'd like to keep both versions of Rails. How do I do that?










share|improve this question

























  • I was getting same error on first command, use this command sudo gem update --system -n /usr/local/bin

    – nitish005
    May 3 '18 at 7:00











  • Bravo @nitish005 !!!

    – Alessign
    May 24 '18 at 15:33











  • What is the -n?

    – Scott Romack
    Nov 20 '18 at 13:58














60












60








60


25






I'm trying to install Rails 3 on a brand new MacBook Pro running OS X 10.6.3, Ruby 1.8.7, and Rails 2.3.5 and I'm wondering if I've hosed myself. So far, I've run these commands:



$ gem update --system
$ gem install arel tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
$ gem install rails --pre


However, when I run the last command, I get this error:



ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/bin directory.


I think it wants me to run the command with sudo so that it can write over /usr/bin/rails. But if I do that, won't I be overwriting my Rails 2.3.5 executable? I don't want to do that. Instead, I'd like to keep both versions of Rails. How do I do that?










share|improve this question
















I'm trying to install Rails 3 on a brand new MacBook Pro running OS X 10.6.3, Ruby 1.8.7, and Rails 2.3.5 and I'm wondering if I've hosed myself. So far, I've run these commands:



$ gem update --system
$ gem install arel tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
$ gem install rails --pre


However, when I run the last command, I get this error:



ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/bin directory.


I think it wants me to run the command with sudo so that it can write over /usr/bin/rails. But if I do that, won't I be overwriting my Rails 2.3.5 executable? I don't want to do that. Instead, I'd like to keep both versions of Rails. How do I do that?







ruby-on-rails-3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 18 '11 at 18:42









George Stocker

45.7k28155217




45.7k28155217










asked May 23 '10 at 23:13









JimJim

4,07995690




4,07995690













  • I was getting same error on first command, use this command sudo gem update --system -n /usr/local/bin

    – nitish005
    May 3 '18 at 7:00











  • Bravo @nitish005 !!!

    – Alessign
    May 24 '18 at 15:33











  • What is the -n?

    – Scott Romack
    Nov 20 '18 at 13:58



















  • I was getting same error on first command, use this command sudo gem update --system -n /usr/local/bin

    – nitish005
    May 3 '18 at 7:00











  • Bravo @nitish005 !!!

    – Alessign
    May 24 '18 at 15:33











  • What is the -n?

    – Scott Romack
    Nov 20 '18 at 13:58

















I was getting same error on first command, use this command sudo gem update --system -n /usr/local/bin

– nitish005
May 3 '18 at 7:00





I was getting same error on first command, use this command sudo gem update --system -n /usr/local/bin

– nitish005
May 3 '18 at 7:00













Bravo @nitish005 !!!

– Alessign
May 24 '18 at 15:33





Bravo @nitish005 !!!

– Alessign
May 24 '18 at 15:33













What is the -n?

– Scott Romack
Nov 20 '18 at 13:58





What is the -n?

– Scott Romack
Nov 20 '18 at 13:58












8 Answers
8






active

oldest

votes


















13














I'd suggest using RVM it allows you have multiple versions of Ruby/Rails installed with gem profiles and basically keep all your gems contained from one another. You may want to check out a similar post How can I install Ruby on Rails 3 on OSX






share|improve this answer


























  • only doing that solved for me a similar problem with the same error message

    – Richard Rich Steinmetz
    Oct 26 '18 at 18:59



















244














use -n parameter to install like for cocoapods:



sudo gem install cocoapods -n /usr/local/bin





share|improve this answer





















  • 4





    Why would we even need this?

    – nenchev
    Oct 31 '17 at 18:54






  • 7





    Fails on MacOS unless you specify -n /usr/local/bin. Thanks for the solution

    – Sacky San
    Dec 12 '17 at 23:22






  • 1





    Thank you so much, you saved my day! My cocoapods suddenly stopped working this morning.

    – Lucas P.
    Dec 19 '17 at 19:34






  • 1





    What does -n means?

    – allenlinli
    Apr 3 '18 at 3:20











  • according to guides.rubygems.org/command-reference/#gem-install, -n specifies the directory where binaries are located. I also needed -n /usr/local/bin on my Mac. I ran which pod to determine its existing location before using the -n option which was indeed /usr/local/bin

    – mwu
    Apr 3 '18 at 18:07





















16














You can use sudo gem install -n /usr/local/bin cocoapods



This works for me.






share|improve this answer

































    6














    To fix your specific error you need to run that command as sudo, ie:



    sudo gem install rails --pre





    share|improve this answer
























    • NO. Use rvm or rbenv ...do not just sudo.

      – doublejosh
      Oct 9 '17 at 23:50





















    6














    sudo gem install cocoapods --pre -n /usr/local/bin


    This works for me.






    share|improve this answer

































      5














      Using the -n /usr/local/bin flag does work, BUT I had to come back to this page every time I wanted to update a package again. So I figured out a permanent fix for this.



      For those interested in fixing this permanently:



      Create a ~/.gemrc file



      `vim .gemrc`


      Add the following to it:



      `:gemdir:
      - ~/.gem/ruby
      install: -n /usr/local/bin`


      Now you can run your command normally without the -n flag.



      Enjoy!






      share|improve this answer


























      • vim .gemrc how to write this cmd

        – Chandni
        Jan 7 at 8:07











      • I am not sure this will work in Window$, but I guess you could use Notepad.

        – Francois Nadeau
        Jan 7 at 14:06



















      3














      This Error hit me after installing RVM correctly.
      Solution: re-boot Terminal.



      Reference RailsCast's RVM Install tutorial.






      share|improve this answer



















      • 1





        7 years later, your solution worked, pal!

        – Antonio Pavicevac-Ortiz
        May 23 '17 at 22:53











      • Not exactly 7 years later, but this works also if you're working on windows bash subsystem. Just exit the bash and launch it again. Thank you.

        – Pedro Madrid
        Feb 5 '18 at 15:39



















      0














      For me, something different worked, that I found in on this answer from a similar question. Probably won't help OP, but maybe someone like me that had a similar problem.



      You should indeed use rvm, but as no one explained to you how to do this without rvm, here you go:



      sudo gem install tzinfo builder memcache-client rack rack-test rack-mount 
      abstract erubis activesupport mime-types mail text-hyphen text-format
      thor i18n rake bundler arel railties rails --prerelease --force





      share|improve this answer































        8 Answers
        8






        active

        oldest

        votes








        8 Answers
        8






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        13














        I'd suggest using RVM it allows you have multiple versions of Ruby/Rails installed with gem profiles and basically keep all your gems contained from one another. You may want to check out a similar post How can I install Ruby on Rails 3 on OSX






        share|improve this answer


























        • only doing that solved for me a similar problem with the same error message

          – Richard Rich Steinmetz
          Oct 26 '18 at 18:59
















        13














        I'd suggest using RVM it allows you have multiple versions of Ruby/Rails installed with gem profiles and basically keep all your gems contained from one another. You may want to check out a similar post How can I install Ruby on Rails 3 on OSX






        share|improve this answer


























        • only doing that solved for me a similar problem with the same error message

          – Richard Rich Steinmetz
          Oct 26 '18 at 18:59














        13












        13








        13







        I'd suggest using RVM it allows you have multiple versions of Ruby/Rails installed with gem profiles and basically keep all your gems contained from one another. You may want to check out a similar post How can I install Ruby on Rails 3 on OSX






        share|improve this answer















        I'd suggest using RVM it allows you have multiple versions of Ruby/Rails installed with gem profiles and basically keep all your gems contained from one another. You may want to check out a similar post How can I install Ruby on Rails 3 on OSX







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 23 '17 at 12:34









        Community

        11




        11










        answered May 27 '10 at 9:52









        TarellelTarellel

        8291315




        8291315













        • only doing that solved for me a similar problem with the same error message

          – Richard Rich Steinmetz
          Oct 26 '18 at 18:59



















        • only doing that solved for me a similar problem with the same error message

          – Richard Rich Steinmetz
          Oct 26 '18 at 18:59

















        only doing that solved for me a similar problem with the same error message

        – Richard Rich Steinmetz
        Oct 26 '18 at 18:59





        only doing that solved for me a similar problem with the same error message

        – Richard Rich Steinmetz
        Oct 26 '18 at 18:59













        244














        use -n parameter to install like for cocoapods:



        sudo gem install cocoapods -n /usr/local/bin





        share|improve this answer





















        • 4





          Why would we even need this?

          – nenchev
          Oct 31 '17 at 18:54






        • 7





          Fails on MacOS unless you specify -n /usr/local/bin. Thanks for the solution

          – Sacky San
          Dec 12 '17 at 23:22






        • 1





          Thank you so much, you saved my day! My cocoapods suddenly stopped working this morning.

          – Lucas P.
          Dec 19 '17 at 19:34






        • 1





          What does -n means?

          – allenlinli
          Apr 3 '18 at 3:20











        • according to guides.rubygems.org/command-reference/#gem-install, -n specifies the directory where binaries are located. I also needed -n /usr/local/bin on my Mac. I ran which pod to determine its existing location before using the -n option which was indeed /usr/local/bin

          – mwu
          Apr 3 '18 at 18:07


















        244














        use -n parameter to install like for cocoapods:



        sudo gem install cocoapods -n /usr/local/bin





        share|improve this answer





















        • 4





          Why would we even need this?

          – nenchev
          Oct 31 '17 at 18:54






        • 7





          Fails on MacOS unless you specify -n /usr/local/bin. Thanks for the solution

          – Sacky San
          Dec 12 '17 at 23:22






        • 1





          Thank you so much, you saved my day! My cocoapods suddenly stopped working this morning.

          – Lucas P.
          Dec 19 '17 at 19:34






        • 1





          What does -n means?

          – allenlinli
          Apr 3 '18 at 3:20











        • according to guides.rubygems.org/command-reference/#gem-install, -n specifies the directory where binaries are located. I also needed -n /usr/local/bin on my Mac. I ran which pod to determine its existing location before using the -n option which was indeed /usr/local/bin

          – mwu
          Apr 3 '18 at 18:07
















        244












        244








        244







        use -n parameter to install like for cocoapods:



        sudo gem install cocoapods -n /usr/local/bin





        share|improve this answer















        use -n parameter to install like for cocoapods:



        sudo gem install cocoapods -n /usr/local/bin






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 25 '16 at 10:00









        Tunaki

        89.4k22193269




        89.4k22193269










        answered Jan 25 '16 at 9:59









        Pradeep KachhawahaPradeep Kachhawaha

        2,4932913




        2,4932913








        • 4





          Why would we even need this?

          – nenchev
          Oct 31 '17 at 18:54






        • 7





          Fails on MacOS unless you specify -n /usr/local/bin. Thanks for the solution

          – Sacky San
          Dec 12 '17 at 23:22






        • 1





          Thank you so much, you saved my day! My cocoapods suddenly stopped working this morning.

          – Lucas P.
          Dec 19 '17 at 19:34






        • 1





          What does -n means?

          – allenlinli
          Apr 3 '18 at 3:20











        • according to guides.rubygems.org/command-reference/#gem-install, -n specifies the directory where binaries are located. I also needed -n /usr/local/bin on my Mac. I ran which pod to determine its existing location before using the -n option which was indeed /usr/local/bin

          – mwu
          Apr 3 '18 at 18:07
















        • 4





          Why would we even need this?

          – nenchev
          Oct 31 '17 at 18:54






        • 7





          Fails on MacOS unless you specify -n /usr/local/bin. Thanks for the solution

          – Sacky San
          Dec 12 '17 at 23:22






        • 1





          Thank you so much, you saved my day! My cocoapods suddenly stopped working this morning.

          – Lucas P.
          Dec 19 '17 at 19:34






        • 1





          What does -n means?

          – allenlinli
          Apr 3 '18 at 3:20











        • according to guides.rubygems.org/command-reference/#gem-install, -n specifies the directory where binaries are located. I also needed -n /usr/local/bin on my Mac. I ran which pod to determine its existing location before using the -n option which was indeed /usr/local/bin

          – mwu
          Apr 3 '18 at 18:07










        4




        4





        Why would we even need this?

        – nenchev
        Oct 31 '17 at 18:54





        Why would we even need this?

        – nenchev
        Oct 31 '17 at 18:54




        7




        7





        Fails on MacOS unless you specify -n /usr/local/bin. Thanks for the solution

        – Sacky San
        Dec 12 '17 at 23:22





        Fails on MacOS unless you specify -n /usr/local/bin. Thanks for the solution

        – Sacky San
        Dec 12 '17 at 23:22




        1




        1





        Thank you so much, you saved my day! My cocoapods suddenly stopped working this morning.

        – Lucas P.
        Dec 19 '17 at 19:34





        Thank you so much, you saved my day! My cocoapods suddenly stopped working this morning.

        – Lucas P.
        Dec 19 '17 at 19:34




        1




        1





        What does -n means?

        – allenlinli
        Apr 3 '18 at 3:20





        What does -n means?

        – allenlinli
        Apr 3 '18 at 3:20













        according to guides.rubygems.org/command-reference/#gem-install, -n specifies the directory where binaries are located. I also needed -n /usr/local/bin on my Mac. I ran which pod to determine its existing location before using the -n option which was indeed /usr/local/bin

        – mwu
        Apr 3 '18 at 18:07







        according to guides.rubygems.org/command-reference/#gem-install, -n specifies the directory where binaries are located. I also needed -n /usr/local/bin on my Mac. I ran which pod to determine its existing location before using the -n option which was indeed /usr/local/bin

        – mwu
        Apr 3 '18 at 18:07













        16














        You can use sudo gem install -n /usr/local/bin cocoapods



        This works for me.






        share|improve this answer






























          16














          You can use sudo gem install -n /usr/local/bin cocoapods



          This works for me.






          share|improve this answer




























            16












            16








            16







            You can use sudo gem install -n /usr/local/bin cocoapods



            This works for me.






            share|improve this answer















            You can use sudo gem install -n /usr/local/bin cocoapods



            This works for me.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 10 '18 at 0:26









            iWheelBuy

            2,48122250




            2,48122250










            answered Dec 9 '17 at 20:00









            DaminiDamini

            16114




            16114























                6














                To fix your specific error you need to run that command as sudo, ie:



                sudo gem install rails --pre





                share|improve this answer
























                • NO. Use rvm or rbenv ...do not just sudo.

                  – doublejosh
                  Oct 9 '17 at 23:50


















                6














                To fix your specific error you need to run that command as sudo, ie:



                sudo gem install rails --pre





                share|improve this answer
























                • NO. Use rvm or rbenv ...do not just sudo.

                  – doublejosh
                  Oct 9 '17 at 23:50
















                6












                6








                6







                To fix your specific error you need to run that command as sudo, ie:



                sudo gem install rails --pre





                share|improve this answer













                To fix your specific error you need to run that command as sudo, ie:



                sudo gem install rails --pre






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 27 '10 at 10:38









                Andrew NesbittAndrew Nesbitt

                5,21212430




                5,21212430













                • NO. Use rvm or rbenv ...do not just sudo.

                  – doublejosh
                  Oct 9 '17 at 23:50





















                • NO. Use rvm or rbenv ...do not just sudo.

                  – doublejosh
                  Oct 9 '17 at 23:50



















                NO. Use rvm or rbenv ...do not just sudo.

                – doublejosh
                Oct 9 '17 at 23:50







                NO. Use rvm or rbenv ...do not just sudo.

                – doublejosh
                Oct 9 '17 at 23:50













                6














                sudo gem install cocoapods --pre -n /usr/local/bin


                This works for me.






                share|improve this answer






























                  6














                  sudo gem install cocoapods --pre -n /usr/local/bin


                  This works for me.






                  share|improve this answer




























                    6












                    6








                    6







                    sudo gem install cocoapods --pre -n /usr/local/bin


                    This works for me.






                    share|improve this answer















                    sudo gem install cocoapods --pre -n /usr/local/bin


                    This works for me.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jun 19 '18 at 7:41









                    Erik von Asmuth

                    19.1k62138




                    19.1k62138










                    answered Jun 19 '18 at 2:41









                    tong Xutong Xu

                    7513




                    7513























                        5














                        Using the -n /usr/local/bin flag does work, BUT I had to come back to this page every time I wanted to update a package again. So I figured out a permanent fix for this.



                        For those interested in fixing this permanently:



                        Create a ~/.gemrc file



                        `vim .gemrc`


                        Add the following to it:



                        `:gemdir:
                        - ~/.gem/ruby
                        install: -n /usr/local/bin`


                        Now you can run your command normally without the -n flag.



                        Enjoy!






                        share|improve this answer


























                        • vim .gemrc how to write this cmd

                          – Chandni
                          Jan 7 at 8:07











                        • I am not sure this will work in Window$, but I guess you could use Notepad.

                          – Francois Nadeau
                          Jan 7 at 14:06
















                        5














                        Using the -n /usr/local/bin flag does work, BUT I had to come back to this page every time I wanted to update a package again. So I figured out a permanent fix for this.



                        For those interested in fixing this permanently:



                        Create a ~/.gemrc file



                        `vim .gemrc`


                        Add the following to it:



                        `:gemdir:
                        - ~/.gem/ruby
                        install: -n /usr/local/bin`


                        Now you can run your command normally without the -n flag.



                        Enjoy!






                        share|improve this answer


























                        • vim .gemrc how to write this cmd

                          – Chandni
                          Jan 7 at 8:07











                        • I am not sure this will work in Window$, but I guess you could use Notepad.

                          – Francois Nadeau
                          Jan 7 at 14:06














                        5












                        5








                        5







                        Using the -n /usr/local/bin flag does work, BUT I had to come back to this page every time I wanted to update a package again. So I figured out a permanent fix for this.



                        For those interested in fixing this permanently:



                        Create a ~/.gemrc file



                        `vim .gemrc`


                        Add the following to it:



                        `:gemdir:
                        - ~/.gem/ruby
                        install: -n /usr/local/bin`


                        Now you can run your command normally without the -n flag.



                        Enjoy!






                        share|improve this answer















                        Using the -n /usr/local/bin flag does work, BUT I had to come back to this page every time I wanted to update a package again. So I figured out a permanent fix for this.



                        For those interested in fixing this permanently:



                        Create a ~/.gemrc file



                        `vim .gemrc`


                        Add the following to it:



                        `:gemdir:
                        - ~/.gem/ruby
                        install: -n /usr/local/bin`


                        Now you can run your command normally without the -n flag.



                        Enjoy!







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Nov 21 '18 at 14:09

























                        answered Sep 6 '18 at 2:49









                        Francois NadeauFrancois Nadeau

                        8391217




                        8391217













                        • vim .gemrc how to write this cmd

                          – Chandni
                          Jan 7 at 8:07











                        • I am not sure this will work in Window$, but I guess you could use Notepad.

                          – Francois Nadeau
                          Jan 7 at 14:06



















                        • vim .gemrc how to write this cmd

                          – Chandni
                          Jan 7 at 8:07











                        • I am not sure this will work in Window$, but I guess you could use Notepad.

                          – Francois Nadeau
                          Jan 7 at 14:06

















                        vim .gemrc how to write this cmd

                        – Chandni
                        Jan 7 at 8:07





                        vim .gemrc how to write this cmd

                        – Chandni
                        Jan 7 at 8:07













                        I am not sure this will work in Window$, but I guess you could use Notepad.

                        – Francois Nadeau
                        Jan 7 at 14:06





                        I am not sure this will work in Window$, but I guess you could use Notepad.

                        – Francois Nadeau
                        Jan 7 at 14:06











                        3














                        This Error hit me after installing RVM correctly.
                        Solution: re-boot Terminal.



                        Reference RailsCast's RVM Install tutorial.






                        share|improve this answer



















                        • 1





                          7 years later, your solution worked, pal!

                          – Antonio Pavicevac-Ortiz
                          May 23 '17 at 22:53











                        • Not exactly 7 years later, but this works also if you're working on windows bash subsystem. Just exit the bash and launch it again. Thank you.

                          – Pedro Madrid
                          Feb 5 '18 at 15:39
















                        3














                        This Error hit me after installing RVM correctly.
                        Solution: re-boot Terminal.



                        Reference RailsCast's RVM Install tutorial.






                        share|improve this answer



















                        • 1





                          7 years later, your solution worked, pal!

                          – Antonio Pavicevac-Ortiz
                          May 23 '17 at 22:53











                        • Not exactly 7 years later, but this works also if you're working on windows bash subsystem. Just exit the bash and launch it again. Thank you.

                          – Pedro Madrid
                          Feb 5 '18 at 15:39














                        3












                        3








                        3







                        This Error hit me after installing RVM correctly.
                        Solution: re-boot Terminal.



                        Reference RailsCast's RVM Install tutorial.






                        share|improve this answer













                        This Error hit me after installing RVM correctly.
                        Solution: re-boot Terminal.



                        Reference RailsCast's RVM Install tutorial.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Dec 22 '15 at 19:41









                        AkornAkorn

                        726




                        726








                        • 1





                          7 years later, your solution worked, pal!

                          – Antonio Pavicevac-Ortiz
                          May 23 '17 at 22:53











                        • Not exactly 7 years later, but this works also if you're working on windows bash subsystem. Just exit the bash and launch it again. Thank you.

                          – Pedro Madrid
                          Feb 5 '18 at 15:39














                        • 1





                          7 years later, your solution worked, pal!

                          – Antonio Pavicevac-Ortiz
                          May 23 '17 at 22:53











                        • Not exactly 7 years later, but this works also if you're working on windows bash subsystem. Just exit the bash and launch it again. Thank you.

                          – Pedro Madrid
                          Feb 5 '18 at 15:39








                        1




                        1





                        7 years later, your solution worked, pal!

                        – Antonio Pavicevac-Ortiz
                        May 23 '17 at 22:53





                        7 years later, your solution worked, pal!

                        – Antonio Pavicevac-Ortiz
                        May 23 '17 at 22:53













                        Not exactly 7 years later, but this works also if you're working on windows bash subsystem. Just exit the bash and launch it again. Thank you.

                        – Pedro Madrid
                        Feb 5 '18 at 15:39





                        Not exactly 7 years later, but this works also if you're working on windows bash subsystem. Just exit the bash and launch it again. Thank you.

                        – Pedro Madrid
                        Feb 5 '18 at 15:39











                        0














                        For me, something different worked, that I found in on this answer from a similar question. Probably won't help OP, but maybe someone like me that had a similar problem.



                        You should indeed use rvm, but as no one explained to you how to do this without rvm, here you go:



                        sudo gem install tzinfo builder memcache-client rack rack-test rack-mount 
                        abstract erubis activesupport mime-types mail text-hyphen text-format
                        thor i18n rake bundler arel railties rails --prerelease --force





                        share|improve this answer




























                          0














                          For me, something different worked, that I found in on this answer from a similar question. Probably won't help OP, but maybe someone like me that had a similar problem.



                          You should indeed use rvm, but as no one explained to you how to do this without rvm, here you go:



                          sudo gem install tzinfo builder memcache-client rack rack-test rack-mount 
                          abstract erubis activesupport mime-types mail text-hyphen text-format
                          thor i18n rake bundler arel railties rails --prerelease --force





                          share|improve this answer


























                            0












                            0








                            0







                            For me, something different worked, that I found in on this answer from a similar question. Probably won't help OP, but maybe someone like me that had a similar problem.



                            You should indeed use rvm, but as no one explained to you how to do this without rvm, here you go:



                            sudo gem install tzinfo builder memcache-client rack rack-test rack-mount 
                            abstract erubis activesupport mime-types mail text-hyphen text-format
                            thor i18n rake bundler arel railties rails --prerelease --force





                            share|improve this answer













                            For me, something different worked, that I found in on this answer from a similar question. Probably won't help OP, but maybe someone like me that had a similar problem.



                            You should indeed use rvm, but as no one explained to you how to do this without rvm, here you go:



                            sudo gem install tzinfo builder memcache-client rack rack-test rack-mount 
                            abstract erubis activesupport mime-types mail text-hyphen text-format
                            thor i18n rake bundler arel railties rails --prerelease --force






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jun 11 '18 at 18:30









                            Seba D'AgostinoSeba D'Agostino

                            86121526




                            86121526















                                Popular posts from this blog

                                List item for chat from Array inside array React Native

                                App crashed after uploaded to heroku server

                                Xamarin.iOS Cant Deploy on Iphone