WebFaction
Community site: login faq

Following these instructions to get a basic site up: http://docs.webfaction.com/software/rails.html#installing-gems

It says to setup mysql run:

gem install mysql -- --with-mysql-config=$(which mysql_config)

Is there a standard config file to point it to?

asked 25 Apr '11, 18:11

Ross Charette
312
accept rate: 0%


which mysql_config generally results in /usr/bin/mysql_config, however:

  1. On some older servers, this may be different, and
  2. There is no guarantee that this location cannot change, but it should remain on the PATH

Therefore, by recording the command to use as:

gem install mysql -- --with-mysql-config=$(which mysql_config)

You can directly run this on any server and it will "just work", since the$(which mysql_config) is evaluated by the shell and becomes the path to mysql_config automatically.

Hope that clarifies!

permanent link

answered 25 Apr '11, 21:28

ryans ♦♦
5.0k103860
accept rate: 43%

edited 25 Apr '11, 21:34

I found the path to the mysql_config file, but when I opened it with vi it was a bunch of symbols. Shouldn't it be a ascii text file?

(27 Apr '11, 16:12) Ross Charette

No, mysql_config is not an ascii file, it's a binary. You can read the manual page for it by entering:

man mysql_config

(27 Apr '11, 16:35) aaronh ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×168
×108

question asked: 25 Apr '11, 18:11

question was seen: 3,427 times

last updated: 27 Apr '11, 16:35

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM