I'm working to get Rails properly configured and running on a GNU/ Linux RedHat4 server. I've been through many, many of the online documentation sets, and am still stuck on a couple of things, namely running mongrel throws errors concerning openssl. I've been through the cycle of using rpms, using gems, using source directly, and have made the most progress using source. I've managed to get ruby to "see" zlib, which was holding me back, for quite a while. Here are my steps, as it stands today. I'd appreciate any assistance. Here are my machine specs: uname -a Linux ??????.??????.??? 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:58:43 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux I compile ruby-1.8.6 this way: ./configure --with-openssl=/lib64 --with-zlib --with-readline=/usr/lib I am reasonably sure that the --with-zlib works because this returns "success": ruby -rzlib -e "puts :success" > success However, these don't work: ruby -ropenssl -e "puts :success" > ruby: no such file to load -- openssl (LoadError) ruby -rreadline -e "puts :success" > ruby: no such file to load -- readline (LoadError) I also followed steps to manually compile the ext/openssl directory: ruby extconf.rb > === OpenSSL for Ruby configurator === > === Checking for system dependent stuff... === > checking for t_open() in -lnsl... no > checking for socket() in -lsocket... no > checking for assert.h... yes > === Checking for required stuff... === > checking for openssl/ssl.h... no > === Checking for required stuff failed. === > Makefile wasn't created. Fix the errors above. Here is the contents of the mkmf.log found under ext/openssl: ***** BEGIN mkmf.log ***** have_library: checking for t_open() in -lnsl... -------------------- no "gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -g - O2 conftest.c -L'/usr/local/lib' -Wl,-R'/\usr/local/lib' -rdynamic - Wl,-export-dynamic -lruby-static -lnsl -ldl -lcrypt -lm -lc" conftest.c: In function `t': conftest.c:3: error: `t_open' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))t_open; return 0; } /* end */ "gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -g - O2 conftest.c -L'/usr/local/lib' -Wl,-R'/\usr/local/lib' -rdynamic - Wl,-export-dynamic -lruby-static -lnsl -ldl -lcrypt -lm -lc" /tmp/ccK5K10B.o(.text+0x17): In function `t': /root/ruby-1.8.6/ext/openssl/conftest.c:3: undefined reference to `t_open' collect2: ld returned 1 exit status checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { t_open(); return 0; } /* end */ -------------------- have_library: checking for socket() in -lsocket... -------------------- no "gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -g - O2 conftest.c -L'/usr/local/lib' -Wl,-R'/\usr/local/lib' -rdynamic - Wl,-export-dynamic -lruby-static -lsocket -ldl -lcrypt -lm -lc" conftest.c: In function `t': conftest.c:3: error: `socket' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))socket; return 0; } /* end */ "gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -g - O2 conftest.c -L'/usr/local/lib' -Wl,-R'/\usr/local/lib' -rdynamic - Wl,-export-dynamic -lruby-static -lsocket -ldl -lcrypt -lm -lc" /usr/bin/ld: cannot find -lsocket collect2: ld returned 1 exit status checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { socket(); return 0; } /* end */ -------------------- ***** END mkmf.log ***** The reason why I compile ruby-1.8.6 this way: ./configure --with-openssl=/lib64 --with-zlib --with-readline=/usr/lib is because I find the following files under /lib64: ls /lib64/*ssl* > /lib64/libssl.so.0.9.7a /lib64/libssl.so.4 and I find the following files under /usr/lib: ls /usr/lib/*line* > /usr/lib/libguilereadline-v-12.a /usr/lib/libguilereadline-v-12.so.12 /usr/lib/libreadline.so.4.3 > /usr/lib/libguilereadline-v-12.la /usr/lib/libguilereadline-v-12.so.12.3.0 > /usr/lib/libguilereadline-v-12.so /usr/lib/libreadline.so.4 I can successfully compile rubygems: cd rubygems-1.2.0 ruby setup.rb ***** BEGIN OUTPUT FROM ruby setup.rb ***** mkdir -p /usr/local/lib/ruby/site_ruby/1.8 mkdir -p /usr/local/bin install -c -m 0644 rubygems/test_utilities.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/test_utilities.rb install -c -m 0644 rubygems/timer.rb /usr/local/lib/ruby/site_ruby/1.8/ rubygems/timer.rb install -c -m 0644 rubygems/source_info_cache_entry.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/source_info_c\ache_entry.rb install -c -m 0644 rubygems/rubygems_version.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/rubygems_version.rb install -c -m 0644 rubygems/dependency_installer.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/dependency_insta\ller.rb install -c -m 0644 rubygems/local_remote_options.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/local_remote_opt\ions.rb install -c -m 0644 rubygems/package/tar_reader/entry.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/package/tar_\reader/entry.rb install -c -m 0644 rubygems/package/f_sync_dir.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/package/f_sync_dir\.rb install -c -m 0644 rubygems/package/tar_header.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/package/tar_header\.rb install -c -m 0644 rubygems/package/tar_input.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/package/tar_input.r\b install -c -m 0644 rubygems/package/tar_writer.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/package/tar_writer\.rb install -c -m 0644 rubygems/package/tar_output.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/package/tar_output\.rb install -c -m 0644 rubygems/package/tar_reader.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/package/tar_reader\.rb install -c -m 0644 rubygems/old_format.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/old_format.rb install -c -m 0644 rubygems/spec_fetcher.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/spec_fetcher.rb install -c -m 0644 rubygems/installer.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/installer.rb install -c -m 0644 rubygems/defaults.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/defaults.rb install -c -m 0644 rubygems/user_interaction.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/user_interaction.rb install -c -m 0644 rubygems/package.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/package.rb install -c -m 0644 rubygems/command.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/command.rb install -c -m 0644 rubygems/server.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/server.rb install -c -m 0644 rubygems/require_paths_builder.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/require_paths_b\uilder.rb install -c -m 0644 rubygems/command_manager.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/command_manager.rb install -c -m 0644 rubygems/specification.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/specification.rb install -c -m 0644 rubygems/validator.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/validator.rb install -c -m 0644 rubygems/platform.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/platform.rb install -c -m 0644 rubygems/builder.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/builder.rb install -c -m 0644 rubygems/source_info_cache.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/source_info_cache.r\b install -c -m 0644 rubygems/version_option.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/version_option.rb install -c -m 0644 rubygems/install_update_options.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/install_update\_options.rb install -c -m 0644 rubygems/digest/digest_adapter.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/digest/digest_a\dapter.rb install -c -m 0644 rubygems/digest/md5.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/digest/md5.rb install -c -m 0644 rubygems/digest/sha1.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/digest/sha1.rb install -c -m 0644 rubygems/digest/sha2.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/digest/sha2.rb install -c -m 0644 rubygems/requirement.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/requirement.rb install -c -m 0644 rubygems/gem_runner.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/gem_runner.rb install -c -m 0644 rubygems/version.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/version.rb install -c -m 0644 rubygems/config_file.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/config_file.rb install -c -m 0644 rubygems/dependency.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/dependency.rb install -c -m 0644 rubygems/ext.rb /usr/local/lib/ruby/site_ruby/1.8/ rubygems/ext.rb install -c -m 0644 rubygems/format.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/format.rb install -c -m 0644 rubygems/source_index.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/source_index.rb install -c -m 0644 rubygems/dependency_list.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/dependency_list.rb install -c -m 0644 rubygems/gem_path_searcher.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/gem_path_searcher.r\b install -c -m 0644 rubygems/custom_require.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/custom_require.rb install -c -m 0644 rubygems/remote_fetcher.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/remote_fetcher.rb install -c -m 0644 rubygems/gem_openssl.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/gem_openssl.rb install -c -m 0644 rubygems/doc_manager.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/doc_manager.rb install -c -m 0644 rubygems/exceptions.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/exceptions.rb install -c -m 0644 rubygems/security.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/security.rb install -c -m 0644 rubygems/indexer.rb /usr/local/lib/ruby/site_ruby/ 1.8/rubygems/indexer.rb install -c -m 0644 rubygems/ext/rake_builder.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/ext/rake_builder.rb install -c -m 0644 rubygems/ext/ext_conf_builder.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/ext/ext_conf_bui\lder.rb install -c -m 0644 rubygems/ext/builder.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/ext/builder.rb install -c -m 0644 rubygems/ext/configure_builder.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/ext/configure_b\uilder.rb install -c -m 0644 rubygems/commands/server_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/serv\er_command.rb install -c -m 0644 rubygems/commands/unpack_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/unpa\ck_command.rb install -c -m 0644 rubygems/commands/which_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/which\_command.rb install -c -m 0644 rubygems/commands/cleanup_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/cle\anup_command.rb install -c -m 0644 rubygems/commands/build_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/build\_command.rb install -c -m 0644 rubygems/commands/query_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/query\_command.rb install -c -m 0644 rubygems/commands/sources_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/sou\rces_command.rb install -c -m 0644 rubygems/commands/fetch_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/fetch\_command.rb install -c -m 0644 rubygems/commands/generate_index_command.rb /usr/ local/lib/ruby/site_ruby/1.8/rubygems/comma\nds/ generate_index_command.rb install -c -m 0644 rubygems/commands/search_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/sear\ch_command.rb install -c -m 0644 rubygems/commands/rdoc_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/rdoc_c\ommand.rb install -c -m 0644 rubygems/commands/dependency_command.rb /usr/local/ lib/ruby/site_ruby/1.8/rubygems/commands/\dependency_command.rb install -c -m 0644 rubygems/commands/specification_command.rb /usr/ local/lib/ruby/site_ruby/1.8/rubygems/comman\ds/ specification_command.rb install -c -m 0644 rubygems/commands/list_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/list_c\ommand.rb install -c -m 0644 rubygems/commands/pristine_command.rb /usr/local/ lib/ruby/site_ruby/1.8/rubygems/commands/pr\istine_command.rb install -c -m 0644 rubygems/commands/cert_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/cert_c\ommand.rb install -c -m 0644 rubygems/commands/stale_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/stale\_command.rb install -c -m 0644 rubygems/commands/environment_command.rb /usr/local/ lib/ruby/site_ruby/1.8/rubygems/commands\/environment_command.rb install -c -m 0644 rubygems/commands/install_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/ins\tall_command.rb install -c -m 0644 rubygems/commands/outdated_command.rb /usr/local/ lib/ruby/site_ruby/1.8/rubygems/commands/ou\tdated_command.rb install -c -m 0644 rubygems/commands/lock_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/lock_c\ommand.rb install -c -m 0644 rubygems/commands/check_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/check\_command.rb install -c -m 0644 rubygems/commands/update_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/upda\te_command.rb install -c -m 0644 rubygems/commands/contents_command.rb /usr/local/ lib/ruby/site_ruby/1.8/rubygems/commands/co\ntents_command.rb install -c -m 0644 rubygems/commands/uninstall_command.rb /usr/local/ lib/ruby/site_ruby/1.8/rubygems/commands/u\ninstall_command.rb install -c -m 0644 rubygems/commands/mirror_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/mirr\or_command.rb install -c -m 0644 rubygems/commands/help_command.rb /usr/local/lib/ ruby/site_ruby/1.8/rubygems/commands/help_c\ommand.rb install -c -m 0644 rubygems/uninstaller.rb /usr/local/lib/ruby/ site_ruby/1.8/rubygems/uninstaller.rb install -c -m 0644 rbconfig/datadir.rb /usr/local/lib/ruby/site_ruby/ 1.8/rbconfig/datadir.rb install -c -m 0644 ubygems.rb /usr/local/lib/ruby/site_ruby/1.8/ ubygems.rb install -c -m 0644 rubygems.rb /usr/local/lib/ruby/site_ruby/1.8/ rubygems.rb cp gem /tmp/gem install -c -m 0755 /tmp/gem /usr/local/bin/gem rm /tmp/gem rm -f /root/.gem/source_cache rm -f /usr/local/lib/ruby/gems/1.8/source_cache rm -rf /usr/local/lib/ruby/gems/1.8/doc/rubygems-1.2.0 Removing old RubyGems RDoc and ri Installing rubygems-1.2.0 ri into /usr/local/lib/ruby/gems/1.8/doc/ rubygems-1.2.0/ri Installing rubygems-1.2.0 rdoc into /usr/local/lib/ruby/gems/1.8/doc/ rubygems-1.2.0/rdoc ------------------------------------------------------------------------------ = Announce: RubyGems Release 1.2.0 Release 1.2.0 adds new features and fixes some bugs. New features: * RubyGems no longer performs bulk updates and instead only fetches the gemspec files it needs. Alternate sources will need to upgrade to RubyGems 1.2 to allow RubyGems to take advantage of the new metadata updater. If a pre 1.2 remote source is in the sources list, RubyGems will revert to the bulk update code for compatibility. * RubyGems now has runtime and development dependency types. Use #add_development_dependency and #add_runtime_dependency. All typeless dependencies are considered to be runtime dependencies. * RubyGems will now require rubygems/defaults/operating_system.rb and rubygems/defaults/#{RBX_ENGINE}.rb if they exist. This allows packagers and ruby implementers to add custom behavior to RubyGems via these files. (If the RubyGems API is insufficient, please suggest improvements via the RubyGems list.) * /etc/gemrc (and windows equivalent) for global settings * setup.rb now handles --vendor and --destdir for packagers * `gem stale` command that lists gems by last access time Bugs Fixed: * File modes from gems are now honored, patch #19737 * Marshal Gem::Specification objects from the future can now be loaded. * A trailing / is now added to remote sources when missing, bug #20134 * Gems with legacy platforms will now be correctly uninstalled, patch #19877 * `gem install --no-wrappers` followed by `gem install --wrappers` no longer overwrites executables * `gem pristine` now forces reinstallation of gems, bug #20387 * RubyGems gracefully handles ^C while loading .gemspec files from disk, bug #20523 * Paths are expanded in more places, bug #19317, bug #19896 * Gem::DependencyInstaller resets installed gems every install, bug #19444 * Gem.default_path is now honored if GEM_PATH is not set, patch #19502 Other Changes Include: * setup.rb * stub files created by RubyGems 0.7.x and older are no longer removed. When upgrading from these ancient versions, upgrade to 1.1.x first to clean up stubs. * RDoc is no longer required until necessary, patch #20414 * `gem server` * Now completely matches the output of `gem generate_index` and has correct content types * Refreshes from source directories for every hit. The server will no longer need to be restarted after installing gems. * `gem query --details` and friends now display author, homepage, rubyforge url and installed location * `gem install` without -i no longer reinstalls dependencies if they are in GEM_PATH but not in GEM_HOME * Gem::RemoteFetcher now performs persistent connections for HEAD requests, bug #7973 For a full list of changes to RubyGems and the contributor for each change, see the ChangeLog file. Special thanks to Chad Wooley for backwards compatibility testing and Luis Lavena for continuing windows support. == How can I get RubyGems? NOTE: If you have installed RubyGems using a package system you may want to install a new RubyGems through the same packaging system. If you have a recent version of RubyGems (0.8.5 or later), then all you need to do is: $ gem update --system (you might need to be admin/root) (Note: You may have to run the command twice if you have any previosly installed rubygems-update gems). If you have an older version of RubyGems installed, then you can still do it in two steps: $ gem install rubygems-update (again, might need to be admin/root) $ update_rubygems (... here too) If you don't have any gems install, there is still the pre-gem approach to getting software ... doing it manually: 1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126 2. UNPACK INTO A DIRECTORY AND CD THERE 3. INSTALL WITH: ruby setup.rb (you may need admin/root privilege) == To File Bugs The RubyGems bug tracker can be found on RubyForge at: http://rubyforge.org/tracker/?func=add&group_id=126&atid=575 When filing a bug, `gem env` output will be helpful in diagnosing the issue. If you find a bug where RubyGems crashes, please provide debug output. You can do that with `gem --debug the_command`. == Thanks Keep those gems coming! -- Jim & Chad & Eric (for the RubyGems team) ------------------------------------------------------------------------------ RubyGems installed the following executables: /usr/local/bin/gem If `gem` was installed by a previous RubyGems installation, you may need to remove it by hand. ***** END OUTPUT FROM ruby setup.rb ***** The problem comes when I try to run the rails server on a basic project. Apparently the openssl stuff is not found: I created a basic project under ~/project/test: ~/project/test% ls > app config db doc lib log public Rakefile README script test tmp vendor ~/project/test% ruby -d script/server Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb: 772 - no such file to load -- rubygems/d\efaults/operating_system /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:241: warning: `&' interpreted as argument pref\ix /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/rails/ gem_dependency.rb:32: warning: `*' interpreted as argum\ent prefix Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems.rb:578 - Could not find RubyGem builde\r (~> 2.1.2) Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems.rb:578 - Could not find RubyGem xml-si\mple (~> 1.0.11) Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems.rb:578 - Could not find RubyGem memcac\he-client (~> 1.5.0) Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems.rb:578 - Could not find RubyGem tzinfo\ (~> 0.3.8) Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27 - no such file to load\ -- Win32API Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:34 - no such file to load\ -- Win32API Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- fast_xs Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- fast_xs Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- utf8proc_native Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- utf8proc_native Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- utf8proc_native Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- fcgi Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- fcgi Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- fcgi Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- fcgi Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- fcgi Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- fcgi Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/core_\ext/kernel/requires.rb:19 - no such file to load -- fcgi Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- mongrel Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ mongrel-1.1.5/lib/mongrel/gems.rb:7 - no suc\h file to load -- mongrel_experimental Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems.rb:578 - Could not find RubyGem mongre\l_experimental (>= 1.1.5) => Booting Mongrel (use 'script/server webrick' to force WEBrick) Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - ~/project/test\/tmp/cache Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - ~/project/test\/tmp/pids Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - ~/project/test\/tmp/sessions Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243 - File exists - ~/project/test\/tmp/sockets => Rails 2.1.0 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:188: warning: instance variable @host not ini\tialized /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:188: warning: instance variable @includes not\ initialized ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ rails.rb:135: warning: instance variable @ra\ils_handler not initialized ~/project/test/config/boot.rb:8: warning: method redefined; discarding old boot! ~/project/test/config/boot.rb:15: warning: method redefined; discarding old booted? ~/project/test/config/boot.rb:19: warning: method redefined; discarding old pick_boot ~/project/test/config/boot.rb:23: warning: method redefined; discarding old vendor_rails? ~/project/test/config/boot.rb:27: warning: method redefined; discarding old preinitialize ~/project/test/config/boot.rb:31: warning: method redefined; discarding old preinitializer_path ~/project/test/config/boot.rb:37: warning: method redefined; discarding old run ~/project/test/config/boot.rb:44: warning: method redefined; discarding old load_initializer ~/project/test/config/boot.rb:51: warning: method redefined; discarding old load_initializer ~/project/test/config/boot.rb:57: warning: method redefined; discarding old load_rails_gem ~/project/test/config/boot.rb:69: warning: method redefined; discarding old rubygems_version ~/project/test/config/boot.rb:73: warning: method redefined; discarding old gem_version ~/project/test/config/boot.rb:83: warning: method redefined; discarding old load_rubygems ~/project/test/config/boot.rb:96: warning: method redefined; discarding old parse_gem_version ~/project/test/config/boot.rb:101: warning: method redefined; discarding old read_environment_rb /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ validations.rb:284: warning: `*' interpr\eted as argument prefix /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ callbacks.rb:187: warning: `*' interpret\ed as argument prefix /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ connection_adapters/abstract/connection_\specification.rb:41: warning: method redefined; discarding old allow_concurrency= /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ action_controller/routing/routing_ext.rb:3: warning: met\hod redefined; discarding old to_param /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ action_controller/routing/recognition_optimisation.rb:56\: warning: method redefined; discarding old recognize_path /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ template_finder.rb:94: warning: method redef\ined; discarding old view_paths= /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/sanitize_helper.rb:108: warning: amb\iguous first argument; put parentheses or even spaces Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- redcloth Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- redcloth Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- redcloth Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- redcloth Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- redcloth Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- redcloth Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/core_\ext/kernel/requires.rb:19 - no such file to load -- redcloth Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- bluecloth Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- bluecloth Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- bluecloth Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- bluecloth Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- bluecloth Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- bluecloth Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/core_\ext/kernel/requires.rb:19 - no such file to load -- bluecloth Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- securerandom Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- securerandom Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- securerandom /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ action_controller/cgi_ext/session.rb:44: warning: method\ redefined; discarding old create_new_id /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ action_controller/cgi_ext/session.rb:51: warning: method\ redefined; discarding old initialize Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:27 - no such file\ to load -- openssl Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- openssl Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- openssl Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- openssl Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- openssl Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- openssl Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- openssl Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:34 - no such file\ to load -- openssl Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/depen\dencies.rb:512 - no such file to load -- openssl Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/ rails-2.1.0/lib/initializer.rb:225 - no such file\ to load -- openssl Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/dependenci\es.rb:512 - no such file to load -- openssl Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/dependenci\es.rb:505 - no such file to load -- openssl Exiting Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/dependenci\es.rb:512 - no such file to load -- openssl Exiting Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/ activesupport-2.1.0/lib/active_support/dependenci\es.rb:512 - no such file to load -- openssl /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb: 225:in `require_frameworks': no such file to l\oad -- openssl (RuntimeError) from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/ initializer.rb:113:in `process' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/ initializer.rb:93:in `send' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/ initializer.rb:93:in `run' from ~/project/test/config/environment.rb:13 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ active_support/dependencies.rb:509:in `r\equire' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ active_support/dependencies.rb:354:in `n\ew_constants_in' ... 22 levels... from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/ commands/server.rb:39 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require' from script/server:3 It's frustrating, because OpenSSL is installed, and apparently working, at least on some level: % openssl OpenSSL> help openssl:Error: 'help' is an invalid command. Standard commands asn1parse ca ciphers crl crl2pkcs7 dgst dh dhparam dsa dsaparam enc engine errstr gendh gendsa genrsa nseq ocsp passwd pkcs12 pkcs7 pkcs8 rand req rsa rsautl s_client s_server s_time sess_id smime speed spkac verify version x509 Message Digest commands (see the `dgst' command for more details) md2 md4 md5 rmd160 sha sha1 Cipher commands (see the `enc' command for more details) aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb aes-256- cbc aes-256-ecb base64 bf bf-cbc bf-cfb bf-ecb bf-ofb cast cast-cbc cast5-cbc cast5-cfb cast5-ecb cast5-ofb des des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede- cfb des-ede-ofb des-ede3 des-ede3-cbc des-ede3-cfb des-ede3- ofb des-ofb des3 desx rc2 rc2-40-cbc rc2-64-cbc rc2-cbc rc2-cfb rc2-ecb rc2-ofb rc4 rc4-40 % rpm -qal openssl /lib64/libcrypto.so.0.9.7a /lib64/libssl.so.0.9.7a /usr/bin/openssl /usr/share/doc/openssl-0.9.7a /usr/share/doc/openssl-0.9.7a/CHANGES /usr/share/doc/openssl-0.9.7a/FAQ /usr/share/doc/openssl-0.9.7a/INSTALL /usr/share/doc/openssl-0.9.7a/LICENSE /usr/share/doc/openssl-0.9.7a/NEWS /usr/share/doc/openssl-0.9.7a/README /usr/share/doc/openssl-0.9.7a/c-indentation.el /usr/share/doc/openssl-0.9.7a/openssl.txt /usr/share/doc/openssl-0.9.7a/openssl_button.gif /usr/share/doc/openssl-0.9.7a/openssl_button.html /usr/share/doc/openssl-0.9.7a/ssleay.txt /usr/share/man/man1/asn1parse.1ssl.gz /usr/share/man/man1/ca.1ssl.gz /usr/share/man/man1/ciphers.1ssl.gz /usr/share/man/man1/crl.1ssl.gz /usr/share/man/man1/crl2pkcs7.1ssl.gz /usr/share/man/man1/dgst.1ssl.gz /usr/share/man/man1/dhparam.1ssl.gz /usr/share/man/man1/dsa.1ssl.gz /usr/share/man/man1/dsaparam.1ssl.gz /usr/share/man/man1/enc.1ssl.gz /usr/share/man/man1/gendsa.1ssl.gz /usr/share/man/man1/genrsa.1ssl.gz /usr/share/man/man1/md2.1ssl.gz /usr/share/man/man1/md4.1ssl.gz /usr/share/man/man1/md5.1ssl.gz /usr/share/man/man1/mdc2.1ssl.gz /usr/share/man/man1/nseq.1ssl.gz /usr/share/man/man1/ocsp.1ssl.gz /usr/share/man/man1/openssl.1ssl.gz /usr/share/man/man1/pkcs12.1ssl.gz /usr/share/man/man1/pkcs7.1ssl.gz /usr/share/man/man1/pkcs8.1ssl.gz /usr/share/man/man1/req.1ssl.gz /usr/share/man/man1/ripemd160.1ssl.gz /usr/share/man/man1/rsa.1ssl.gz /usr/share/man/man1/rsautl.1ssl.gz /usr/share/man/man1/s_client.1ssl.gz /usr/share/man/man1/s_server.1ssl.gz /usr/share/man/man1/sess_id.1ssl.gz /usr/share/man/man1/sha.1ssl.gz /usr/share/man/man1/sha1.1ssl.gz /usr/share/man/man1/smime.1ssl.gz /usr/share/man/man1/speed.1ssl.gz /usr/share/man/man1/spkac.1ssl.gz /usr/share/man/man1/sslpasswd.1ssl.gz /usr/share/man/man1/sslrand.1ssl.gz /usr/share/man/man1/verify.1ssl.gz /usr/share/man/man1/version.1ssl.gz /usr/share/man/man1/x509.1ssl.gz /usr/share/man/man5/config.5ssl.gz /usr/share/man/man7/DES.7ssl.gz /usr/share/man/man7/Modes.7ssl.gz /usr/share/man/man7/des_modes.7ssl.gz /usr/share/man/man7/of.7ssl.gz /usr/share/ssl /usr/share/ssl/CA /usr/share/ssl/CA/private /usr/share/ssl/cert.pem /usr/share/ssl/certs /usr/share/ssl/certs/Makefile /usr/share/ssl/certs/ca-bundle.crt /usr/share/ssl/certs/make-dummy-cert /usr/share/ssl/lib /usr/share/ssl/misc /usr/share/ssl/misc/CA /usr/share/ssl/misc/c_hash /usr/share/ssl/misc/c_info /usr/share/ssl/misc/c_issuer /usr/share/ssl/misc/c_name /usr/share/ssl/openssl.cnf /usr/share/ssl/private /lib/libcrypto.so.0.9.7a /lib/libssl.so.0.9.7a /usr/bin/openssl /usr/share/doc/openssl-0.9.7a /usr/share/doc/openssl-0.9.7a/CHANGES /usr/share/doc/openssl-0.9.7a/FAQ /usr/share/doc/openssl-0.9.7a/INSTALL /usr/share/doc/openssl-0.9.7a/LICENSE /usr/share/doc/openssl-0.9.7a/NEWS /usr/share/doc/openssl-0.9.7a/README /usr/share/doc/openssl-0.9.7a/c-indentation.el /usr/share/doc/openssl-0.9.7a/openssl.txt /usr/share/doc/openssl-0.9.7a/openssl_button.gif /usr/share/doc/openssl-0.9.7a/openssl_button.html /usr/share/doc/openssl-0.9.7a/ssleay.txt /usr/share/man/man1/asn1parse.1ssl.gz /usr/share/man/man1/ca.1ssl.gz /usr/share/man/man1/ciphers.1ssl.gz /usr/share/man/man1/crl.1ssl.gz /usr/share/man/man1/crl2pkcs7.1ssl.gz /usr/share/man/man1/dgst.1ssl.gz /usr/share/man/man1/dhparam.1ssl.gz /usr/share/man/man1/dsa.1ssl.gz /usr/share/man/man1/dsaparam.1ssl.gz /usr/share/man/man1/enc.1ssl.gz /usr/share/man/man1/gendsa.1ssl.gz /usr/share/man/man1/genrsa.1ssl.gz /usr/share/man/man1/md2.1ssl.gz /usr/share/man/man1/md4.1ssl.gz /usr/share/man/man1/md5.1ssl.gz /usr/share/man/man1/mdc2.1ssl.gz /usr/share/man/man1/nseq.1ssl.gz /usr/share/man/man1/ocsp.1ssl.gz /usr/share/man/man1/openssl.1ssl.gz /usr/share/man/man1/pkcs12.1ssl.gz /usr/share/man/man1/pkcs7.1ssl.gz /usr/share/man/man1/pkcs8.1ssl.gz /usr/share/man/man1/req.1ssl.gz /usr/share/man/man1/ripemd160.1ssl.gz /usr/share/man/man1/rsa.1ssl.gz /usr/share/man/man1/rsautl.1ssl.gz /usr/share/man/man1/s_client.1ssl.gz /usr/share/man/man1/s_server.1ssl.gz /usr/share/man/man1/sess_id.1ssl.gz /usr/share/man/man1/sha.1ssl.gz /usr/share/man/man1/sha1.1ssl.gz /usr/share/man/man1/smime.1ssl.gz /usr/share/man/man1/speed.1ssl.gz /usr/share/man/man1/spkac.1ssl.gz /usr/share/man/man1/sslpasswd.1ssl.gz /usr/share/man/man1/sslrand.1ssl.gz /usr/share/man/man1/verify.1ssl.gz /usr/share/man/man1/version.1ssl.gz /usr/share/man/man1/x509.1ssl.gz /usr/share/man/man5/config.5ssl.gz /usr/share/man/man7/DES.7ssl.gz /usr/share/man/man7/Modes.7ssl.gz /usr/share/man/man7/des_modes.7ssl.gz /usr/share/man/man7/of.7ssl.gz /usr/share/ssl /usr/share/ssl/CA /usr/share/ssl/CA/private /usr/share/ssl/cert.pem /usr/share/ssl/certs /usr/share/ssl/certs/Makefile /usr/share/ssl/certs/ca-bundle.crt /usr/share/ssl/certs/make-dummy-cert /usr/share/ssl/lib /usr/share/ssl/misc /usr/share/ssl/misc/CA /usr/share/ssl/misc/c_hash /usr/share/ssl/misc/c_info /usr/share/ssl/misc/c_issuer /usr/share/ssl/misc/c_name /usr/share/ssl/openssl.cnf /usr/share/ssl/private I've looked through numerous sites on how to set this up, and I'm getting pretty frustrated. I installed this successfully on another machine, also RedHat 4, but the same instructions just don't seem to work. I believe it has to do with the way that openssl and other various utils were installed by the person who set the machine up (I was only brought in when they couldn't get rails working). I know there are many postings about install problems, but if anyone could help me I would really appreciate it.
on 2008-08-06 09:33
on 2008-08-06 09:35
On Aug 5, 11:09 pm, bishop <mphe...@gmail.com> wrote: > I'm working to get Rails properly configured and running on a GNU/ > Linux RedHat4 server. I've been through many, many of the online > documentation sets, and am still stuck on a couple of things, namely > running mongrel throws errors concerning openssl. > I don't know redhat at all, but on debian based distributions, something that often trips people up is that the headers for various libraries are in a separate package from the library itself (ie there will be a libfoo package and then a libfoo-dev package). Fred
on 2008-08-07 19:23
Unfortunately, I have not found *-devel source for openssl.
I have made some progress, but have run into further problems, down
the road.
The problem I solved involves the GNU Linker. Unfortunately, the
problem that I created involves the GNU Linker, as well.
I've modified the Makefile files in:
ext/digest/md5
ext/digest/rmd160
ext/digest/sha1
/ext/openssl
The change is to remove references to .a files, found in the LIBS
variable:
-lcrypt
-lcrypto
-lssl
and hand-add the literal references to .so files (one example - the
openssl makefile):
$(RUBYARCHDIR)/$(DLLIB): $(OBJS)
@-$(RM) $@
@-$(MAKEDIRS) $(@D)
$(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o /lib64/libcrypto.so.4 -
o /lib64/libcrypt.so.1 -o /lib64/libssl.so.4 -o $@ $(OBJS) $
(LOCAL_LIBS) $(LIBS)
This allows the following commands, run from ~/ruby-1.8.6 to execute
without returning an error:
make
make install
However, the openssl library is still not found:
ruby -ropenssl -e "puts :success"
/usr/local/lib/ruby/1.8/x86_64-linux/openssl.so: /usr/local/lib/ruby/
1.8/x86_64-linux/openssl.so: undefined symbol: d2i_PKCS7_SIGNER_INFO
- /usr/local/lib/ruby/1.8/x86_64-linux/openssl.so (LoadError)
from /usr/local/lib/ruby/1.8/openssl.rb:17
...and the launch of the web server still fails:
ruby -d script/server
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:
772 - no such file to load -- rubygems/defaults/operating_system
/usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:241:
warning: `&' interpreted as argument prefix
/usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/rails/
gem_dependency.rb:32: warning: `*' interpreted as argument prefix
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem builder (~> 2.1.2)
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem xml-simple (~> 1.0.11)
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem memcache-client (~> 1.5.0)
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem tzinfo (~> 0.3.8)
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27 - no such file to load -- Win32API
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - no such file to load -- Win32API
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load -- fast_xs
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:34 - no such file to load -- fast_xs
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load --
utf8proc_native
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:34 - no such file to load --
utf8proc_native
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - no such
file to load -- utf8proc_native
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:34 - no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - no such
file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:34 - no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - no such
file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/core_ext/kernel/requires.rb:19
- no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load -- mongrel
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
mongrel-1.1.5/lib/mongrel/gems.rb:7 - no such file to load --
mongrel_experimental
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem mongrel_experimental (>=
1.1.5)
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - /home/m31451/project/test/tmp/cache
Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - /home/m31451/project/test/tmp/pids
Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - /home/m31451/project/test/tmp/sessions
Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - /home/m31451/project/test/tmp/sockets
=> Rails 2.1.0 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:188:
warning: instance variable @host not initialized
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:188:
warning: instance variable @includes not initialized
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
rails.rb:135: warning: instance variable @rails_handler not
initialized
/home/m31451/project/test/config/boot.rb:8: warning: method redefined;
discarding old boot!
/home/m31451/project/test/config/boot.rb:15: warning: method
redefined; discarding old booted?
/home/m31451/project/test/config/boot.rb:19: warning: method
redefined; discarding old pick_boot
/home/m31451/project/test/config/boot.rb:23: warning: method
redefined; discarding old vendor_rails?
/home/m31451/project/test/config/boot.rb:27: warning: method
redefined; discarding old preinitialize
/home/m31451/project/test/config/boot.rb:31: warning: method
redefined; discarding old preinitializer_path
/home/m31451/project/test/config/boot.rb:37: warning: method
redefined; discarding old run
/home/m31451/project/test/config/boot.rb:44: warning: method
redefined; discarding old load_initializer
/home/m31451/project/test/config/boot.rb:51: warning: method
redefined; discarding old load_initializer
/home/m31451/project/test/config/boot.rb:57: warning: method
redefined; discarding old load_rails_gem
/home/m31451/project/test/config/boot.rb:69: warning: method
redefined; discarding old rubygems_version
/home/m31451/project/test/config/boot.rb:73: warning: method
redefined; discarding old gem_version
/home/m31451/project/test/config/boot.rb:83: warning: method
redefined; discarding old load_rubygems
/home/m31451/project/test/config/boot.rb:96: warning: method
redefined; discarding old parse_gem_version
/home/m31451/project/test/config/boot.rb:101: warning: method
redefined; discarding old read_environment_rb
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
validations.rb:284: warning: `*' interpreted as argument prefix
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
callbacks.rb:187: warning: `*' interpreted as argument prefix
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
connection_adapters/abstract/connection_specification.rb:41: warning:
method redefined; discarding old allow_concurrency=
Exception `LoadError' at /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so:0 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so:
undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/
digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/
rails-2.1.0/lib/initializer.rb:225 - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/
1.8/x86_64-linux/digest/md5.so
Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:505 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exiting
Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
/usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:
225:in `require_frameworks': /usr/local/lib/ruby/1.8/x86_64-linux/
digest/md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/
x86_64-linux/digest/md5.so (RuntimeError)
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/
initializer.rb:113:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/
initializer.rb:93:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/
initializer.rb:93:in `run'
from /home/m31451/project/test/config/environment.rb:13
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:354:in `new_constants_in'
... 22 levels...
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/
commands/server.rb:39
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
from script/server:3
I believe that I have essentially "pushed the linking problem up the
chain," rather than fixing it.
I believe that the proper fix is to modify the arguments to:
ruby-1.8.6 % ./configure <arguments here>
so that the Makefiles for each directory "do the right thing" and work
solely with 64-bit shared object files.
I've looked at the configure script, and found it to be autogenerated
by GNU Autoconf.
There are a few spots in the file that appear to be related to library
settings, but the format does not
lend itself to easy analysis.
Just an update.
On Aug 6, 3:34 am, Frederick Cheung <frederick.che...@gmail.com>
on 2008-08-07 19:33
On 7 Aug 2008, at 18:22, bishop wrote: > > Unfortunately, I have not found *-devel source for openssl. > Where are your openssl headers? Maybe you just need to tell ruby where they are (when you build the openssl ruby library) Fred
on 2008-08-08 16:18
I believe my openssl headers are here:
ls -1 /usr/local/include/openssl
aes.h
asn1.h
asn1_mac.h
asn1t.h
bio.h
blowfish.h
bn.h
buffer.h
cast.h
comp.h
conf_api.h
conf.h
crypto.h
des.h
des_old.h
dh.h
dsa.h
dso.h
dtls1.h
ebcdic.h
ecdh.h
ecdsa.h
ec.h
engine.h
e_os2.h
err.h
evp.h
hmac.h
idea.h
krb5_asn.h
kssl.h
lhash.h
md2.h
md4.h
md5.h
objects.h
obj_mac.h
ocsp.h
opensslconf.h
opensslv.h
ossl_typ.h
pem2.h
pem.h
pkcs12.h
pkcs7.h
pq_compat.h
pqueue.h
rand.h
rc2.h
rc4.h
ripemd.h
rsa.h
safestack.h
sha.h
ssl23.h
ssl2.h
ssl3.h
ssl.h
stack.h
store.h
symhacks.h
tls1.h
tmdiff.h
txt_db.h
ui_compat.h
ui.h
x509.h
x509v3.h
x509_vfy.h
I call configure this way:
./configure --with-openssl=/usr/local/include/openssl --with-zlib
make
# above make invocation fails because I need to hand-modify the
Makefiles for:
# ext/digest/md5
# ext/digest/rmd160
# ext/digest/sha1
# ext/openssl
# I modify these Makefiles to look for .so files rather than .a files
for crypt and crypto libraries, and the make succeeds
make install
Unfortunately, ruby still cannot find openssl:
ruby -ropenssl -e "puts :success"
/usr/local/lib/ruby/1.8/x86_64-linux/openssl.so: /usr/local/lib/ruby/
1.8/x86_64-linux/openssl.so: undefined symbol: d2i_PKCS7_SIGNER_INFO
- /usr/local/lib/ruby/1.8/x86_64-linux/openssl.so (LoadError)
from /usr/local/lib/ruby/1.8/openssl.rb:17
...and the web server fails to run:
ruby -d script/server
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:
772 - no such file to load -- rubygems/defaults/operating_system/usr/
local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:241:
warning: `&' interpreted as argument prefix
/usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/rails/
gem_dependency.rb:32: warning: `*' interpreted as argument prefix
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem builder (~> 2.1.2)
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem xml-simple (~> 1.0.11)
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem memcache-client (~> 1.5.0)
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem tzinfo (~> 0.3.8)
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27 - no such file to load -- Win32API
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - no such file to load -- Win32API
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load -- fast_xs
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:34 - no such file to load -- fast_xs
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load --
utf8proc_native
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:34 - no such file to load --
utf8proc_native
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - no such
file to load -- utf8proc_native
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:34 - no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - no such
file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:34 - no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - no such
file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/core_ext/kernel/requires.rb:19
- no such file to load -- fcgi
Exception `MissingSourceFile' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems/custom_require.rb:27 - no such file to load -- mongrel
Exception `MissingSourceFile' at /usr/local/lib/ruby/gems/1.8/gems/
mongrel-1.1.5/lib/mongrel/gems.rb:7 - no such file to load --
mongrel_experimental
Exception `Gem::LoadError' at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:578 - Could not find RubyGem mongrel_experimental (>=
1.1.5)
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - /home/m31451/project/test/tmp/cache
Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - /home/m31451/project/test/tmp/pids
Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - /home/m31451/project/test/tmp/sessions
Exception `Errno::EEXIST' at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - /home/m31451/project/test/tmp/sockets
=> Rails 2.1.0 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:188:
warning: instance variable @host not initialized
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:188:
warning: instance variable @includes not initialized
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/
rails.rb:135: warning: instance variable @rails_handler not
initialized
/home/m31451/project/test/config/boot.rb:8: warning: method redefined;
discarding old boot!
/home/m31451/project/test/config/boot.rb:15: warning: method
redefined; discarding old booted?
/home/m31451/project/test/config/boot.rb:19: warning: method
redefined; discarding old pick_boot
/home/m31451/project/test/config/boot.rb:23: warning: method
redefined; discarding old vendor_rails?
/home/m31451/project/test/config/boot.rb:27: warning: method
redefined; discarding old preinitialize
/home/m31451/project/test/config/boot.rb:31: warning: method
redefined; discarding old preinitializer_path
/home/m31451/project/test/config/boot.rb:37: warning: method
redefined; discarding old run
/home/m31451/project/test/config/boot.rb:44: warning: method
redefined; discarding old load_initializer
/home/m31451/project/test/config/boot.rb:51: warning: method
redefined; discarding old load_initializer
/home/m31451/project/test/config/boot.rb:57: warning: method
redefined; discarding old load_rails_gem
/home/m31451/project/test/config/boot.rb:69: warning: method
redefined; discarding old rubygems_version
/home/m31451/project/test/config/boot.rb:73: warning: method
redefined; discarding old gem_version
/home/m31451/project/test/config/boot.rb:83: warning: method
redefined; discarding old load_rubygems
/home/m31451/project/test/config/boot.rb:96: warning: method
redefined; discarding old parse_gem_version
/home/m31451/project/test/config/boot.rb:101: warning: method
redefined; discarding old read_environment_rb
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
validations.rb:284: warning: `*' interpreted as argument prefix
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
callbacks.rb:187: warning: `*' interpreted as argument prefix
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
connection_adapters/abstract/connection_specification.rb:41: warning:
method redefined; discarding old allow_concurrency=
Exception `LoadError' at /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so:0 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so:
undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/
digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:34 - /usr/local/lib/ruby/1.8/x86_64-linux/digest/
md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so
Exception `LoadError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/
rails-2.1.0/lib/initializer.rb:225 - /usr/local/lib/ruby/1.8/x86_64-
linux/digest/md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/
1.8/x86_64-linux/digest/md5.so
Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:505 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
Exiting
Exception `RuntimeError' at /usr/local/lib/ruby/gems/1.8/gems/
activesupport-2.1.0/lib/active_support/dependencies.rb:512 - /usr/
local/lib/ruby/1.8/x86_64-linux/digest/md5.so: undefined symbol:
MD5_Init - /usr/local/lib/ruby/1.8/x86_64-linux/digest/md5.so
/usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:
225:in `require_frameworks': /usr/local/lib/ruby/1.8/x86_64-linux/
digest/md5.so: undefined symbol: MD5_Init - /usr/local/lib/ruby/1.8/
x86_64-linux/digest/md5.so (RuntimeError)
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/
initializer.rb:113:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/
initializer.rb:93:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/
initializer.rb:93:in `run'
from /home/m31451/project/test/config/environment.rb:13
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:354:in `new_constants_in'
... 22 levels...
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/
commands/server.rb:39
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
from script/server:3
I am now focused on the ext/openssl directory, which has some warnings
in its own individual make:
cd ext/openssl
make clean
make
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_x509req.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_config.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_pkcs7.c
ossl_pkcs7.c: In function `ossl_pkcs7si_new':
ossl_pkcs7.c:90: warning: passing arg 2 of `ASN1_dup' from
incompatible pointer type
ossl_pkcs7.c: In function `DupPKCS7SignerPtr':
ossl_pkcs7.c:103: warning: passing arg 2 of `ASN1_dup' from
incompatible pointer type
ossl_pkcs7.c: In function `ossl_pkcs7ri_new':
ossl_pkcs7.c:116: warning: passing arg 2 of `ASN1_dup' from
incompatible pointer type
ossl_pkcs7.c: In function `DupPKCS7RecipientPtr':
ossl_pkcs7.c:129: warning: passing arg 2 of `ASN1_dup' from
incompatible pointer type
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_pkcs12.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_x509.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_engine.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_pkey_dh.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_x509store.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_x509cert.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_x509attr.c
ossl_x509attr.c: In function `ossl_x509attr_initialize':
ossl_x509attr.c:100: warning: passing arg 2 of `d2i_X509_ATTRIBUTE'
from incompatible pointer type
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_ns_spki.c
ossl_ns_spki.c: In function `ossl_spki_initialize':
ossl_ns_spki.c:67: warning: passing arg 2 of `d2i_NETSCAPE_SPKI' from
incompatible pointer type
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_hmac.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_rand.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_pkey_rsa.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_ssl.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_asn1.c
ossl_asn1.c: In function `decode_bool':
ossl_asn1.c:313: warning: passing arg 2 of `d2i_ASN1_BOOLEAN' from
incompatible pointer type
ossl_asn1.c: In function `decode_int':
ossl_asn1.c:328: warning: passing arg 2 of `d2i_ASN1_INTEGER' from
incompatible pointer type
ossl_asn1.c: In function `decode_bstr':
ossl_asn1.c:347: warning: passing arg 2 of `d2i_ASN1_BIT_STRING' from
incompatible pointer type
ossl_asn1.c: In function `decode_enum':
ossl_asn1.c:373: warning: passing arg 2 of `d2i_ASN1_ENUMERATED' from
incompatible pointer type
ossl_asn1.c: In function `decode_null':
ossl_asn1.c:390: warning: passing arg 2 of `d2i_ASN1_NULL' from
incompatible pointer type
ossl_asn1.c: In function `decode_obj':
ossl_asn1.c:407: warning: passing arg 2 of `d2i_ASN1_OBJECT' from
incompatible pointer type
ossl_asn1.c: In function `decode_time':
ossl_asn1.c:435: warning: passing arg 2 of `d2i_ASN1_TIME' from
incompatible pointer type
ossl_asn1.c: In function `ossl_asn1_get_asn1type':
ossl_asn1.c:503: warning: cast to pointer from integer of different
size
ossl_asn1.c: In function `ossl_asn1_decode0':
ossl_asn1.c:727: warning: passing arg 1 of `ASN1_get_object' from
incompatible pointer type
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_x509ext.c
ossl_x509ext.c: In function `ossl_x509ext_initialize':
ossl_x509ext.c:285: warning: passing arg 2 of `d2i_X509_EXTENSION'
from incompatible pointer type
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_cipher.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_x509crl.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_x509revoked.c
ossl_x509revoked.c: In function `ossl_x509revoked_new':
ossl_x509revoked.c:48: warning: passing arg 2 of `ASN1_dup' from
incompatible pointer type
ossl_x509revoked.c: In function `DupX509RevokedPtr':
ossl_x509revoked.c:64: warning: passing arg 2 of `ASN1_dup' from
incompatible pointer type
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_x509name.c
ossl_x509name.c: In function `ossl_x509name_initialize':
ossl_x509name.c:135: warning: passing arg 2 of `d2i_X509_NAME' from
incompatible pointer type
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c openssl_missing.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_bio.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_digest.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_ocsp.c
ossl_ocsp.c: In function `ossl_ocspreq_initialize':
ossl_ocsp.c:114: warning: passing arg 2 of `d2i_OCSP_REQUEST' from
incompatible pointer type
ossl_ocsp.c: In function `ossl_ocspres_initialize':
ossl_ocsp.c:321: warning: passing arg 2 of `d2i_OCSP_RESPONSE' from
incompatible pointer type
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_bn.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_pkey.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=
\"extconf.h\" -fPIC -g -O2 -c ossl_pkey_dsa.c
ossl_pkey_dsa.c: In function `ossl_dsa_initialize':
ossl_pkey_dsa.c:141: warning: passing arg 1 of `PEM_ASN1_read_bio'
from incompatible pointer type
ossl_pkey_dsa.c:141: warning: passing arg 4 of `PEM_ASN1_read_bio'
from incompatible pointer type
ossl_pkey_dsa.c: In function `ossl_dsa_to_public_key':
ossl_pkey_dsa.c:313: warning: passing arg 2 of `ASN1_dup' from
incompatible pointer type
gcc -shared -rdynamic -Wl,-export-dynamic -L'../..' -o /lib64/
libcrypto.so.4 -o /lib64/libcrypt.so.1 -o /lib64/libssl.so.4 -
o ../../.ext/x86_64-linux/openssl.so ossl_x509req.o ossl_config.o
ossl_pkcs7.o ossl_pkcs12.o ossl.o ossl_x509.o ossl_engine.o
ossl_pkey_dh.o ossl_x509store.o ossl_x509cert.o ossl_x509attr.o
ossl_ns_spki.o ossl_hmac.o ossl_rand.o ossl_pkey_rsa.o ossl_ssl.o
ossl_asn1.o ossl_x509ext.o ossl_cipher.o ossl_x509crl.o
ossl_x509revoked.o ossl_x509name.o openssl_missing.o ossl_bio.o
ossl_digest.o ossl_ocsp.o ossl_bn.o ossl_pkey.o ossl_pkey_dsa.o -ldl -
lm -lc
The Makefile under ext/openssl has the following values for
architecture:
arch = x86_64-linux
sitearch = x86_64-linux
I wonder if these values are incorrect, somehow.
uname -a
Linux ???????.?????.??? 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:58:43
EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
On Aug 7, 1:31 pm, Frederick Cheung <frederick.che...@gmail.com>
on 2008-09-12 19:58
I resolved this problem. It did not involve the fact that the machine was 64-bit. I had to re-install openssl, before ruby would install well enough to run rails. Here are my steps. [root@????????]# uname -a Linux ???.???.??? 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux #install openssl from source http://www.openssl.org/source/openssl-0.9.8h.tar.gz ./config shared make make test make install cp /usr/local/ssl/lib/libssl.so.0.9.8 /lib rm /lib/libssl.so.4 ln -s /lib/libssl.so.0.9.8 /lib/libssl.so.4 ldconfig #install and configure zlib cd /apps tar xjvf zlib-1.2.3.tar.bz2 ./configure --shared make make test make install vi /etc/ld.so.conf.d/zlib-1.2.3.conf #insert the value, /usr/local/lib, in the file, on a single line ldconfig cp /apps/zlib-1.2.3/zutil.h /usr/local/include cp /apps/zlib-1.2.3/zutil.c /usr/local/include #install ruby cd /apps/ruby-1.8.6 make clean ./configure --prefix=/usr --with-openssl-dir=/usr/local/ssl --with- openssl-include=/usr/lo\cal/ssl/include make make test make install #install rubygems cd /apps/rubygems-1.2.0 ruby setup.rb #update your gems gem update gem install rails #run a basic rails server to verify that it works cd /apps mkdir test rails /apps/test cd /apps/test script/server # open a browser to localhost:3000 to verify the WebBrick rails server is running # installing gems for mongrel... gem install activesupport gem install activerecord gem install actionpack gem install actionmailer gem install activeresource gem install gem_plugin gem install rails gem install daemons gem install fastthread gem install cgi_multipart_eof_fix gem install mongrel # running mongrel... cd /apps/test mongrel_rails start
on 2008-12-28 21:56
Finally got it http://markmail.org/message/fiw7dupsgejaqvui michael_teter had the answer cd into ruby-1.8.7.../ext/openssl AFTER installing Ruby THEN ruby extconf.rb --with-openssl-include=/usr/local/ssl/include --with-openssl-lib=/usr/local/ssl/lib make sudo make install then start using Ruby
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.