铁轨上的红宝石找不到ffi

时间:2022-10-05 17:04:15

i see this often when working with mysql or mysql2, i tried to install ffi but it makes no difference, could you please help solving this issue

我经常在使用mysql或mysql2时看到这个,我试图安装ffi,但没有区别,请你帮我解决这个问题

i tried gem install ffi, bundle install ffi i tried many stuff, just would not work! when do rake db:create i will see the error, i have the latest rails installer if i use ruby installer instead, i'll get many other errors like: you need the dev toolkit to build this gem and i install the toolkit and still the the error therefore i prefer to stick with rails installer,

我试过gem install ffi,捆绑安装ffi我试过很多东西,就行不通!什么时候rake db:create我会看到错误,我有最新的rails安装程序,如果我使用ruby安装程序,我会得到许多其他错误,如:你需要dev工具包来构建这个gem,我安装工具包仍然错误因此我更喜欢坚持使用rails安装程序,

EDIT:

编辑:

lets say i typed bundle install mysql i see the error: make sure that ffi installation succeeds before you continue or something like that, the thing is, if i don't solve ffi error i'll be stuck with sqlite, because i bet that mongodb, couchdb, mysql, mysql2, postgeres, whatever... all need ffi, i don't know what ffi is but it's seems to be very important thing

让我说我键入捆绑安装mysql我看到错误:确保ffi安装成功之前你继续或类似的事情,事情是,如果我不解决ffi错误我将被卡住sqlite,因为我打赌, mongodb,couchdb,mysql,mysql2,postgeres,无论......都需要ffi,我不知道ffi是什么,但它似乎是非常重要的事情

1 个解决方案

#1


1  

I've never had an issue with ffi myself (in fact I hadn't even heard of it before your post), although I did have bizarre gem issues when working on Windows.

我自己从来没有遇到过ffi的问题(实际上我在你的帖子之前我甚至没有听说过),尽管我在Windows上工作时确实有奇怪的宝石问题。

Your problem seems to be this:

你的问题似乎是这样的:

C:/Documents and Settings/Administrator/Desktop/ror/selvista/mysql2/ruby/1.9.1/gems/ffi-1.0.11

C:/ Documents and Settings / Administrator / Desktop / ror / selvista / mysql2 / ruby​​ / 1.9.1 / gems / ffi-1.0.11

In particular, there's a line in your error code:

特别是,您的错误代码中有一行:

configure: WARNING: Libtool does not cope well with whitespace in 'pwd'

I think you need to move your ror folder somewhere else, like C:\ror, something without spaces in it.

我认为你需要将你的ror文件夹移动到其他地方,比如C:\ ror,里面没有空格的东西。

If you look higher up:

如果你看起来更高:

Makefile:160: warning: overriding commands for target 'C:/Documents'

It thinks your folder is just C:/Documents

它认为你的文件夹只是C:/ Documents

#1


1  

I've never had an issue with ffi myself (in fact I hadn't even heard of it before your post), although I did have bizarre gem issues when working on Windows.

我自己从来没有遇到过ffi的问题(实际上我在你的帖子之前我甚至没有听说过),尽管我在Windows上工作时确实有奇怪的宝石问题。

Your problem seems to be this:

你的问题似乎是这样的:

C:/Documents and Settings/Administrator/Desktop/ror/selvista/mysql2/ruby/1.9.1/gems/ffi-1.0.11

C:/ Documents and Settings / Administrator / Desktop / ror / selvista / mysql2 / ruby​​ / 1.9.1 / gems / ffi-1.0.11

In particular, there's a line in your error code:

特别是,您的错误代码中有一行:

configure: WARNING: Libtool does not cope well with whitespace in 'pwd'

I think you need to move your ror folder somewhere else, like C:\ror, something without spaces in it.

我认为你需要将你的ror文件夹移动到其他地方,比如C:\ ror,里面没有空格的东西。

If you look higher up:

如果你看起来更高:

Makefile:160: warning: overriding commands for target 'C:/Documents'

It thinks your folder is just C:/Documents

它认为你的文件夹只是C:/ Documents