当我尝试运行像Ruby脚本/服务器的应用程序服务器
它说/usr/lib/ruby/1.8/openssl/cipher.rb:22:密码不是一个模块(TypeError)。
所以遵循以下链接给出的步骤:
http://iamclovin.posterous.com/how-to-solve-the-cipher-is-not-a-module-error
当我运行以下命令
rubyextconf.rb
,我遇到了以下错误
===用于Rubyconfiguration器的OpenSSL ===
===检查系统相关的东西… ===
在-lnsl中检查t_open()…没有在-lsocket中检查socket()…没有检查assert.h …是的===检查所需的东西… ===检查openssl / ssl.h …否===检查所需的东西失败。 ===
Makefile没有被创build。 修复上面的错误。 * extconf.rb失败*
由于某种原因无法创buildMakefile,可能缺less必要的库和/或头文件。 检查mkmf.log文件以获取更多详细信息。 您可能需要configuration选项。
提供的configuration选项:–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 = / usr / bin / ruby1.8 –with-openssl-dir
–without-openssl-dir –with-openssl-include –without-openssl-include = $ {openssl-dir} / include –with-openssl-lib
–without-openssl-lib = $ {openssl-dir} / lib –with-kerberos-dir –without-kerberos-dir –with-kerberos-include –without-kerberos-include = $ {kerberos-dir } / include –with-kerberos-lib
–without-kerberos-lib = $ {kerberos-dir} / lib –with-debug –without-debug –enable-debug
–disable-debug –with-nsllib –without-nsllib –with-socketlib –without-socketlib –with-openssl-config –without-openssl-config –with-pkg-config –without- pkgconfiguration
似乎extconf未能检测到openssl开发头文件/库。 你应该安装它或帮助extconffind它(如果openssl开发文件已经安装):
ruby extconf.rb –with-openssl-dir =“prefix-on-file-system-where-openssl-files-resides”
ruby extconf.rb –with-openssl-include =“include-files-location”–with-oppenssl-lib =“openssl-libs-location”