Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jan 2005 15:25:20 -0500
From:      "Haulmark, Chris" <chris@sigd.net>
To:        <freebsd-questions@freebsd.org>
Subject:   Portupgrade - Ruby error 
Message-ID:  <6FC9F9894A9F8C49A722CF9F2132FC2202E1AD06@ms05.mailstreet2003.net>

next in thread | raw e-mail | index | archive | help
Having problems using Portupgrade utilities because of Ruby.

It started last Friday and I waited for the weekend just in case the cvs =
tree will get updated with a possible fix.

Output of error is..

%portversion
/usr/local/lib/ruby/site_ruby/1.6/dl/types.rb:172:in `encode_type': =
unknown type: const char *. (TypeError)
        from /usr/local/lib/ruby/site_ruby/1.6/dl/import.rb:138:in =
`import'
        from /usr/local/lib/ruby/site_ruby/1.6/dl/import.rb:65:in =
`extern'
        from /usr/local/lib/ruby/site_ruby/1.6/pkgmisc.rb:85
        from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:5:in `require'
        from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:5
        from /usr/local/lib/ruby/site_ruby/1.6/pkg.rb:3:in `require'
        from /usr/local/lib/ruby/site_ruby/1.6/pkg.rb:3
        from /usr/local/lib/ruby/site_ruby/1.6/pkgtools.rb:24:in =
`require'
        from /usr/local/lib/ruby/site_ruby/1.6/pkgtools.rb:24
        from /usr/local/sbin/portversion:35:in `require'
        from /usr/local/sbin/portversion:35
%

It happens same for using portupgrade too.

I tried to google this and discovered that it is possible a ruby =
developer problem. The cvs tree was updated just recently and I tried to =
reinstall just to be sure.  I did this by deinstalling both ruby and =
portupgrade.  After I deinstalled ruby, I deleted the directory, =
/usr/local/lib/ruby.

I only installed portupgrade which installed ruby by "cd =
/usr/ports/sysutils/portupgrade/ ; make clean ; make install".

I still have this ruby problem above.

%pkg_info | grep portupgrade
portupgrade-20041226_1 FreeBSD ports/packages administration and =
management tool s
%pkg_info | grep ruby
ruby-1.6.8.2004.07.28_1 An object-oriented interpreted scripting =
language
ruby16-bdb1-0.2.2   Ruby interface to Berkeley DB revision 1.8x with =
full featu
ruby16-shim-ruby18-1.8.1.p3 A set of Ruby modules to provide Ruby 1.8 =
functionalities
%uname -a
FreeBSD xxxxxxxx.org 4.10-STABLE FreeBSD 4.10-STABLE #0: Fri Sep 17 =
18:57:24 CDT 2004     admin@haulmark02:/usr/obj/usr/src/sys/HAULMARK02  =
i386
%


Any advices on how I can look into resolving this problem?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6FC9F9894A9F8C49A722CF9F2132FC2202E1AD06>