This will take about 30 minutes. We will be setting up a Ruby on Rails development environment on macOS 10.13 High Sierra. Older versions of OS X are mostly compatible so follow along as far as you can and then Google search for any problems you run into. Join Kevin Skoglund for an in-depth discussion in this video, Installing Ruby on a Mac, part of Ruby Essential Training. Chrome 21.0.1180.90 for mac. You should get back either Ruby 1.8.2 or something later than that. I used Archboot. () It also features grub2-efi and grub2-bios, which you'll need. Now if only I could get my GRUB2 installation working. (One tip: If you are going to try to use grub2-bios -- which is the first thing I did when grub2-efi didn't work -- it seems you have to have only one partition for Arch. why you need antivirus for mac Also, keep the partition type set to 0700 ('Microsoft basic data') or af00 (HFS/HFS+) until you have gone back into rEFIt, and got it to update the MBR with your partition scheme. Right now neither grub2-efi or grub2-bios are working for me, but I sure it's something I've done wrong.). That would be great, sam87. Last Day On Earth Hack 1.8.2 For IphoneI discovered that my installation issues were caused by (not reading the MacBook wiki page carefully enough and) not adding 'usbinput' to mkinitcpio.conf to load the modules required to use the keyboard and trackpad on boot. So grub2-efi works now. Since then I've installed 'pommed' for the Mac's keyboard features, 'xf86-input-mtrack-git', 'xbindkeys' and 'xautomation' for binding four-finger swipes with KWin and Plasma keyboard shortcuts, and recompiled the kernel to include modules for kernel 3.2's new wireless network drivers. All hardware is now supported, and my desktop is working beautifully. I get all the benefits of Apple's great hardware without the hassle of having to relearn how to use cursor keys. (Cmd-Left == Home? Or was it Cmd-Fn-Left? AAAARGH!) (Not to mention that annoying Flashback trojan issue. Configuring Git We'll be using Git for our version control system so we're going to set it up to match our account. If you don't already have a Github account, make sure to. It will come in handy for the future. Replace the example name and email address in the following steps with the ones you used for your Github account. Git config --global color.ui true git config --global user.name 'YOUR NAME' git config --global user.email ' ssh-keygen -t rsa -C ' The next step is to take the newly generated SSH key and add it to your Github account. You want to copy and paste the output of the following command. Cat ~/.ssh/id_rsa.pub Once you've done this, you can check and see if it worked: ssh -T You should get a message like this: Hi excid3! You've successfully authenticated, but GitHub does not provide shell access. Setting Up A Database We're going to install sqlite3 from homebrew because we can't use the built-in version with macOS Sierra without running into some troubles. Brew install sqlite3 Rails ships with sqlite3 as the default database. Chances are you won't want to use it because it's stored as a simple file on disk. You'll probably want something more robust like MySQL or PostgreSQL. There is a lot of documentation on both, so you can just pick one that seems like you'll be more comfortable with. If you're coming from PHP, you may already be familiar with MySQL. If you're new to databases, I'd suggest skipping to setting up PostgreSQL. MySQL You can install server and client from Homebrew: brew install mysql Once this command is finished, it gives you a couple commands to run. Exciting new adobe photoshop cs3 for mac. Follow the instructions and run them: # To have launchd start mysql at login: brew services start mysql By default the mysql user is root with no password. When you're finished, you can. PostgreSQL You can install server and client from Homebrew: brew install postgresql Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them: # To have launchd start postgresql at login: brew services start postgresql By default the postgresql user is your current OS X username with no password. For example, my OS X user is named chris so I can login to postgresql with that username. Final Steps And now for the moment of truth. Let's create your first Rails application: rails new myapp #### If you want to use MySQL rails new myapp -d mysql #### If you want to use Postgres # Note you will need to change config/database.yml's username to be # the same as your OSX user account. (for example, mine is 'chris') rails new myapp -d postgresql # Move into the application directory cd myapp # If you setup MySQL or Postgres with a username/password, modify the # config/database.yml file to contain the username/password that you specified # Create the database rake db:create rails server You can now visit to view your new website! Now that you've got your machine setup, it's time to start building some Rails applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |