Last active
December 31, 2015 07:49
-
-
Save kazu69/7956977 to your computer and use it in GitHub Desktop.
bundle install error occur !
An error occurred while installing pg (0.16.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.16.0'` succeeds before bundling. resolve
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew -v | |
Homebrew 0.9.5 | |
brew install postgresql # install postgresql | |
==> Installing postgresql dependency: ossp-uuid | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/ossp-uuid-1.6.2.mavericks.bottle.tar.gz | |
######################################################################## 100.0% | |
==> Pouring ossp-uuid-1.6.2.mavericks.bottle.tar.gz | |
==> Caveats | |
This formula is keg-only, so it was not symlinked into /usr/local. | |
OS X provides a uuid.h which conflicts with ossp-uuid's header. | |
Generally there are no consequences of this for you. If you build your | |
own software and it requires this formula, you'll need to add to your | |
build variables: | |
LDFLAGS: -L/usr/local/opt/ossp-uuid/lib | |
CPPFLAGS: -I/usr/local/opt/ossp-uuid/include | |
==> Summary | |
🍺 /usr/local/Cellar/ossp-uuid/1.6.2: 15 files, 228K | |
==> Installing postgresql | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/postgresql-9.3.1.mavericks.bottle.tar.gz | |
######################################################################## 100.0% | |
==> Pouring postgresql-9.3.1.mavericks.bottle.tar.gz | |
==> /usr/local/Cellar/postgresql/9.3.1/bin/initdb /usr/local/var/postgres -E utf8 | |
==> Caveats | |
If builds of PostgreSQL 9 are failing and you have version 8.x installed, | |
you may need to remove the previous version first. See: | |
https://github.com/mxcl/homebrew/issues/issue/2510 | |
To migrate existing data from a previous major version (pre-9.3) of PostgreSQL, see: | |
http://www.postgresql.org/docs/9.3/static/upgrading.html | |
When installing the postgres gem, including ARCHFLAGS is recommended: | |
ARCHFLAGS="-arch x86_64" gem install pg | |
To install gems without sudo, see the Homebrew wiki. | |
To have launchd start postgresql at login: | |
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents | |
Then to load postgresql now: | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
Or, if you don't want/need launchctl, you can just run: | |
postgres -D /usr/local/var/postgres | |
==> Summary | |
🍺 /usr/local/Cellar/postgresql/9.3.1: 2919 files, 39M | |
gem install pg # install pg gem | |
Fetching: pg-0.17.0.gem (100%) | |
Building native extensions. This could take a while... | |
Successfully installed pg-0.17.0 | |
invalid options: -f fivefish | |
(invalid options are ignored) | |
Parsing documentation for pg-0.17.0 | |
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/pg_ext.bundle, skipping | |
Installing ri documentation for pg-0.17.0 | |
1 gem installed | |
bundle install # install gems | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment