Tiny Core Linux

Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: elohim on November 23, 2011, 03:59:32 PM

Title: 9base (Plan9Utils) & Werc
Post by: elohim on November 23, 2011, 03:59:32 PM
Hello,

i'd like to request 9base. It's a minimalist port of the plan9utils.
http://tools.suckless.org/9base (http://tools.suckless.org/9base)

I tried to compile them, but it doesn't work. I'm not an expert in compiling stuff, so I hope that someone of you will make a nice extension :)
That's the error i get:
../lib9/u.h:38:22: fatal error: inittypes.h: no such file or directory.
I don't know where to get this file ... :(


I want to use Werc as a Web-Framework in conjunction with microcore.

Thanks in advance!
Title: Re: 9base (Plan9Utils) & Werc
Post by: Jason W on November 23, 2011, 10:45:38 PM
Are you sure the file is not inttypes.h?  That is in gcc.tcz for one.  Did you install compiletc.tcz in it's entirety?  Just wanting to know where to start.
Title: Re: 9base (Plan9Utils) & Werc
Post by: Jason W on November 23, 2011, 10:52:25 PM
On my box it builds and installs perfectly with a simple "make" and "make install".  Likely an issue of installing needed extensions.

Install compiletc.tcz and perhaps it may need others, and it should be simple to build and package.
Title: Re: 9base (Plan9Utils) & Werc
Post by: Jason W on November 23, 2011, 11:13:02 PM
Ok, to make an extension from a fresh boot:

tce-load -iw compiletc.tcz
tce-load -iw squashfs-tools-4.x.tcz
wget http://dl.suckless.org/tools/9base-6.tar.gz (http://dl.suckless.org/tools/9base-6.tar.gz)
tar xvf 9base-6.tar.gz
cd 9base-6
make
make DESTDIR=/home/tc/pkg install
cd /home/tc
mksquashfs pkg 9base.tcz
md5sum 9base.tcz > 9base.tcz.md5.txt


That should give you a working 9base.tcz package.
Title: Re: 9base (Plan9Utils) & Werc
Post by: elohim on November 24, 2011, 03:15:11 PM
Thanks I will try that now!

EDIT: It worked. great!

But now I'm stuck with werc. It only gives me textfiles when i open my wegpage...
...but that's another story.
Thank you very much