From: Justin Rich Date: 2008-01-25T05:40:26+09:00 Subject: Troubles building 1.8.6 on Solaris 10 ------=_Part_27837_10249748.1201207227375 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi everyone, I am having a problem installing Ruby properly on an x86 Solaris 10 machine. I appreciate any help. uname -a SunOS lambda 5.10 Generic_120012-14 i86pc i386 i86pc Downloaded ruby 1.8.6 (2007-09-24 patchlevel 111) and configured it with... ./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr/local Used make and make install to install ruby to /usr/local/bin and there were no errors during installation. When I try to install rubygems or run the following command... ruby -e "require 'thread'" This error pops up... /usr/local/lib/ruby/1.8/i386-solaris2.10/thread.so: ld.so.1: ruby: fatal: libgcc_s.so.1: open failed: No such file or directory - /usr/local/lib/ruby/1.8/i386-solaris2.10/thread.so (LoadError) from /usr/local/lib/ruby/1.8/thread.rb:5 from -e:1:in `require' from -e:1 And /usr/local/lib/ruby/1.8/i386-solaris2.10/thread.so most certainly exists. I'm not sure what to try next. Different versions of 1.8.6 are failing similarly. Thanks, Justin The output of the ./configure was ... checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking target system type... i386-pc-solaris2.10 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for egrep... egrep checking whether gcc needs -traditional... no checking whether the linker is GNU ld... no checking whether gcc -E accepts -o... yes checking for bison... bison -y checking for ranlib... ranlib checking for ar... ar checking for as... as checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /opt/csw/bin/ginstall -c checking for AIX... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking for long long... yes checking for off_t... yes checking for int... yes checking size of int... 4 checking for short... yes checking size of short... 2 checking for long... yes checking size of long... 4 checking for long long... (cached) yes checking size of long long... 8 checking for __int64... no checking size of __int64... 0 checking for off_t... (cached) yes checking size of off_t... 8 checking for void*... yes checking size of void*... 4 checking for float... yes checking size of float... 4 checking for double... yes checking size of double... 8 checking for time_t... yes checking size of time_t... 4 checking for pid_t... yes checking for gid_t... yes checking for uid_t... yes checking for prototypes... yes checking token paste string... ansi checking for variable length prototypes and stdarg.h... yes checking for noreturn function attribute... __attribute__ ((noreturn)) x checking for noinline function attribute... __attribute__ ((noinline)) x checking for RUBY_EXTERN... no checking whether sys_nerr is declared... no checking for crypt in -lcrypt... yes checking for dlopen in -ldl... yes checking for shl_load in -ldld... no checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/syscall.h usability... yes checking sys/syscall.h presence... yes checking for sys/syscall.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/fcntl.h usability... yes checking sys/fcntl.h presence... yes checking for sys/fcntl.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking syscall.h usability... no checking syscall.h presence... no checking for syscall.h... no checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking a.out.h usability... no checking a.out.h presence... no checking for a.out.h... no checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking for memory.h... (cached) yes checking direct.h usability... no checking direct.h presence... no checking for direct.h... no checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/mkdev.h usability... yes checking sys/mkdev.h presence... yes checking for sys/mkdev.h... yes checking sys/utime.h usability... yes checking sys/utime.h presence... yes checking for sys/utime.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking ieeefp.h usability... yes checking ieeefp.h presence... yes checking for ieeefp.h... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking ucontext.h usability... yes checking ucontext.h presence... yes checking for ucontext.h... yes checking intrinsics.h usability... no checking intrinsics.h presence... no checking for intrinsics.h... no checking sys/sdt.h usability... yes checking sys/sdt.h presence... yes checking for sys/sdt.h... yes checking for rlim_t... yes checking size of rlim_t... 8 checking for size_t... yes checking for struct stat.st_blksize... yes checking for struct stat.st_blocks... yes checking for struct stat.st_rdev... yes checking for uid_t in sys/types.h... (cached) yes checking type of array argument to getgroups... gid_t checking return type of signal handlers... void checking for working alloca.h... yes checking for alloca... yes checking for working memcmp... yes checking for _LARGEFILE_SOURCE value needed for large files... no checking for fseeko... yes checking for ftello... yes checking for dup2... yes checking for memmove... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strerror... yes checking for strftime... yes checking for strchr... yes checking for strstr... yes checking for strtoul... yes checking for crypt... yes checking for flock... no checking for vsnprintf... yes checking for isnan... yes checking for finite... yes checking for isinf... no checking for hypot... yes checking for acosh... yes checking for erf... yes checking for fmod... yes checking for killpg... yes checking for wait4... yes checking for waitpid... yes checking for syscall... yes checking for chroot... yes checking for fsync... yes checking for getcwd... yes checking for eaccess... no checking for truncate... yes checking for chsize... no checking for times... yes checking for utimes... yes checking for fcntl... yes checking for lockf... yes checking for lstat... yes checking for symlink... yes checking for link... yes checking for readlink... yes checking for setitimer... yes checking for setruid... no checking for seteuid... yes checking for setreuid... yes checking for setresuid... no checking for setproctitle... no checking for setrgid... no checking for setegid... yes checking for setregid... yes checking for setresgid... no checking for issetugid... yes checking for pause... yes checking for lchown... yes checking for lchmod... no checking for getpgrp... yes checking for setpgrp... yes checking for getpgid... yes checking for setpgid... yes checking for initgroups... yes checking for getgroups... yes checking for setgroups... yes checking for getpriority... yes checking for getrlimit... yes checking for setrlimit... yes checking for sysconf... yes checking for dlopen... yes checking for sigprocmask... yes checking for sigaction... yes checking for _setjmp... yes checking for setsid... yes checking for telldir... yes checking for seekdir... yes checking for fchmod... yes checking for mktime... yes checking for timegm... no checking for cosh... yes checking for sinh... yes checking for tanh... yes checking for setuid... yes checking for setgid... yes checking for setenv... yes checking for unsetenv... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... no checking for tzname... yes checking for struct tm.tm_gmtoff... no checking for external int daylight... yes checking for negative time_t for gmtime(3)... yes checking whether getpgrp requires zero arguments... yes checking whether setpgrp takes no argument... yes checking whether byte ordering is bigendian... no checking for an ANSI C-conforming const... yes checking whether char is unsigned... no checking for inline... inline checking for working volatile... yes checking whether right shift preserve sign bit... yes checking read count field in FILE structures... _cnt checking read buffer ptr field in FILE structures... _ptr checking whether need to seek between R/W... yes checking whether st_ino is huge... yes checking whether _SC_CLK_TCK is supported... yes checking stack growing direction... (cached) -1 checking for pthread_kill in -lpthread... yes checking for nanosleep... no checking for nanosleep in -lrt... yes checking for getcontext... yes checking for setcontext... yes checking whether ELF binaries are produced... yes checking whether OS depend dynamic link works... yes checking for nroff... /usr/bin/nroff config.h unchanged configure: creating ./config.status config.status: creating Makefile ------=_Part_27837_10249748.1201207227375 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi everyone,

I am having a problem installing Ruby properly on an x86 Solaris 10 machine. I appreciate any help.

  uname -a
  SunOS lambda 5.10 Generic_120012-14 i86pc i386 i86pc

Downloaded ruby 1.8.6 (2007-09-24 patchlevel 111) and configured it with...
  ./configure --prefix=/usr/local --enable-pthread --with-readline-dir=/usr/local

Used make and make install to install ruby to /usr/local/bin and there were no errors during installation. 

When I try to install rubygems or run the following command...
 ruby -e "require 'thread'"
 
This error pops up...
  /usr/local/lib/ruby/1.8/i386-solaris2.10/thread.so: ld.so.1: ruby: fatal: libgcc_s.so.1: open failed: No such file or directory - /usr/local/lib/ruby/1.8/i386-solaris2.10/thread.so (LoadError)
          from /usr/local/lib/ruby/1.8/thread.rb:5
          from -e:1:in `require'
          from -e:1
