This is an old revision of the document!
В ubuntu понадобится libc6-dev
$ cat hello.c
#include <stdio.h>
main () {
printf("Hello World\n");
}
$ cc hello.c -o hello.exe $ ./hello.exe Hello World
$ cat hello.c
#include <stdio.h>
extern char* str;
main () {
printf(str);
}
$ cat string.c
char* str="Hello World 3\n";
$ cc -c hello.c $ cc -c string.c $ cc hello.o string.o -o hello.exe $ ./hello.exe Hello World 3
$ cat Makefile
hello.exe: hello.o string.o
cc hello.o string.o -o hello.exe
hello.o: hello.c
cc -c hello.c
string.o: string.c
cc -c string.c
$ cat string.c
char* str="Hello World 4\n";
$ make cc -c string.c cc hello.o string.o -o hello.exe $ ./hello.exe Hello World 4
$ cat Makefile
...
install:
cp hello.exe /usr/local/bin
clean:
rm *.o
rm *.exe
$ sudo make install cp hello.exe /usr/local/bin $ hello.exe Hello World 4 $ make clean rm *.o rm *.exe
В ubuntu понадобится libncurses5-dev
$ fetch http://lynx.isc.org/lynx2.8.5/lynx2.8.5.tar.bz2 или $ wget http://lynx.isc.org/lynx2.8.5/lynx2.8.5.tar.bz2 $ tar -xvf lynx2.8.5.tar.bz2 $ cd lynx2-8-5 $ more README $ ./configure --prefix=/home/userX/ $ make $ make install $ make clean $ lynx http://www.ru