APR环境设置
时间:2007-05-28 来源:Givemefive
下载apr1.28 apr-util1.28
编译安装apr-util1.28 时,要给出apr的路径 --with-apr
1.error: syntax error before "apr_off_t"
修改apr.h
找到
typedef off64_t apr_off_t;
改成
typedef int64_t apr_off_t;
2.undefined reference to `apr_initialize'
在Makefile里面的
gcc -o test test.o $(LIB)
改成
gcc -o test test.o $(LIB) -lapr-1 -laprutil-1
3.error while loading shared libraries: libapr-1.so.0: cannot open shared object file: No such file or directory
把安装的apr下的lib目录里面的东西都拷贝到 /usr/lib下.
附Makefile:
编译安装apr-util1.28 时,要给出apr的路径 --with-apr
1.error: syntax error before "apr_off_t"
修改apr.h
找到
typedef off64_t apr_off_t;
改成
typedef int64_t apr_off_t;
2.undefined reference to `apr_initialize'
在Makefile里面的
gcc -o test test.o $(LIB)
改成
gcc -o test test.o $(LIB) -lapr-1 -laprutil-1
3.error while loading shared libraries: libapr-1.so.0: cannot open shared object file: No such file or directory
把安装的apr下的lib目录里面的东西都拷贝到 /usr/lib下.
附Makefile:
INC=-I/root/apr1.28/include/apr-1 |
相关阅读 更多 +