开发者

Installing MYSQL and passenger gems, getting no definitions for documentation

开发者 https://www.devze.com 2023-01-21 00:00 出处:网络
I\'m running Mac OSX 10.6.4 and setting up rails for the first time.I\'ve been following a bunch of guides to get set up, specifically these two here and here.Also, I know this question has been asked

I'm running Mac OSX 10.6.4 and setting up rails for the first time. I've been following a bunch of guides to get set up, specifically these two here and here. Also, I know this question has been asked before, but nothing has helped me and my circumstances are a bit different.

First, let me give you my setup.

  1. I've installed Xcode, but I don't want to use the system ruby so, what I did was, I installed RVM and created two gemsets for different ruby versions (1.8.7@rails2.3.8 and 1.9.2@rails3), cause I also want to try rails 3.

  2. I created a global gemset so that I could install passenger and mysql for 1.8.7 and not have to do it for each project. Then se开发者_如何学编程t the global gemset by rvm gemset use global

  3. I had already installed MacPorts in a previous step, so what I've done is install mysql using this command sudo port install mysql5 mysql5-server.

  4. Now I run gem install passenger and then passenger-install-apache2-module. This is where I ran into the first issue. Passenger installed fine, but I got "no definition" errors when it tried to install the documentation.

  5. Finally, I want to install the mysql gem so I followed the steps here by adding rvm_archflags="-arch x86_64" to the ~/.rvmc file and then ran export ARCHFLAGS="-arch x86_64" ; gem install mysql -- --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config Here is where I ran into the issue again. I got a "Successfully installed mysql-2.8.1" message, but all the documentation returned "no definition" errors!

So, why am I getting these errors when installing gems? What can I do to get them installed without errors and ensure future gem installations don't have this problem?

Note: I'm not using sudo because RVM tells you not to.


Here is a link to your problem. They are saying the same thing and the answer is that it's just noise. Obviously something is not right but there is not and should not be a problem. It's most likely that all is fine and documentation was not created, installed, or linked correctly.

http://www.sitepoint.com/forums/showthread.php?t=629077


A -- alone (as written in step 5) usually means to stop reading options. I expect that this is wrong and doesn't belong here or is incomplete (ie, should be --something).

0

精彩评论

暂无评论...
验证码 换一张
取 消