![]()
(Frankly, I can’t remember if I installed this way twice-once in system and once in my rvm-or if I only installed once in system. If it doesn’t work, the follow the technique above while inside your rvm default. If anything, install the above way on your system ruby, then rvm into your default ruby and try to gem install mysql. Once I installed ruby, rubygems, rails, and mysql using the technique above, I was able to install mysql gems in my rvm rubies. I would also like to absolutely confirm that the install method above is working in a efficient way with the RVM (Ruby Version Manager), which modulates ruby installs and gem dependencies within those versions. I’ve briefly looked at some documentation at Mongo’s Ubuntu & Debian packages page. Soon I’ll try to tackle installing MongoDB on Ubuntu. #Brew install mongodb fail bad substitutio how toIf you need more instruction on how to get a rails2 or rails3 app started you can easily google it and find plenty of instruction (for example here Rails 3, here Rails 2, or here Ruby) MongoDB and RVM Once you have your app directory created, for rails3 users cd dbtest_app and then-making sure you have the bunder gem installed gem install bundler do this bundle install Run a test appįor rails 3 users who want default sqlite3 you can do rails new dbtest_app For rails 2 users rails dbtest_app Otherwise pass a database definition like so: for rails3+mysql do rails new dbtest_app -d mysql Or for rails2+mysql do rails dbtest_app -d mysql You can also delete the uncompressed rubygems-1.3.7 directory-HOWEVER, just to be safe I would rename that directory and keep in your home directory mv rubygems-1.3.7 rgems1.3.7 for a at least a few days to make sure everything works fine… then delete it. Now you should be able to delete the rubygems-1.3.7.tgz. Sudo apt-get install libsqlite3-dev build-essential You can define any version you want (for example 2.3.2, 2.3.5, 2.3.8, 3.0), and you can also do it this wayīut I prefer the version flag coming first so that I never forget to specify what I need.įor good measure you should install sqlite-3 stuff Wget production.cf./rubygems/rubygems-1.3.7.tgz #Brew install mongodb fail bad substitutio full#ubuntu full install includes lots of dependencies and will save time Mysql-server libmysqlclient-dev libmysql-ruby You’ll want to sudo apt-get install the following packages Latest version of Ubuntu linux (10.10) needs some special attention for mysql gem. ![]() I WROTE THIS FOR ANYONE, BUT ESPECIALLY ADDING CONTENT FOR THOSE UNFAMILIAR WITH RAILS #Brew install mongodb fail bad substitutio codeHere are some (helpful?) notes.Īll code examples are in the command line. I’m no expert because my main dev environment is on a MacBook Pro, but I’ve trogged through enough difficult setup issues to want to switch Mac forever. Package managers Aptitude (apt-get) and Rubygems (gem install) need to play nice if your coding on Ubuntu, and more important, you need to know how to make them play nice.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |