Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 08 Dec 2016, 02:23
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Ruby 1.8.7 for Wary 5.5 i686 Architecture (Untested)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
s243a

Joined: 02 Sep 2014
Posts: 561

PostPosted: Mon 07 Dec 2015, 02:12    Post subject:  Ruby 1.8.7 for Wary 5.5 i686 Architecture (Untested)  

Again on my quest to bring the Mindori browser to Wary 5.5 I compiled Ruby (as a pet file):
http://www.pearltrees.com/s243a/ruby-1-8-7-wary-5-puppylinux/id15167381/item163639672

It chose the Ruby version that was released around the time of Wary 5.5. I need Ruby to compile libnotify,
http://www.pearltrees.com/s243a/libnotify-0-7-4/id15167199

which is needed for Madori. This pet has not been tested. The test will be me succeeding to get the Mindori browser to work. Also note that my system seems to be targeting i686 by default. Should I try to target and older architecture since Wary is for older computers?, and if so how?

Last edited by s243a on Mon 14 Dec 2015, 02:08; edited 2 times in total
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 561

PostPosted: Mon 07 Dec 2015, 23:12    Post subject:  

I'm having an issue but I don't think it is related to the pet. I'm trying to install rubygems and I'm getting the error
Code:

./lib/rubygems.rb:8:in `require`:no such file to load -- rbconfig (LoadError)

but rbconfig exits on my system and the path is:
Code:

/lib/ruby/1.8/i686-linux/rbconfig.rb


I'm executing the installation as follows:

Code:

ruby -T0 -IDirectory=/lib/ruby/1.8/ -IDirectory=/lib/ruby/1.8/i686-linux/ setup.rb


I saved some links related to this issue here:
http://www.pearltrees.com/s243a/rubylib-load-path-rubyopt/id15172131
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 561

PostPosted: Tue 08 Dec 2015, 00:50    Post subject:  

So I see a problem here:
Code:

ruby -I '/lib/ruby/1/8' -e 'puts  $LOAD_PATH' $>bla.txt


produces:
Code:

/lib/ruby/1.8
/lib/ruby/1.8
/lib/ruby/i686-linux/
/tmp/ruby-1.8.7-p357/lib/ruby/site_ruby/1.8
/tmp/ruby-1.8.7-p357/lib/ruby/site_ruby/1.8/i686-linux
/tmp/ruby-1.8.7-p357/lib/ruby/site_ruby
/tmp/ruby-1.8.7-p357/lib/ruby/vendor_ruby/1.8
/tmp/ruby-1.8.7-p357/lib/ruby/vendor_ruby/1.8/i686-linux
/tmp/ruby-1.8.7-p357/lib/ruby/vendor_ruby
/tmp/ruby-1.8.7-p357/lib/ruby/1.8
/tmp/ruby-1.8.7-p357/lib/ruby/1.8/i686-linux

and this is because when I compiled I set
Code:

--prefix=/tmp/ruby-1.8.7-p357/


so that I could compile everything to one directory and then run dir2pet. Perhaps I should add a post installs script to the pet file to strip off the /tmp/ruby-1.8.7-p357/ in the LOAD_PATH. Not sure how to add a post install script to a pet package but I'm sure google can tell me.

However, while this variable is set wrong, I thought the command line options I supplied above should have circumvented this incorrect installation.
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 561

PostPosted: Mon 14 Dec 2015, 02:35    Post subject:  

I fixed the above pet so the load path is correct.
(See this thread)



I tested it by compiling ruby gems. Ruby should work now. However, I now have an untested version of ruby gems:
ruby-gems2.2.0.pet (for wary 5.5)

which I'll test tomorrow.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0298s ][ Queries: 11 (0.0045s) ][ GZIP on ]