Hi Christopher, Dne 18.10.2014 v 07:50 Christopher Rigor napsal(a): > Hi, > > I tried installing ruby2.2.0preview1 on fedora21 using a repo I found > on this list [1] but ran into some errors. I was able to install ruby > 2.2.0preview1 on centos7 using this repo [2] > > Error: Package: rubygem-io-console-0.4.2-23.fc21.x86_64 (fedora) > Requires: libruby.so.2.1()(64bit) > Available: ruby-libs-2.1.2-23.fc21.x86_64 (fedora) > libruby.so.2.1()(64bit) > Installing: ruby-libs-2.2.0-0.25.preview1.fc21.x86_64 (ruby22) > ~libruby.so.2.2()(64bit) > > Here's the full error [3].
This is the issue you are facing: $ rpmdev-vercmp rubygem-io-console-0.4.2-23.fc21.x86_64.rpm rubygem-io-console-0.4.2-0.25.preview1.fc21.x86_64.rpm rubygem-io-console-0.4.2-23.fc21.x86_64.rpm > rubygem-io-console-0.4.2-0.25.preview1.fc21.x86_64.rpm IOW, the current F21 package has higher NVR than the preview, hence YUM prefers the F21 package. This will not be issue for the official build, since the '0.' from the release will be dropped for stable version. You have several options how to install Ruby: * yum install --disablerepo=* --enablerepo=ruby22 ruby * yum install ruby rubygem-io-console-0.4.2-0.25.preview1.fc21 Note that I have not tested these, so I might be wrong, but I hope you got the principle ;) > > What I'm really trying to do is build the spec file [4]. I've read the > wiki page [5] but need some help. I thought I'll start by getting the > SRPM and try rebuilding the spec first. I was able to get the SRPM for > centos from [2] but that didn't work because of the load function (I > think). There is no SRPM from [1] and I can't even install it to begin > with as mentioned above. Hopefully František can fix this. > > I am using rpmbuild. I've also read about mock, which I can use > locally, and koji, which I can't (I think). Before I spend more time, > I would appreciate any pointers on how to build the spec file. Should > I be using rpmbuild, mock, or koji? This was hopefully answered by Josef. > > My goal is to help test newer ruby versions by packaging it or just by > using it. I'm in the process of setting up a staging server of my > Rails app using ruby 2.2.0preview1. Very cool! I am very glad for any feedback! > > I'm new to this list so let me know if I should be asking this somewhere else. > This is the right place. And bugzilla is second best place if you are 99,9% sure you hit some bug. Thanks Vít > -Christopher > > [1] http://scientific.zcu.cz/repos/ruby22-fedora21.repo > [2] http://scientific.zcu.cz/repos/ruby22-epel7.repo > [3] https://gist.github.com/crigor/2c19947c7691bb55efa5 > [4] http://pkgs.fedoraproject.org/cgit/ruby.git/log/?h=private-ruby-2.2 > [5] https://fedoraproject.org/wiki/How_to_create_an_RPM_package > _______________________________________________ > ruby-sig mailing list > [email protected] > https://admin.fedoraproject.org/mailman/listinfo/ruby-sig _______________________________________________ ruby-sig mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/ruby-sig
