hieu le

Joined

40 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Setup MacOS 10.9 Mavericks Discussion

I have been using homebrew the whole time. I've gone through some of those stack overflow posts yesterday and again just now. But nothing yet. ARGH. thank you for your help though.

Posted in Setup MacOS 10.9 Mavericks Discussion

eeek, should i have done the > bundle install --path vendor/bundle line instead? and postgresql was already installed also, as noted below.

Warning: postgresql-9.3.5_1 already installed

Posted in Setup MacOS 10.9 Mavericks Discussion

thanks for the repy chris, I should've mentioned that I did try bundle install also yesterday(though, with sudo), and the subsequent steps of using gem install pg '0.17.1', but to no avail. this is why i posted up thoughts. i'm still a new user to the mac environment and rails so i'm sort of learning on the fly.

Pears-MacBook-Pro:cic Pear$ Your user account isn't allowed to install to the system Rubygems.

> You can cancel this installation and run:

>

> bundle install --path vendor/bundle

>

> to install the gems into ./vendor/bundle/, or you can enter your password

> and install the bundled gems to Rubygems using sudo.

>

>

Pears-MacBook-Pro:cic Pear$ bundle install

Fetching gem metadata from https://rubygems.org/...........

Resolving dependencies...

Using rake 10.3.2

Using i18n 0.6.11

Using json 1.8.1

Using minitest 5.4.2

Using thread_safe 0.3.4

Using tzinfo 1.2.2

Using activesupport 4.1.7

Using builder 3.2.2

Using erubis 2.7.0

Using actionview 4.1.7

Using rack 1.5.2

Using rack-test 0.6.2

Using actionpack 4.1.7

Using mime-types 2.4.3

Using mail 2.6.3

Using actionmailer 4.1.7

Using activemodel 4.1.7

Using arel 5.0.1.20140414130214

Using activerecord 4.1.7

Using bundler 1.7.4

Using coffee-script-source 1.8.0

Using execjs 2.2.2

Using coffee-script 2.3.0

Using thor 0.19.1

Using railties 4.1.7

Using coffee-rails 4.0.1

Using hike 1.2.3

Using multi_json 1.10.1

Using jbuilder 2.2.4

Using jquery-rails 3.1.2

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20141105-513-x567l4.rb extconf.rb --with-pg-config=/Applications/Postgres.app/Contents/Versi...

Using config values from /Applications/Postgres.app/Contents/Versi...

sh: /Applications/Postgres.app/Contents/Versi... No such file or directory

sh: /Applications/Postgres.app/Contents/Versi... No such file or directory

checking for libpq-fe.h... yes

checking for libpq/libpq-fs.h... yes

checking for pg_config_manual.h... yes

checking for PQconnectdb() in -lpq... no

checking for PQconnectdb() in -llibpq... no

checking for PQconnectdb() in -lms/libpq... no

Can't find the PostgreSQL client library (libpq)

*** extconf.rb failed ***

Could not create Makefile due to some reason, probably lack of necessary

libraries and/or headers. Check the mkmf.log file for more details. You may

need configuration options.

Provided configuration options:

--with-opt-dir

--without-opt-dir

--with-opt-include

--without-opt-include=${opt-dir}/include

--with-opt-lib

--without-opt-lib=${opt-dir}/lib

--with-make-prog

--without-make-prog

--srcdir=.

--curdir

--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby

--with-pg

--without-pg

--with-pg-config

--with-pg-dir

--without-pg-dir

--with-pg-include

--without-pg-include=${pg-dir}/include

--with-pg-lib

--without-pg-lib=${pg-dir}/

--with-pqlib

--without-pqlib

--with-libpqlib

--without-libpqlib

--with-ms/libpqlib

--without-ms/libpqlib

extconf failed, exit code 1

Gem files will remain installed in /var/folders/jc/fx43z95j349cv01h3spj4dpr0000gn/T/bundler20141105-513-znjfu2/pg-0.17.1/gems/pg-0.17.1 for inspection.

Results logged to /var/folders/jc/fx43z95j349cv01h3spj4dpr0000gn/T/bundler20141105-513-znjfu2/pg-0.17.1/extensions/universal-darwin-13/2.0.0/pg-0.17.1/gem_make.out

An error occurred while installing pg (0.17.1), and Bundler cannot continue.

Make sure that `gem install pg -v '0.17.1'` succeeds before bundling.

Posted in Setup MacOS 10.9 Mavericks Discussion

I'm stuck on the final steps of the installation, I went to create a new rails app. Results are below. I clicked (yes) for everything after the conflict below, and then db:create after

Pears-MacBook-Pro:~ Pear$ rails new tryout -d postgresql

exist

identical README.rdoc

identical Rakefile

identical config.ru

identical .gitignore

conflict Gemfile

Overwrite /Users/Pear/tryout/Gemfile? (enter "h" for help) [Ynaqdh]

There was also
Pears-MacBook-Pro:orange Pear$ rake db:create

Could not find gem 'pg (>= 0) ruby' in the gems available on this machine.

Run `bundle install` to install missing gems.

I used homebrew and i'm on mavericks 10.9, i'm trying to find a way to add the rvm, and i've used stack overflow beforehand.

thinknig about just uninstalling everything and resetting everything up if I can't find an answer as i've been working on this for the last few hours.

Any help would be appreciated.

-hieu