- 浏览: 2075932 次
- 性别:
- 来自: NYC
文章分类
- 全部博客 (628)
- Linux (53)
- RubyOnRails (294)
- HTML (8)
- 手册指南 (5)
- Mysql (14)
- PHP (3)
- Rails 汇总 (13)
- 读书 (22)
- plugin 插件介绍与应用 (12)
- Flex (2)
- Ruby技巧 (7)
- Gem包介绍 (1)
- javascript Jquery ext prototype (21)
- IT生活 (6)
- 小工具 (4)
- PHP 部署 drupal (1)
- javascript Jquery sort plugin 插件 (2)
- iphone siri ios (1)
- Ruby On Rails (106)
- 编程概念 (1)
- Unit Test (4)
- Ruby 1.9 (24)
- rake (1)
- Postgresql (6)
- ruby (5)
- respond_to? (1)
- method_missing (1)
- git (8)
- Rspec (1)
- ios (1)
- jquery (1)
- Sinatra (1)
最新评论
-
dadadada2x:
user模型里加上 protected def email ...
流行的权限管理 gem devise的定制 -
Sev7en_jun:
shrekting 写道var pattern = /^(0| ...
强悍的ip格式 正则表达式验证 -
jiasanshou:
好文章!!!
RPM包rpmbuild SPEC文件深度说明 -
寻得乐中乐:
link_to其实就是个a标签,使用css控制,添加一个参数: ...
Rails在link_to中加参数 -
aiafei0001:
完全看不懂,不知所然.能表达清楚一点?
"$ is not defined" 的问题怎么办
好吧,这的确是一个十分诡异的错误,而且,似乎是win下才会有的。
原因是ferret_ext找不到,而你又确实安装了,说明这个ferret_ext.so(就是C编译完后以便ruby调用的库),不在ruby可以找到的lab路径。那么,照这个逻辑可以
把
下的 ferret_ext.so 文件拷贝到
如下目录
如下测试:
然而,如果你是linux或者mac上遇到的类似问题
那么参考这些
I had a stock install of Mac OS X Tiger, without developer tools
installed. When I did the "gem install ferret" I ignored the message
that gcc and make could not be found. RubyGems gave the message that
ferret was installed despite the fact that the C extensions were not
compiled and installed. So I got the error "no such file to load --
ferret_ext" when I tried to run ferret. Here's what I did to get ferret
to work:
Found my Mac OS X Tiger install disk and opened the Xcode Tools folder.
Clicked on the XcodeTools.mpkg. Started the install process and stopped
before I clicked the "Upgrade" button. Instead clicked the "Customize"
button and selected only "gcc 4.0" and the Software Development Kits
"Mac OS X SDK" and "BSD SDK" (I'm not developing Mac apps so didn't want
to crowd my disk with extra stuff I won't use). Then clicked "Upgrade."
What you need gets installed as /usr/bin/gcc plus lots more in
/usr/include. Now you can install ferret and it will compile the C
extensions.
First I removed the broken ferret I installed earlier:
$ gem uninstall ferret
I checked that I had gcc:
$ which gcc
/usr/bin/gcc
If you can't find it, check your bash shell path environment with:
$ env
You should have something like
"/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
I checked for the SDK libraries:
$ cd /usr/include
$ ls -lag
(should show lots of ".h" header files)
Then back to my development directory and ran:
$ sudo gem install ferret
Select which gem to install for your platform (powerpc-darwin7.9.0)
1. ferret 0.10.13 (ruby)
...
Building native extensions. This could take a while...
ruby extconf.rb install ferret
creating Makefile
...
(lots of make cruft)
make install
...
make clean
Successfully installed ferret-0.10.13
Installing ri documentation for ferret-0.10.13...
Installing RDoc documentation for ferret-0.10.13...
You can test ferret with this Ruby code in a file "ferret_test.rb"
I hope this helps someone else who might be in a similar situation,
especially if they are googling for "no such file to load -- ferret_ext"
or "Mac OS X gem install ferret" or even "installing gcc on mac os x".
原因是ferret_ext找不到,而你又确实安装了,说明这个ferret_ext.so(就是C编译完后以便ruby调用的库),不在ruby可以找到的lab路径。那么,照这个逻辑可以
把
引用
C:\ruby\lib\ruby\gems\1.8\gems\ferret-0.11.5-x86-mswin32\ext
下的 ferret_ext.so 文件拷贝到
如下目录
引用
C:\ruby\lib\ruby\gems\1.8\gems\ferret-0.11.5-x86-mswin32\lib
如下测试:
#ferret_test.rb file: require 'rubygems' require 'ferret' include Ferret index = Index::Index.new(:path => '/opt/search-index')
引用
>> require 'rubygems'
=> []
>> require 'ferret'
=> []
>> include Ferret
=> Object
>> puts "ferret works!"
ferret works!
=> nil
>> index = Index::Index.new(:path => '/opt/search-index')
=> #<Ferret::Index::Index:0x481591c @qp=nil, @dir=#<Ferret::Store::FSDirectory:0x4814e04>, @default_field=:*, @reader=nil, @mon_owner=nil, @open=true, @close_di
r=true, @id_field=:id, @writer=nil, @options={:path=>"/opt/search-index", :lock_retry_time=>2, :default_field=>:*, :dir=>#<Ferret::Store::FSDirectory:0x4814e04>
, :analyzer=>#<Ferret::Analysis::StandardAnalyzer:0x4814918>}, @mon_waiting_queue=[], @key=nil, @searcher=nil, @default_input_field=:id, @mon_entering_queue=[],
@auto_flush=false, @mon_count=0>
=> []
>> require 'ferret'
=> []
>> include Ferret
=> Object
>> puts "ferret works!"
ferret works!
=> nil
>> index = Index::Index.new(:path => '/opt/search-index')
=> #<Ferret::Index::Index:0x481591c @qp=nil, @dir=#<Ferret::Store::FSDirectory:0x4814e04>, @default_field=:*, @reader=nil, @mon_owner=nil, @open=true, @close_di
r=true, @id_field=:id, @writer=nil, @options={:path=>"/opt/search-index", :lock_retry_time=>2, :default_field=>:*, :dir=>#<Ferret::Store::FSDirectory:0x4814e04>
, :analyzer=>#<Ferret::Analysis::StandardAnalyzer:0x4814918>}, @mon_waiting_queue=[], @key=nil, @searcher=nil, @default_input_field=:id, @mon_entering_queue=[],
@auto_flush=false, @mon_count=0>
然而,如果你是linux或者mac上遇到的类似问题
那么参考这些
引用
I had a stock install of Mac OS X Tiger, without developer tools
installed. When I did the "gem install ferret" I ignored the message
that gcc and make could not be found. RubyGems gave the message that
ferret was installed despite the fact that the C extensions were not
compiled and installed. So I got the error "no such file to load --
ferret_ext" when I tried to run ferret. Here's what I did to get ferret
to work:
Found my Mac OS X Tiger install disk and opened the Xcode Tools folder.
Clicked on the XcodeTools.mpkg. Started the install process and stopped
before I clicked the "Upgrade" button. Instead clicked the "Customize"
button and selected only "gcc 4.0" and the Software Development Kits
"Mac OS X SDK" and "BSD SDK" (I'm not developing Mac apps so didn't want
to crowd my disk with extra stuff I won't use). Then clicked "Upgrade."
What you need gets installed as /usr/bin/gcc plus lots more in
/usr/include. Now you can install ferret and it will compile the C
extensions.
First I removed the broken ferret I installed earlier:
$ gem uninstall ferret
I checked that I had gcc:
$ which gcc
/usr/bin/gcc
If you can't find it, check your bash shell path environment with:
$ env
You should have something like
"/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
I checked for the SDK libraries:
$ cd /usr/include
$ ls -lag
(should show lots of ".h" header files)
Then back to my development directory and ran:
$ sudo gem install ferret
Select which gem to install for your platform (powerpc-darwin7.9.0)
1. ferret 0.10.13 (ruby)
...
Building native extensions. This could take a while...
ruby extconf.rb install ferret
creating Makefile
...
(lots of make cruft)
make install
...
make clean
Successfully installed ferret-0.10.13
Installing ri documentation for ferret-0.10.13...
Installing RDoc documentation for ferret-0.10.13...
You can test ferret with this Ruby code in a file "ferret_test.rb"
require 'rubygems' require 'ferret' include Ferret puts "ferret works!" Try it with: $ ruby ferret_test.rb ferret works!
I hope this helps someone else who might be in a similar situation,
especially if they are googling for "no such file to load -- ferret_ext"
or "Mac OS X gem install ferret" or even "installing gcc on mac os x".
发表评论
-
Destroying a Postgres DB on Heroku
2013-04-24 10:58 935heroku pg:reset DATABASE -
VIM ctags setup ack
2012-04-17 22:13 3259reference ctags --extra=+f --e ... -
alias_method_chain方法在3.1以后的替代使用方式
2012-02-04 02:14 3295alias_method_chain() 是rails里的一个 ... -
一些快速解决的问题
2012-01-19 12:35 1472问题如下: 引用Could not open library ... -
API service 安全问题
2011-12-04 08:47 1386这是一个长期关注的课题 rest api Service的 ... -
Module方法调用好不好
2011-11-20 01:58 1349以前说,用module给class加singleton方法,和 ... -
一个ajax和rails交互的例子
2011-11-19 01:53 1908首先,这里用了一个,query信息解析的包,如下 https: ... -
Rails 返回hash给javascript
2011-11-19 01:43 2277这是一个特别的,不太正统的需求, 因为,大部分时候,ajax的 ... -
关于Rubymine
2011-11-18 23:21 2267开个帖子收集有关使用上的问题 前一段时间,看到半价就买了。想 ... -
ruby中和javascript中,动态方法的创建
2011-11-18 21:01 1241class Klass def hello(*args) ... -
textmate快捷键 汇总
2011-11-16 07:20 8147TextMate 列编辑模式 按住 Alt 键,用鼠标选择要 ... -
Ruby面试系列六,面试继续面试
2011-11-15 05:55 2025刚才受到打击了,充分报漏了自己基础不扎实,不肯向虎炮等兄弟学习 ... -
说说sharding
2011-11-13 00:53 1492这个东西一面试就有人 ... -
rails面试碎碎念
2011-11-12 23:51 1946面试继续面试 又有问ru ... -
最通常的git push reject 和non-fast forward是因为
2011-11-12 23:29 17216git push To git@github.com:use ... -
Rails 自身的many to many关系 self has_many
2011-11-12 01:43 2738简单点的 #注意外键在person上people: id ... -
Rails 3下的 in place editor edit in place
2011-11-12 01:20 946第一个版本 http://code.google.com/p ... -
Heroku 的诡异问题集合
2011-11-11 07:22 1697开个Post记录,在用heroku过程中的一些诡异问题和要注意 ... -
SCSS 和 SASS 和 HAML 和CoffeeScript
2011-11-07 07:52 12960Asset Pipeline 提供了内建 ... -
Invalid gemspec because of the date format in specification
2011-11-07 02:14 2122又是这个date format的错误。 上次出错忘了,记录下 ...
相关推荐
8. **蒙特福尔雷特(MontFerret)**:文件名“MontFerret-ferret-4961bcd”可能指的是Go-Ferret的一个版本或者分支,4961bcd可能是Git提交的哈希值,表示该版本包含了特定的改进和修复。 9. **持续更新与社区支持**...
在这个过程中,使用了ferret工具来执行Cookie劫持,这是一种常见的攻击手段,用于获取用户的登录凭据,特别是那些存储在Cookie中的会话ID。以下是整个过程的详细解释: 1. **环境准备**: 在这个场景中,我们有两...
- **FERRET-GUI**:通过`ferret-gui`命令打开图形前端界面,便于用户通过图形界面进行操作。 #### 二、基础教程获取 - **Gotutorial**:用户可以通过`gotutorial`命令获取简单的教程示例,帮助快速上手FERRET的基本...
Matlab,Fortran,IDL,NCL和Ferret代码/脚本的示例/示例(以PDF,Microsoft Word和文本文件格式),这些都是我在简历/简历中描述的各种项目的过程中编写的,在我的LinkedIn个人资料()中,以及一些输出图(数据...
FERRET 绘图软件 6.84 for win64 安装方式,解压到任意目录,直接执行bin\bash.exe或bin\mintty.exe原方式操作,直接执行bin\ferret_v6.84.exe 直接进入FERRET
Arduino-ferret.zip,ferret是一个用于实时嵌入式控制系统的自由软件lisp实现。,Arduino是一家开源软硬件公司和制造商社区。Arduino始于21世纪初,深受电子制造商的欢迎,Arduino通过开源系统提供了很多灵活性。
Ferret-1可能是Ferret工具的特定版本或者是一个可执行文件。在使用前,应该仔细阅读readme.txt以了解如何正确操作,同时,根据描述,这个工具可能存在一定的风险,因此在非受控环境中使用可能会对个人或组织的网络...
ruby下的搜索引擎。With the introduction of Ferret, Ruby users now have one of the fastest and most flexible search libraries available. And it's surprisingly easy to use.
"Image Ferret"是一款开源的图像搜索工具,它专为帮助用户在互联网上高效地查找、探索和发现各种图像、照片以及艺术作品而设计。这款软件的独特之处在于它能够自动学习用户的偏好,根据用户对图像的喜好进行智能推荐...
Ferret 是 Java 全文搜索引擎 Lucene 的 Ruby 移植版本。 标签:Ferret
几年前的黑帽子大会后传出的一个工具Ferret。作者声称可以利用他截获邮箱登录过程中的cookie信息。进而可以随意侵入他人的信箱。曾在黑帽子大会上当场演示如何破解gmail,hotmail等信箱。终于等到作者把代码和工具都...
Ferret 是一个免费软件 lisp 实现,旨在用于实时嵌入式控制系统。Ferret lisp 编译成自包含的C++11。生成的代码可在支持C++11兼容编译器的任何操作系统和/或微控制器之间移植。它已经过验证,可以在从内存低至2KB 的...
其中,Ferret-crx插件就是一款针对英语用户设计,旨在简化搜索流程并提供高效检索体验的多功能浏览器扩展程序。 Ferret-crx插件的出现,为用户提供了一个统一的搜索界面。在浏览器的地址栏或多功能搜索框中,用户只...
"pnw-ferret"是一个专门用于政治与战争数据收集和分析的工具,它以其高效的数据处理能力和深度洞察力在IT行业...用户可以下载并安装"pnw-ferret-master",以定制自己的数据收集和分析流程,满足特定的研究或监控需求。
SQLPing 3.0 is designed to remedy this problem by combining all known means of SQL Server/MSDE discovery into a single tool which can be used to ferret-out servers you never knew existed on your ...
- ```Ferret-NG``` - Transperently hijacks sessions - ```BrowserProfiler``` - Attempts to enumerate all browser plugins of connected clients - ```CacheKill``` - Kills page caching by modifying headers ...
雪貂opencv 用于OpenCV雪貂绑定(require '[ferret-opencv.core :as cv])(def cam (cv/video-capture 0))(let [f (cv/query-capture cam)] (cv/imwrite "image_latest.png" f))样品CMake cmake_minimum_required...
【标题】"Ferret.Net-开源" 【描述】中的知识点: 1. **Ferret.Net**:这是一个专为IT专业人士设计的开源类库,它主要用于处理网络套接字通信,提供跨平台的支持。 2. **基于接口**:这意味着Ferret.Net的设计遵循...
"ferret"这个词在英语中指的是雪貂,一种善于挖掘和寻找的小动物。在这里,它可能是象征着库能够深入文本数据中,挖掘出有价值的信息。版本号"0.1.0"表明这是该库的初步版本,可能存在更多的更新和发展空间。 ...
**Ferret CMS 开源内容管理系统详解** Ferret CMS 是一个基于 Zope 平台构建的开源内容管理系统。Zope 是一个强大的Python Web应用程序框架,它为开发人员提供了丰富的功能,使得创建复杂的Web应用变得更为简单。...