犬糞debianにコンパイル環境インストール

debian-s/ix86 だけだと判明

cat> linuxhaaho.c

#include <stdio.h>

int main()
{
	printf("ソースベースな環境の分際で、gccも動かない糞環境\n");
	return 0;
}

^C

gcc linuxhaaho.c
> /usr/bin/ld: crt1.o: No such file: No such file or directory

apt-get install libc6-dev
> libc6-dev: Depends: libc6 (= 2.3.2.ds1-22sarge4) but 2.3.2.ds1-22sarge5 is to be installed
E: Broken packages

どうでもよくないが、なぜコンパイル環境インストールするのに犬糞はこんなに手間がかかるんだ?

http://qref.sourceforge.net/Debian/reference/ch-woody.ja.html
TESTINGにする(゜Д゜)


# apt-get update
# apt-get install apt apt-utils

apt-get install libc6-dev
やっと入る(゜Д゜)

gcc -s -rdynamic -o zsh main.o `cat stamp-modobjs` -ldl -lnsl -lm -lc
utils.o(.text+0x21a9): In function `gettempname':

warning
the use of `mktemp' is dangerous, better use `mkstemp'

init.o(.text+0xdb6): In function `init_term':
: undefined reference to `tgetent'

--; ブッコロ....

しねしねしねしねしねしねしねしねしねしねしねしねしねしねしねしねしねしねしね

こーんぱいるできる 魔法ー(´∀`)

ore@vine4% sudo -s
ore@vine4% tar cf lib.tar /usr/lib
ore@vine4% scp lib.tar ore@debian:~/
ore@vine4% ssh ore@debian
ore@debian % sudo -s
ore@debian % mv lib.tar /
ore@debian % tar xfv lib.tar

できたーwwwwwwwwwwwwwwwwwwケラケラケラ

あーでも 再起動すると

Minimal BASH-like line editing is supported. For the first word. TAB lists possible command completions. Any where else TAB lists the possible command completions. of a device/filename

Possible commands are : blacklist boot cat chain loader cmp color configfile debug displayapm displaymem embed find fstest geometry halt help hide impsprobe initrd install ioprobe kernel lock makeactive map md 5 crypt module modulenounzip pager partnew parttype password pause read reboot root root noverify savefault serial set key setup terminal terminfo testload testvbe unhide uppermem vbeprobe

ってなる諸刃の剣 素人にはおすすめ