Skip to content

Manual installation of the library under Ruby 1.8.7 Enterprise Edition #2

@christian

Description

@christian

Hello,

I'm trying to compile the library manually. When I try rake compile, this is the result I get:

➜  libarchive-ruby git:(master) rake compile
(in /Users/cristi/Downloads/libarchive-ruby)
cd ext
/Users/cristi/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby extconf.rb
checking for main() in -larchive... yes
checking for archive.h... yes
checking for rb_string_value_cstr() in ruby.h... yes
checking for RETURN_ENUMERATOR in ruby.h... yes
creating Makefile
make
g++ -I. -I. -I/Users/cristi/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/i686-darwin10.4.0 -I. -DHAVE_RB_STRING_VALUE_CSTR  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -g -O2  -pipe -fno-common  -Wall   -c archive.cpp
archive.cpp: In function ‘VALUE Archive_each_block(archive*)’:
archive.cpp:378: error: ‘rb_proc_arity’ was not declared in this scope
archive.cpp: In function ‘VALUE Archive_map_block(write_obj*)’:
archive.cpp:568: error: ‘rb_proc_arity’ was not declared in this scope
make: *** [archive.o] Error 1
rake aborted!
Command failed with status (2): [make...]
/Users/cristi/Downloads/libarchive-ruby/Rakefile.rb:77

I'm using Ruby 1.8.7 Enterprise Edition. When trying to install via Rubygems, it works but when I try to use it, this is what I get:

ree-1.8.7-2010.02 > require 'rubygems'
 => true 
ree-1.8.7-2010.02 > require 'archive'
 => true 
ree-1.8.7-2010.02 > a = Archive.new('/tmp/iAdTest.zip')
 => #<Archive:/tmp/iAdTest.zip> 
ree-1.8.7-2010.02 > a.extract
dyld: lazy symbol binding failed: Symbol not found: _archive_read_support_format_raw
  Referenced from: /Users/cristi/.rvm/gems/ree-1.8.7-2010.02/gems/libarchive-ruby-0.0.3/lib/archive.bundle
  Expected in: flat namespace

dyld: Symbol not found: _archive_read_support_format_raw
  Referenced from: /Users/cristi/.rvm/gems/ree-1.8.7-2010.02/gems/libarchive-ruby-0.0.3/lib/archive.bundle
  Expected in: flat namespace

[1]    25666 trace trap  irb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions