Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7663971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:11:04+00:00 2026-05-31T14:11:04+00:00

When I run the command rake:install , I get this error message: WARNING: ‘require

  • 0

When I run the command rake:install, I get this error message:

WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
  Successfully built RubyGem
  Name: mysql2psql
  Version: 0.1.0
  File: mysql2psql-0.1.0.gem
Executing "ruby -S gem install ./pkg/mysql2psql-0.1.0.gem":
ruby -S gem install ./pkg/mysql2psql-0.1.0.gem
Building native extensions.  This could take a while...
ERROR:  Error installing ./pkg/mysql2psql-0.1.0.gem:
    ERROR: Failed to build gem native extension.

        /Users/adam/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for pg_config... no

  ===========   WARNING   ===========

  You are building this extension on OS X without setting the 
  ARCHFLAGS environment variable, and pg_config wasn't found in 
  your PATH. If you are seeing this message, that means that the 
  build will probably fail.

  If it does, you can correct this by either including the path 
  to 'pg_config' in your PATH or setting the environment variable 
  ARCHFLAGS to '-arch <arch>' before building.

  For example:
  (in bash) $ export PATH=/opt/local/lib/postgresql84/bin:$PATH                  
            $ export ARCHFLAGS='-arch x86_64'
  (in tcsh) % set path = ( /opt/local/lib/postgresql84/bin $PATH )
            % setenv ARCHFLAGS '-arch x86_64'

  Then try building again.

  ===================================

MacOS X build: fixing architecture flags:
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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=/Users/radek/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
    --with-pg
    --without-pg
    --with-pg-config
    --without-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}/lib
    --enable-static-build
    --disable-static-build


Gem files will remain installed in /Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/pg-0.9.0 for inspection.
Results logged to /Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/pg-0.9.0/ext/gem_make.out
rake aborted!
Command failed with status (1): [ruby -S gem install ./pkg/mysql2psql-0.1.0...]

Tasks: TOP => install
(See full trace by running task with --trace)

Apparently is the problem in the pg gem, but when I check the list of installed gems in my application, so there is * pg (0.13.2)

So what I am missing yet?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:11:05+00:00Added an answer on May 31, 2026 at 2:11 pm

    Solution for the issue above:

     1. export PATH=/Library/PostgreSQL/9.1/bin:$PATH
     2. export ARCHFLAGS='-arch x86_64'
     3. rake install
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting this error when running heroku rake db:migrate: Please install the postgresql
I'm trying to get a compile command (rake cucumber) to run with a specific
When i try to run the command rake db:create:all it's giving the following error:
Since I migrated to Snow Leopard I can't run any Rake command from the
How do I run this command with subprocess? I tried: proc = subprocess.Popen( '''ECHO
I can run this command in SqlManager to detach the db ALTER DATABASE mydb
When I run 'rails server' I get the following error: Could not find gem
I have solr with sunspot_mongo gem. When I try run sunspot:mongo:reindex I get this
When I run rake db:migrate for this code http://github.com/jonastryggvi/facebook-rails , I obtain : can't
For a RoR installation, is there any way to run rake commands without root

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.