我想在ubuntu 12.04上安装libantlr3c-3.4。为了安装它,我按照以下步骤操作:
我现在遵循的程序是:
1. tar -xzvf libantlr3c-3.4.tar.gz
2. ./configure
3. sudo apt-get install libc6-dev
4. make
5. make install
在此之后,我收到以下消息:
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during executiyon
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
安装库后,我尝试通过设置选项
将库包含在我的netbeans项目中在此之后,我包含了帖子中显示的头文件:http://antlr.1301665.n2.nabble.com/SOLVED-ANTLR3-C-runtime-in-HP-UX-td3806962.html
但在做完所有事情后,我仍然得到以下错误:
In file included from /usr/include/sys/socket.h:40:0,
from /usr/include/netinet/tcp.h:57,
from src/antlr3debughandlers.c:37:
/usr/include/bits/socket.h:383:24: fatal error: asm/socket.h: No such file or directory
compilation terminated.
make[1]: *** [antlr3debughandlers.lo] Error 1
有人可以帮我解决一下我应该如何摆脱这个错误