WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: downgrade actual Ruby extension to 1.8.x?  (Read 4214 times)

Offline zab

  • Jr. Member
  • **
  • Posts: 51
downgrade actual Ruby extension to 1.8.x?
« on: June 08, 2010, 10:44:28 AM »
Hi Everybody,

Actual "Ruby 1.9.1p376" extension shipped with TinyCoreLinux is broken.
Is there a way to downgrade to Ruby 1.8.x (let say 1.8.6)?

How can i modify (a tuto please) the current extension?

Regards
Zab

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: downgrade actual Ruby extension to 1.8.x?
« Reply #1 on: June 08, 2010, 11:36:37 AM »
I am curious, what kind of broken - ldd errors, segfaults, missing dependencies, compile errors? 

Arch linux is using 191_p378, perhaps the issue is fixed in that release?


Offline zab

  • Jr. Member
  • **
  • Posts: 51
Re: downgrade actual Ruby extension to 1.8.x?
« Reply #2 on: June 08, 2010, 12:16:32 PM »
Mostly compile errors.
Almost all "gems" I tried to install simply can't compile with the current version.
It should be good to have an option here. The 1.8.x branch and the the 1.9.x branch.
What do you think?
I'd like to learn how to build extension. I can do it if you show me the way!

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: downgrade actual Ruby extension to 1.8.x?
« Reply #3 on: June 08, 2010, 12:19:11 PM »
I'd like to learn how to build extension. I can do it if you show me the way!

Read WIKI article

http://wiki.tinycorelinux.com/Creating+Extensions
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: downgrade actual Ruby extension to 1.8.x?
« Reply #4 on: June 08, 2010, 01:03:42 PM »
zab -  I am not a Ruby person, so I would be happy for one more familiar with it to build an extension to replace the current one. 

I would prefer that there only be one Ruby extension unless there is a real need for 2 of them.

Offline zab

  • Jr. Member
  • **
  • Posts: 51
Re: downgrade actual Ruby extension to 1.8.x?
« Reply #5 on: June 08, 2010, 01:34:38 PM »
As you like ;-)
Anyway, I'll try to create my first ruby extension and use it for my own purposes.
If someone is interested (if I succeed), drop me a line !

Thks.

Offline zab

  • Jr. Member
  • **
  • Posts: 51
Re: downgrade actual Ruby extension to 1.8.x?
« Reply #6 on: June 10, 2010, 05:04:46 PM »
Hi All,

I'm very excited as I finally built my first extension (the one to downgrade to the stable Ruby 1.8.6).

After building it, I copied the .dep, , .list, .info, .md5sum.txt, and .tcz under /mnt/sda2/tce/optional.
Then, I launched "AppAudit -> OnBoot -> Maintenance" and add it to the right panel.
Finally,  I reboot.
But no way to get it loaded on boot.
What I am doing wrong?

I'd like to know if someone is interested to test it, and tell me if I strongly respected all the steps required by TCL team
for building a correct extension?

N.B: the extension is called "ruby.tcz.tar.gz.bfe" for 2.4Mb size and can be found at:
[removed: see extension submission guidelines]

Regards
Zab

« Last Edit: June 11, 2010, 12:24:31 AM by zab »

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: downgrade actual Ruby extension to 1.8.x?
« Reply #7 on: June 10, 2010, 05:20:46 PM »
If this isn't intended to be a direct replacement (from the sounds of it, it isn't), the extension should probably use a different name, such as ruby-1.8.tcz

Offline zab

  • Jr. Member
  • **
  • Posts: 51
Re: downgrade actual Ruby extension to 1.8.x?
« Reply #8 on: June 11, 2010, 12:23:28 AM »
Quote
If this isn't intended to be a direct replacement (from the sounds of it, it isn't)
As "Jayson" said previously, he don't want to have 2 Ruby extensions for now.
So, this extension is only for me as I need a very stable Ruby which will work with the most "gems" available out there.

Quote
the extension should probably use a different name, such as ruby-1.8.tcz
Hmm ... following the doc, putting version number on extension name isn't a good practice. Am I right?

Any chance that the extension worked for you "^thehatsrule^"?

Offline zab

  • Jr. Member
  • **
  • Posts: 51
Re: downgrade actual Ruby extension to 1.8.x?
« Reply #9 on: June 11, 2010, 02:20:26 AM »
Finally, my extension works ;-)