Closed guss77 closed 3 years ago
What version of ruby do you use to create the binary gem? What version of ruby do you use to install the binary gem from fury.io? Could you install the binary gem on local?
# Copy ruby-oci8-2.2.3-x86_64-linux.gem to the current directory in advance.
$ gem install ./ruby-oci8-2.2.3-x86_64-linux.gem
If you get the following error, it is same issue with #155. You need to fix ruby-oci8.gemspec
as 1aa55dab5b51c5337d33cdd428bc024ce73f9ff4.
ERROR: Error installing ./ruby-oci8-2.2.3-x86_64-linux.gem:
ruby-oci8 requires Ruby version ~> 2.3.0.0.
The gem was built using Ruby 2.3.1 on CentOS 7 using SCL rh-ruby23
installation. Then a similar machine (an image with the same setting but without development packages) was used to install the resulting binary. All testing was done using Docker.
Downloading and installing manually works fine.
If I build the gem from the new branch, I still get gem downloading the non-binary version.
IMO, this isn't a ruby-oci8 issue as long as you can install the binary gem on local file system. It looks like an installation issue of fury.io. Well, could you check gemspec file in the fury.io gem server?
dump_gemspec_rz.rb
.
require 'open-uri'
require 'zlib'
rz_data = open(ARGV[0]).read serialized_obj = Zlib::inflate(rz_data) spec = Marshal::load(serialized_obj) puts spec.to_yaml
2. Run the followings. (Fix `secret-code` in advance)
```shell
$ ruby --version # just for confirmation
$ ruby dump_gemspec_rz.rb https://secret-code@gem.fury.io/guss77/quick/Marshal.4.8/ruby-oci8-2.2.3-x86_64-linux.gemspec.rz
I've build a binary gem for Linux as per the instructions under docs, and published it to a fury.io repository. But when I try to install the binary gem,
gem
for some reason prefers to download the source only version from rubygems.org.Here is the output of a run under
--debug --verbose
:Can you please help with understanding why the binary package is not being downloaded?
Best regards.