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 bygem 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
- stub files created by RubyGems 0.7.x and older are no longer
-
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.
- Now completely matches the output of
-
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:
- DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
- UNPACK INTO A DIRECTORY AND CD THERE
- 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
ExceptionLoadError' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionMissingSourceFile' 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
ExceptionRuntimeError' 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
ExceptionRuntimeError' 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
ExceptionRuntimeError' 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:inprocess' 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:inrun' 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:inrequire' 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:inn\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.