From: Ludo Date: 2001-12-20T00:07:11+09:00 Subject: [ruby-talk:28937] problem with compilation of ext/tcltklib Hi, I would like to install ruby on a linux Mandrake8.1 pentium PC. I can't compile the tcltklib extension. I don't find where is the problem. Have someone an advise ? It seems to me that there is a problem with the function 't_open' of the 'libnsl' library. I test to do this : nm -DB /usr/lib/libnsl.so | grep t_open nothing is found! I don't know what to do now. This is the begining of the file 'extmk.log' : gcc -o conftest -I/home/moteur/ruby-1.6.5 -I/home/moteur/ruby-1.6.5 -g -O2 -I/us r/local/include -rdynamic conftest.c -lnsl -lc -ldl -lcrypt -lm /tmp/ccZUftFc.o: In function `t': /home/moteur/ruby-1.6.5/ext/tcltklib/conftest.c:2: undefined reference to `t_ope n' collect2: ld returned 1 exit status gcc -o conftest -I/home/moteur/ruby-1.6.5 -I/home/moteur/ruby-1.6.5 -g -O2 -I/us r/local/include -rdynamic conftest.c -lsocket -lc -ldl -lcrypt -lm /usr/bin/ld: cannot find -lsocket collect2: ld returned 1 exit status gcc -o conftest -I/home/moteur/ruby-1.6.5 -I/home/moteur/ruby-1.6.5 -g -O2 -I/us r/local/include -rdynamic conftest.c -ldl -lc -ldl -lcrypt -lm gcc -o conftest -I/home/moteur/ruby-1.6.5 -I/home/moteur/ruby-1.6.5 -g -O2 -I/us r/local/include -rdynamic conftest.c -lm -ldl -lc -ldl -lcrypt -lm gcc -E -I/home/moteur/ruby-1.6.5 -I/home/moteur/ruby-1.6.5 -g -O2 -I/usr/local/ include conftest.c