![]() Try postgres or sqlite3 for some database variety ( port install postgresql82-server & port install rb-postgres or port install rb-sqlite3, respectively). The ones below, while not required, are often useful when developing rails apps. The above ports and gems are the minimum you’ll need to get rails running successfully. Installing Rails Prerequisites with MacPorts $ sudo port install mysql5 +serverįirst, add /opt/local/lib/mysql5/bin/ to your PATH as you did in the instructions to install MacPorts. The /opt paths must be before your standard path so when you type ruby, you use the ruby interpreter from MacPorts rather than the old one that came with OS X. Especially the bit about setting your PATH appropriately. Installing MacPortsįirst thing’s first: Install MacPorts! Be sure to follow the directions closely. You need the latest version of Xcode tools to be able to compile all the packages necessary for Ruby and Rails. MacPorts is an easy to use system for compiling, installing, and managing open source software. sudo port install ruby rb-termios rb-rmagick. This post is an effort to document and standardize all the details to get a Rails stack going with MacPorts. Installation von Ruby on Rails mit MacPorts top Zur vorigen berschrift. Relevant software versions RVM 1.29.12 Ruby 3.0. ![]() I’ve done this maybe 3 or 4 times in the past year with minor variations each time which inevitably come back to bite me later. PKGCONFIGPATH/opt/local/lib/openssl-1.1/pkgconfig rvm reinstall 3.0.3 -with-openssl-lib/opt/local/lib/openssl-1.1 -with-openssl-include/opt/local/include/openssl-1.1 And with that in place you should have Ruby 3.0.3 installed with OpenSSL 1.1 support using RVM and Macports. I have a clean install of OS X on which I need to install Rails.
0 Comments
Leave a Reply. |