rdiscount-1.3.1.1 is uninstallable on solaris --------------------------------------------------------- root@dcb0:/opt/gitorious# gem install rdiscount -v 1.3.1.1 Building native extensions. This could take a while... ERROR: Error installing rdiscount: ERROR: Failed to build gem native extension. /opt/ruby/bin/ruby extconf.rb checking for random()... yes checking for srandom()... yes checking for funopen()... no checking for fopencookie()... no extconf.rb:11: No funopen or fopencookie support available. (RuntimeError) ----------------------------------------------------------- so I have installed rdiscount-1.3.4 and rake db:migrate for gitorious wants rdiscount = 1.3.1.1 -------------------------------------------- root@dcb0:/opt/gitorious# rake db:migrate (in /opt/gitorious) Missing these required gems: rdiscount = 1.3.1.1 You''re running: ruby 1.8.7.72 at /opt/ruby/bin/ruby rubygems 1.3.2 at /home/marya/.gem/ruby/1.8, /opt/ruby/lib/ruby/gems/1.8 -------------------------------------------- is there someway to bypass version check ? i tried to make symlink of rdiscount-1.3.4 to rdiscount-1.3.1.1 and upadted rdiscount.gemspec with ver 1.3.1.1 but still rake db:migrate gives error for rdiscount-1.3.1.1 -- Posted via http://www.ruby-forum.com/.
> Missing these required gems: > rdiscount = 1.3.1.1comment out the line that requires this gem version :) ? =r -- Posted via http://www.ruby-forum.com/.
On Jul 9, 3:04 am, Manish Arya <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> rdiscount-1.3.1.1 is uninstallable on solaris > > --------------------------------------------------------- > root@dcb0:/opt/gitorious# gem install rdiscount -v 1.3.1.1 > Building native extensions. This could take a while... > ERROR: Error installing rdiscount: > ERROR: Failed to build gem native extension. > > /opt/ruby/bin/ruby extconf.rb > checking for random()... yes > checking for srandom()... yes > checking for funopen()... no > checking for fopencookie()... no > extconf.rb:11: No funopen or fopencookie support available. > (RuntimeError) > ----------------------------------------------------------- > > so I have installed rdiscount-1.3.4 > > and > > rake db:migrate for gitorious wants rdiscount = 1.3.1.1 > > -------------------------------------------- > root@dcb0:/opt/gitorious# rake db:migrate > (in /opt/gitorious) > Missing these required gems: > rdiscount = 1.3.1.1 > > You''re running: > ruby 1.8.7.72 at /opt/ruby/bin/ruby > rubygems 1.3.2 at /home/marya/.gem/ruby/1.8, > /opt/ruby/lib/ruby/gems/1.8 > -------------------------------------------- > > is there someway to bypass version check ? > > i tried to make symlink of rdiscount-1.3.4 to rdiscount-1.3.1.1 and > upadted rdiscount.gemspec with ver 1.3.1.1 >I wouldn''t recommend doing that - it''s not recommended, nor is it correct. Looking over the gitorious source, the config/environment.rb file specifically requires that version. A quick scan of the rdiscount source history shows that the most notable changes made between 1.3.1.1 and 1.3.4 were moving up the underlying Discount version and correcting the issue with funopen you''ve run into above. Just fix the line in environment.rb and things should be fine. --Matt Jones
sorry for late reply I rebuild rdiscount after changing "s.version = ''1.3.1.1''" in rdiscount.gemspec file. this fooled gitorious while version check ;-) Regards, -Manish Matt Jones wrote:> On Jul 9, 3:04�am, Manish Arya <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> checking for srandom()... yes >> rake db:migrate for gitorious wants �rdiscount �= 1.3.1.1 >> /opt/ruby/lib/ruby/gems/1.8 >> -------------------------------------------- >> >> is there someway to bypass version check ? >> >> i tried to make symlink of rdiscount-1.3.4 to rdiscount-1.3.1.1 and >> upadted rdiscount.gemspec with ver 1.3.1.1 >> > > I wouldn''t recommend doing that - it''s not recommended, nor is it > correct. > > Looking over the gitorious source, the config/environment.rb file > specifically requires that version. A quick scan of the rdiscount > source history shows that the most notable changes made between > 1.3.1.1 and 1.3.4 were moving up the underlying Discount version and > correcting the issue with funopen you''ve run into above. Just fix the > line in environment.rb and things should be fine. > > --Matt Jones-- Posted via http://www.ruby-forum.com/.
Is there some reason that you can''t just fix the config.gem line in Gitorious''s environment.rb? Seriously, the next developer on the project is going to be severely confused... --Matt Jones On Jul 17, 4:27 am, Manish Arya <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> sorry for late reply > > I rebuild rdiscount after changing "s.version = ''1.3.1.1''" in > rdiscount.gemspec file. > > this fooled gitorious while version check ;-) > > Regards, > -Manish > > > > > > Matt Jones wrote: > > On Jul 9, 3:04 am, Manish Arya <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > >> checking for srandom()... yes > >> rake db:migrate for gitorious wants rdiscount = 1.3.1.1 > >> /opt/ruby/lib/ruby/gems/1.8 > >> -------------------------------------------- > > >> is there someway to bypass version check ? > > >> i tried to make symlink of rdiscount-1.3.4 to rdiscount-1.3.1.1 and > >> upadted rdiscount.gemspec with ver 1.3.1.1 > > > I wouldn''t recommend doing that - it''s not recommended, nor is it > > correct. > > > Looking over the gitorious source, the config/environment.rb file > > specifically requires that version. A quick scan of the rdiscount > > source history shows that the most notable changes made between > > 1.3.1.1 and 1.3.4 were moving up the underlying Discount version and > > correcting the issue with funopen you''ve run into above. Just fix the > > line in environment.rb and things should be fine. > > > --Matt Jones > > -- > Posted viahttp://www.ruby-forum.com/.
yea, because in environment.rb its clearly mentioned config.gem "rdiscount", :version => "1.3.1.1" but at the time of installing rdiscount it wants version = "1.3.1.1" Matt Jones wrote:> Is there some reason that you can''t just fix the config.gem line in > Gitorious''s environment.rb? > > Seriously, the next developer on the project is going to be severely > confused... > > --Matt Jones > > On Jul 17, 4:27�am, Manish Arya <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>-- Posted via http://www.ruby-forum.com/.
On Jul 19, 11:04 pm, Manish Arya <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> yea, because in environment.rb its clearly mentioned > > config.gem "rdiscount", :version => "1.3.1.1" > > but at the time of installing rdiscount it wants > > version = "1.3.1.1" >Were you expecting something else? That''s what the config.gem line means. Changing it to: config.gem ''rdiscount'', :version => ''>= 1.3.1.1'' will work, as will config.gem ''rdiscount'', :version => ''1.3.4'' --Matt Jones