Sunday, February 22, 2009

how to solve rmake build errors

1. First, all things have a source... all errors step from one single command failing. So, locate this failing command, find the cause and find the solution.

2. You can find out where a specific file comes from, using conary q --path or conary rq --path .

3. "No package blah found. Perhaps you should add the directory containing `blah.pc'."
Missing dependencies is a common error. Usually configure uses pkg-config to check the .pc files. The default dir containing *.pc is /usr/lib/pkgconfig (or /usr/lib64). So is /usr/lib/pkgconfig/blah.pc, apply it to conary q/rq --path and solve it.

4. Other missing file errors can be solved similarly, for example missing /usr/bin/git, missing /usr/include/GL/gl.h (from #include )

5. "flex: fatal internal error, exec failed"
Using strace/ltrace, for the particular case I encountered, the error turned out to be 'GNU M4' missing. conary q --path `which m4` tells me it's m4:runtime. Done.

6. Sometimes it fails just because of Internet problems, like this one,
InternalServerError:
There was an error contacting the repository. Either the server is
configured incorrectly or the request you sent to the server was invalid.

Saturday, February 21, 2009

vim tip: set t_Co=256

I got this awesome tip from Grissiom, set t_Co=256. It works for gnome-terminal and immediately makes my vim colorful :D

Thursday, February 19, 2009

site for my repository

I created this google site to write about the packages I built. I will include how to install each app from my rBo personal repository.

Monday, February 16, 2009

configure a fresh-installed Foresight Linux

[update]: The following may become obsoleted. I have changed some of it.

Recently I reinstalled my Foresight, well, because the root partition was too small. 10G root is never enough for a system where I do some packaging.

With a fresh-installed Foresight, some configure is needed. The "Foresight User Guide" is helpful, but besides that, here is what I do,

1) Chinese font
sudo conary update wqy-zenhei=jesse.rpath.org@fl:2-devel

2) input method - SCIM

3) $PATH
I want ~/bin to come before /usr/bin and others. Obviously there is something wrong with $PATH setup in Foresight... echo $PATH and see how it is messed up :)

Edit /etc/profile,
# Path manipulation
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
pathmunge /usr/local/bin
pathmunge $HOME/bin # add this line


(Still at mess but it works)

4) stardict
sudo conary update stardict