Skip to content

Commit 6cee324

Browse files
authored
Merge pull request #23 from cesc1989/master
Fixes for ImageMagick installation and RVM in MacOS
2 parents b81c2b0 + a239dcd commit 6cee324

File tree

3 files changed

+47
-4
lines changed

3 files changed

+47
-4
lines changed

dependencies/install_rvm.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Do not run as sudo or there could be trouble setting up RVM
33

4-
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
4+
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
55
\curl -sSL https://get.rvm.io | bash -s stable
66

77
echo "Sourcing RVM and reloading shell"
@@ -23,4 +23,4 @@ gem install bundler --no-rdoc --no-ri
2323
# shell which gets invoked inside the script and not the
2424
# terminal window
2525
echo "...again"
26-
. /home/$(whoami)/.rvm/scripts/rvm
26+
. /home/$(whoami)/.rvm/scripts/rvm

macos/install_imagemagick.sh

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
#!/bin/bash
22

3+
# Resources:
4+
# - http://stackoverflow.com/questions/25460047/cant-install-imagemagick-with-brew-on-mac-os-x-mavericks
5+
# - https://glucode.com/blog/installing-rmagick-gem-with-imagemagick-and-homebrew-on-macos-10-14-mojave
6+
37
brew update
4-
brew install imagemagick --disable-openmp --build-from-source
8+
brew install imagemagick@6
59

6-
# http://stackoverflow.com/questions/25460047/cant-install-imagemagick-with-brew-on-mac-os-x-mavericks
10+
# Verify installation with command
11+
#
12+
# $ convert -version
13+
#
14+
# If the command is not found by the terminal do:
15+
#
16+
# $ brew link imagemagick@6 --force
17+
#
18+
# Or find the path of the installation and add it to `PATH`
19+
#
20+
# /usr/local/opt/imagemagick@6/bin
21+
#
22+
# See comments beginning with https://github.com/rmagick/rmagick/issues/256#issuecomment-273113469

macos/install_rvm.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
brew install gpg
4+
5+
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
6+
\curl -sSL https://get.rvm.io | bash -s stable
7+
8+
echo "Sourcing RVM and reloading shell"
9+
. /Users/$(whoami)/.rvm/scripts/rvm
10+
11+
echo "RVM requirements"
12+
rvm requirements
13+
14+
echo "Installing ruby-2.5.3"
15+
rvm install ruby-2.5.3
16+
17+
echo "Setting ruby-2.5.3 as default"
18+
rvm --default use ruby-2.5.3
19+
20+
echo "Install bundler"
21+
gem install bundler --no-document
22+
23+
# This wouldn't work because it is executed in a different
24+
# shell which gets invoked inside the script and not the
25+
# terminal window
26+
echo "...again"
27+
. /Users/$(whoami)/.rvm/scripts/rvm

0 commit comments

Comments
 (0)