[csw-users] Error buiding ruby gem sys-proctable (missing procfs.h)

Mohamed Lrhazi lrhazi at gmail.com
Thu Apr 7 03:09:44 CEST 2011


Here is the info:

[root at albany csw]$ pkgparam CSWruby18 VERSION
pkgparam: ERROR: unable to locate parameter information for "CSWruby18"
[root at albany csw]$ pkg-get -l|grep ruby
libruby1
ruby
rubydev
rubygems
[root at albany csw]$ pkginfo CSWruby
application CSWruby ruby - An object-oriented language for quick and
easy programming.
[root at albany csw]$ pkginfo -l CSWruby
   PKGINST:  CSWruby
      NAME:  ruby - An object-oriented language for quick and easy programming.
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  1.8.7p302,REV=2010.12.04
   BASEDIR:  /
    VENDOR:  ftp://ftp.ruby-lang.org/pub/ruby/ packaged for CSW by Ben Walton
    PSTAMP:  bwalton at current9s-20101204182920
  INSTDATE:  Mar 28 2011 16:23
   HOTLINE:  http://www.opencsw.org/bugtrack/
     EMAIL:  bwalton at opencsw.org
    STATUS:  completely installed
     FILES:      674 installed pathnames
                   8 shared pathnames
                  87 directories
                  35 executables
                9835 blocks used (approx)


I had no 'make" in my path, so I set it:

[root at albany csw]$ which make
no make in /opt/csw/bin /opt/csw/sbin /opt/openssh/bin /usr/bin /bin
/usr/sbin /sbin /usr/ucb /usr/local/bin /usr/bin/X11 /etc
/opt/EMCpower/bin/64 /etc/emc/bin
[root at albany csw]$ /opt/csw/gnu/make
[root at albany csw]$ export PATH=/opt/csw/gnu:$PATH/sbin:$PATH
[root at albany csw]$ which make
/opt/csw/gnu/make
[root at albany csw]$ ch)`gem ': gem install  --no-rdoc --no-ri sys-proctable
Building native extensions.  This could take a while...
ERROR:  Error installing sys-proctable:
        ERROR: Failed to build gem native extension.

/opt/csw/bin/ruby extconf.rb
checking for rb_pid_t in ruby.h... yes
checking for procfs.h... no
creating Makefile

make
/opt/csw/gcc4/bin/gcc -I. -I/opt/csw/lib/ruby/1.8/sparc-solaris2.9
-I/opt/csw/lib/ruby/1.8/sparc-solaris2.9 -I. -DHAVE_TYPE_RB_PID_T
-I/opt/csw/include -D_FILE_OFFSET_BITS=64  -fPIC -O2 -pipe -mcpu=v8
-fPIC   -c proctable.c
proctable.c: In function 'proctable_ps':
proctable.c:224: error: 'as_file' undeclared (first use in this function)
proctable.c:224: error: (Each undeclared identifier is reported only once
proctable.c:224: error: for each function it appears in.)
make: *** [proctable.o] Error 1


Last command you asked for:

[root at albany csw]$ alternatives --display rbconfig18
Installed alternatives for rbconfig18 are:


Thanks a lot.




On Wed, Apr 6, 2011 at 8:59 PM, Ben Walton <bwalton at opencsw.org> wrote:
> Excerpts from Mohamed Lrhazi's message of Wed Apr 06 20:15:06 -0400 2011:
>
> Hi Mohamed,
>
>> What do I need to install to get this to work:
>
> Are you running the current ruby version?  Can you provide the output
> of the following please:
>
> pkgparam CSWruby18 VERSION
> which make
> alternatives --display rbconfig18
>
> Thanks
> -Ben
> --
> Ben Walton
> Systems Programmer - CHASS
> University of Toronto
> C:416.407.5610 | W:416.978.4302
>
> _______________________________________________
> users mailing list
> users at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/users
>


More information about the users mailing list