And /usr/local/lib/ruby/1.8/i386-solaris2.10/thread.so most certainly exists.

I'm not sure what to try next. Different versions of 1.8.6 are failing similarly.

Thanks,
Justin

The output of the ./configure was ...

checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... egrep
checking whether gcc needs -traditional... no
checking whether the linker is GNU ld... no
checking whether gcc -E accepts -o... yes
checking for bison... bison -y
checking for ranlib... ranlib
checking for ar... ar
checking for as... as
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for long long... yes
checking for off_t... yes
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for long long... (cached) yes
checking size of long long... 8
checking for __int64... no
checking size of __int64... 0
checking for off_t... (cached) yes
checking size of off_t... 8
checking for void*... yes
checking size of void*... 4
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking for time_t... yes
checking size of time_t... 4
checking for pid_t... yes
checking for gid_t... yes
checking for uid_t... yes
checking for prototypes... yes
checking token paste string... ansi
checking for variable length prototypes and stdarg.h... yes
checking for noreturn function attribute... __attribute__ ((noreturn)) x
checking for noinline function attribute... __attribute__ ((noinline)) x
checking for RUBY_EXTERN... no
checking whether sys_nerr is declared... no
checking for crypt in -lcrypt... yes
checking for dlopen in -ldl... yes
checking for shl_load in -ldld... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking syscall.h usability... no
checking syscall.h presence... no
checking for syscall.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking a.out.h usability... no
checking a.out.h presence... no
checking for a.out.h... no
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for memory.h... (cached) yes
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/mkdev.h usability... yes
checking sys/mkdev.h presence... yes
checking for sys/mkdev.h... yes
checking sys/utime.h usability... yes
checking sys/utime.h presence... yes
checking for sys/utime.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking ieeefp.h usability... yes
checking ieeefp.h presence... yes
checking for ieeefp.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking intrinsics.h usability... no
checking intrinsics.h presence... no
checking for intrinsics.h... no
checking sys/sdt.h usability... yes
checking sys/sdt.h presence... yes
checking for sys/sdt.h... yes
checking for rlim_t... yes
checking size of rlim_t... 8
checking for size_t... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_rdev... yes
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... gid_t
checking return type of signal handlers... void
checking for working alloca.h... yes
checking for alloca... yes
checking for working memcmp... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... yes
checking for ftello... yes
checking for dup2... yes
checking for memmove... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strerror... yes
checking for strftime... yes
checking for strchr... yes
checking for strstr... yes
checking for strtoul... yes
checking for crypt... yes
checking for flock... no
checking for vsnprintf... yes
checking for isnan... yes
checking for finite... yes
checking for isinf... no
checking for hypot... yes
checking for acosh... yes
checking for erf... yes
checking for fmod... yes
checking for killpg... yes
checking for wait4... yes
checking for waitpid... yes
checking for syscall... yes
checking for chroot... yes
checking for fsync... yes
checking for getcwd... yes
checking for eaccess... no
checking for truncate... yes
checking for chsize... no
checking for times... yes
checking for utimes... yes
checking for fcntl... yes
checking for lockf... yes
checking for lstat... yes
checking for symlink... yes
checking for link... yes
checking for readlink... yes
checking for setitimer... yes
checking for setruid... no
checking for seteuid... yes
checking for setreuid... yes
checking for setresuid... no
checking for setproctitle... no
checking for setrgid... no
checking for setegid... yes
checking for setregid... yes
checking for setresgid... no
checking for issetugid... yes
checking for pause... yes
checking for lchown... yes
checking for lchmod... no
checking for getpgrp... yes
checking for setpgrp... yes
checking for getpgid... yes
checking for setpgid... yes
checking for initgroups... yes
checking for getgroups... yes
checking for setgroups... yes
checking for getpriority... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for sysconf... yes
checking for dlopen... yes
checking for sigprocmask... yes
checking for sigaction... yes
checking for _setjmp... yes
checking for setsid... yes
checking for telldir... yes
checking for seekdir... yes
checking for fchmod... yes
checking for mktime... yes
checking for timegm... no
checking for cosh... yes
checking for sinh... yes
checking for tanh... yes
checking for setuid... yes
checking for setgid... yes
checking for setenv... yes
checking for unsetenv... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... no
checking for tzname... yes
checking for struct tm.tm_gmtoff... no
checking for external int daylight... yes
checking for negative time_t for gmtime(3)... yes
checking whether getpgrp requires zero arguments... yes
checking whether setpgrp takes no argument... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking whether char is unsigned... no
checking for inline... inline
checking for working volatile... yes
checking whether right shift preserve sign bit... yes
checking read count field in FILE structures... _cnt
checking read buffer ptr field in FILE structures... _ptr
checking whether need to seek between R/W... yes
checking whether st_ino is huge... yes
checking whether _SC_CLK_TCK is supported... yes
checking stack growing direction... (cached) -1
checking for pthread_kill in -lpthread... yes
checking for nanosleep... no
checking for nanosleep in -lrt... yes
checking for getcontext... yes
checking for setcontext... yes
checking whether ELF binaries are produced... yes
checking whether OS depend dynamic link works... yes
checking for nroff... /usr/bin/nroff
config.h unchanged
configure: creating ./config.status
config.status: creating Makefile

------=_Part_27837_10249748.1201207227375--