Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: ikeji on February 20, 2016, 10:52:59 PM

Title: Ruby wihtout X
Post by: ikeji on February 20, 2016, 10:52:59 PM
Hi,

I want to use ruby-2.2 package to just run small CUI script like shellscript.

but when I did "tce-load -iw ruby-2.2", it also loads tk.tcz or other X related library due to dependency.
http://tinycorelinux.net/6.x/x86/tcz/ruby-2.2.tcz.dep

here is a list of tcz to to load for ruby-2.2 package and it's 14MB.
----
expat2.tcz
fontconfig.tcz
freetype.tcz
gamin.tcz
gdbm.tcz
glib2.tcz
gmp.tcz
harfbuzz.tcz
libX11.tcz
libXau.tcz
libXdmcp.tcz
libXext.tcz
libXft.tcz
libXrender.tcz
libXss.tcz
libffi.tcz
libxcb.tcz
ncurses.tcz
openssl.tcz
readline.tcz
ruby-2.2.tcz
tcl.tcz
tk.tcz
----

Most of ruby user doesn't use tcl/tk binding.
For example Ubuntu's ruby package disable tcl/tk binding and has separate package for tcl/tk binding "libtcltk-ruby"

Is there any way to avoid to load one of the dependency of the package?

I tried to create dep file in local optional directory before tce-load but it's overridden by tce-load command.
----
echo > /etc/sysconfig/tcedir/optional/ruby-2.2.tcz.dep
tce-load -iw ruby-2.2
----

thanks,
Title: Re: Ruby wihtout X
Post by: Juanito on February 20, 2016, 11:56:23 PM
Use "tce-load -w ruby-2.2", edit the dep file to your liking and then "tce-load -i ruby-2.2
Title: Re: Ruby wihtout X
Post by: ikeji on February 21, 2016, 04:04:00 AM
Thanks!
It works well.