mac下mod_jk编译的问题,could not find /usr/sbin/apxs

mac下用./configure --with-apxs=/usr/sbin/apxs编译mod-jk的时候,
提示could not find /usr/sbin/apxs 但是apxs确实是在那个路径下面。

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
nginx: [emerg] unknown directive "ngx_fastdfs_module" in /usr/local/nginx/conf/nginx.conf:50
安装fastdfs 整合 nginx ; nginx: [emerg] unknown directive "ngx_fastdfs_module" in /usr/local/nginx/conf/nginx.conf:50![图片说明](https://img-ask.csdn.net/upload/201905/22/1558504219_473998.png) 请问这种情况怎么解决
编译Caffe://usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1: 无法添加符号
/usr/bin/ld: .build_release/tools/upgrade_solver_proto_text.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv' //usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1: 无法添加符号: DSO missing from command line ![图片说明](https://img-ask.csdn.net/upload/201911/29/1574991646_52138.png) 求大神帮忙!
mod_jk报错,哪位大侠帮忙解答下
[root@langhuaqi-353 native]# make Making all in common make[1]: Entering directory `/usr/local/src/jakarta-tomcat-connectors-1.2.15-src/jk/native/common' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/local/src/jakarta-tomcat-connectors-1.2.15-src/jk/native/common' Making all in apache-2.0 make[1]: Entering directory `/usr/local/src/jakarta-tomcat-connectors-1.2.15-src/jk/native/apache-2.0' /usr/local/apache2/build/libtool --silent --mode=compile gcc -std=gnu99 -I/usr/local/apache2/include -g -O2 -DUSE_APACHE_MD5 -I ../common -I /root/jdk1.6.0_20/include -I /root/jdk1.6.0_20/include/unix -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -DHAVE_APR -I/usr/local/apache2/include -I/usr/local/apache2/include -g -O2 -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -c mod_jk.c -o mod_jk.lo mod_jk.c: In function 'jk_error_exit': mod_jk.c:446: warning: initialization from incompatible pointer type mod_jk.c:446: error: expected expression before ')' token mod_jk.c:446: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast /usr/local/apache2/include/http_log.h:372: note: expected 'apr_status_t' but argument is of type 'const struct server_rec *' mod_jk.c: In function 'init_ws_service': mod_jk.c:499: error: 'conn_rec' has no member named 'remote_ip' mod_jk.c:499: error: 'conn_rec' has no member named 'remote_ip' mod_jk.c:499: error: 'conn_rec' has no member named 'remote_ip' mod_jk.c:515: warning: implicit declaration of function 'ap_get_server_version' mod_jk.c:515: warning: cast to pointer from integer of different size mod_jk.c:542: error: 'conn_rec' has no member named 'remote_ip' mod_jk.c:542: error: 'conn_rec' has no member named 'remote_ip' mod_jk.c: At top level: mod_jk.c:1684: warning: initialization from incompatible pointer type mod_jk.c:1692: warning: initialization from incompatible pointer type mod_jk.c: In function 'create_jk_config': mod_jk.c:2091: warning: passing argument 5 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'struct apr_pool_t *' but argument is of type 'struct server_rec *' mod_jk.c:2091: warning: passing argument 6 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'const char *' but argument is of type 'struct apr_pool_t *' mod_jk.c:2094: warning: passing argument 5 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'struct apr_pool_t *' but argument is of type 'struct server_rec *' mod_jk.c:2094: warning: passing argument 6 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'const char *' but argument is of type 'struct apr_pool_t *' mod_jk.c: In function 'copy_jk_map': mod_jk.c:2123: warning: passing argument 5 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'struct apr_pool_t *' but argument is of type 'struct server_rec *' mod_jk.c:2123: warning: passing argument 6 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'const char *' but argument is of type 'struct apr_pool_t *' mod_jk.c: In function 'merge_jk_config': mod_jk.c:2163: warning: passing argument 5 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'struct apr_pool_t *' but argument is of type 'struct server_rec *' mod_jk.c:2163: warning: passing argument 6 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'const char *' but argument is of type 'struct apr_pool_t *' mod_jk.c: In function 'jk_log_to_file': mod_jk.c:2204: error: request for member 'log' in something not a structure or union mod_jk.c:2204: error: request for member 'log' in something not a structure or union mod_jk.c:2204: error: request for member 'connection' in something not a structure or union mod_jk.c:2204: error: request for member 'connection' in something not a structure or union mod_jk.c:2204: error: request for member 'server' in something not a structure or union mod_jk.c:2204: error: request for member 'log' in something not a structure or union mod_jk.c:2204: error: request for member 'log' in something not a structure or union mod_jk.c:2204: error: request for member 'connection' in something not a structure or union mod_jk.c:2204: error: request for member 'connection' in something not a structure or union mod_jk.c:2204: error: request for member 'server' in something not a structure or union mod_jk.c:2204: error: request for member 'log' in something not a structure or union mod_jk.c:2204: error: request for member 'log' in something not a structure or union mod_jk.c:2204: error: request for member 'connection' in something not a structure or union mod_jk.c:2204: error: request for member 'connection' in something not a structure or union mod_jk.c:2204: error: request for member 'server' in something not a structure or union mod_jk.c:2204: error: request for member 'log' in something not a structure or union mod_jk.c:2204: error: request for member 'log' in something not a structure or union mod_jk.c:2204: error: request for member 'connection' in something not a structure or union mod_jk.c:2204: error: request for member 'connection' in something not a structure or union mod_jk.c:2204: error: request for member 'server' in something not a structure or union mod_jk.c: In function 'init_jk': mod_jk.c:2395: warning: passing argument 5 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'struct apr_pool_t *' but argument is of type 'struct server_rec *' mod_jk.c:2395: warning: passing argument 6 of 'jk_error_exit' from incompatible pointer type mod_jk.c:433: note: expected 'const char *' but argument is of type 'struct apr_pool_t *' mod_jk.c:2413: warning: cast to pointer from integer of different size mod_jk.c: In function 'jk_post_config': mod_jk.c:2437: warning: implicit declaration of function 'unixd_set_global_mutex_perms' make[1]: *** [mod_jk.lo] Error 1 make[1]: Leaving directory `/usr/local/src/jakarta-tomcat-connectors-1.2.15-src/jk/native/apache-2.0' make: *** [all-recursive] Error 1
linux下整合Apache+subversion加载mod_dav_svn.so报错
报错信息: ``` httpd: Syntax error on line 219 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_dav_svn.so into server: /usr/local/subversion/lib/libsvn_subr-1.so.0: undefined symbol: apr_hash_this_key_len ``` 在modules目录下是可以找到这个mod_dav_svn.so的 一下是查看mod_dav_svn.so的信息: ``` [root@localhost bin]# ldd -r /etc/httpd/modules/mod_dav_svn.so linux-vdso.so.1 => (0x00007fff2e7ff000) libsvn_repos-1.so.0 => /usr/local/subversion/lib/libsvn_repos-1.so.0 (0x00007fe22f9c7000) libsvn_fs-1.so.0 => /usr/local/subversion/lib/libsvn_fs-1.so.0 (0x00007fe22f7bb000) libsvn_fs_fs-1.so.0 => /usr/local/subversion/lib/libsvn_fs_fs-1.so.0 (0x00007fe22f56c000) libsvn_fs_x-1.so.0 => /usr/local/subversion/lib/libsvn_fs_x-1.so.0 (0x00007fe22f31a000) libsvn_fs_util-1.so.0 => /usr/local/subversion/lib/libsvn_fs_util-1.so.0 (0x00007fe22f117000) libsvn_delta-1.so.0 => /usr/local/subversion/lib/libsvn_delta-1.so.0 (0x00007fe22ef05000) libsvn_subr-1.so.0 => /usr/local/subversion/lib/libsvn_subr-1.so.0 (0x00007fe22eb48000) libaprutil-1.so.0 => /usr/local/apr-util/lib/libaprutil-1.so.0 (0x00007fe22e922000) libexpat.so.0 => /usr/local/apr-util/lib/libexpat.so.0 (0x00007fe22e6fb000) libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0x00007fe22e4c8000) librt.so.1 => /lib64/librt.so.1 (0x00007fe22e2b2000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fe22e07b000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fe22de77000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe22dc59000) libc.so.6 => /lib64/libc.so.6 (0x00007fe22d8c5000) /lib64/ld-linux-x86-64.so.2 (0x000000361da00000) libfreebl3.so => /lib64/libfreebl3.so (0x00007fe22d64b000) undefined symbol: ap_filter_flush (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_get_server_name (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_register_provider (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_fputstrs (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_os_escape_path (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_escape_html2 (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_register_output_filter (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_sub_req_method_uri (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_hook_insert_filter (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_fprintf (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_get_server_description (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_pass_brigade (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_construct_url (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_get_locktoken_list (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_hook_insert_all_liveprops (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_new_error_tag (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_find_linked_module (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_psignature (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_add_input_filter (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_xmlns_add (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_hook_find_liveprop (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_hook_gather_propsets (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_destroy_sub_req (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_lookup_provider (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_set_last_modified (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_register_liveprop_group (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_get_limit_req_body (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_push_error (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_str_tolower (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_set_content_length (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_hook_post_config (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_hook_fixups (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_show_mpm (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_hook_translate_name (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_hook_handler (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_rwrite (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_add_output_filter (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_stripprefix (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_remove_input_filter (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_get_status_line (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_get_brigade (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_getparents (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_fflush (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_do_find_liveprop (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_new_error (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_rvputs (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_add_version_component (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_hook_pre_config (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_log_perror_ (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_get_token (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_rprintf (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_xml_get_cdata (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_set_content_type (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_remove_output_filter (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_ht_time (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_no2slash (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_update_mtime (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_hook_map_to_storage (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_register_input_filter (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_log_error_ (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: ap_log_rerror_ (/etc/httpd/modules/mod_dav_svn.so) undefined symbol: dav_get_liveprop_info (/etc/httpd/modules/mod_dav_svn.so) ``` 但是我不是很懂 ,请大家帮帮忙看看是什么原因呀!
全新空工作空间catkin编译出错,无法识别c编译器
新建一个工作空间,执行catkin\_make的时候,提示**The C compiler identification is unknown**,接下来就发生错误,编译失败,错误是**CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message):The C compiler "/usr/bin/cc" is not able to compile a simple test program.**, 完整的编译输出如下: ``` Base path: /home/inky/t Source space: /home/inky/t/src Build space: /home/inky/t/build Devel space: /home/inky/t/devel Install space: /home/inky/t/install #### #### Running command: "cmake /home/inky/t/src -DCATKIN_DEVEL_PREFIX=/home/inky/t/devel -DCMAKE_INSTALL_PREFIX=/home/inky/t/install -G Unix Makefiles" in "/home/inky/t/build" #### -- The C compiler identification is unknown -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- broken CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/inky/t/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_6a4d8/fast" /usr/bin/make -f CMakeFiles/cmTC_6a4d8.dir/build.make CMakeFiles/cmTC_6a4d8.dir/build make[1]: Entering directory '/home/inky/t/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6a4d8.dir/testCCompiler.c.o /usr/bin/cc -o CMakeFiles/cmTC_6a4d8.dir/testCCompiler.c.o -c /home/inky/t/build/CMakeFiles/CMakeTmp/testCCompiler.c CMakeFiles/cmTC_6a4d8.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_6a4d8.dir/testCCompiler.c.o' failed make[1]: *** [CMakeFiles/cmTC_6a4d8.dir/testCCompiler.c.o] Error 1 make[1]: Leaving directory '/home/inky/t/build/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_6a4d8/fast' failed make: *** [cmTC_6a4d8/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt -- Configuring incomplete, errors occurred! See also "/home/inky/t/build/CMakeFiles/CMakeOutput.log". See also "/home/inky/t/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed ``` 请问有谁能看出这是什么问题吗? 我试过更新和重装gcc,更新和重装make和cmake,但是都没有效果,我在其他地方克隆来的一个项目却能够正常编译,这个问题困扰我有几天了。
Mac spark安装之后,运行./start-all.sh提示如下,大佬们该怎么搞?
./start-all.sh: line 29: /usr/local/Cellar/spark/2.1.0/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin:/Developer/NVIDIA/CUDA-8.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin/sbin/spark-config.sh: No such file or directory ./start-all.sh: line 32: /usr/local/Cellar/spark/2.1.0/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin:/Developer/NVIDIA/CUDA-8.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin/sbin/start-master.sh: No such file or directory ./start-all.sh: line 35: /usr/local/Cellar/spark/2.1.0/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin:/Developer/NVIDIA/CUDA-8.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin/sbin/start-slaves.sh: No such file or directory
如何将变量通过shell写入到文件中去
各位大神我现在想将Oracle的环境变量现成脚本自动写入,使用echo命令后发现无法将 $ORACLE_BASE这些变量写入进去。 ``` echo " TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME ORACLE_SID=orcl; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK export LANG=AMERICAN_AMERICA.ZHS16GBK stty erase ^H" >> /home/oracle/.bash_profile ``` 输出结果: ``` TMP=/tmp; export TMP TMPDIR=; export TMPDIR ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=/product/11.2.0/db_1g/product/11.2.0/db_1; export ORACLE_HOME ORACLE_SID=orcl; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin; export PATH PATH=/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin; export PATH LD_LIBRARY_PATH=/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=/jre:/jlib:/rdbms/jlib; export CLASSPATH export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK export LANG=AMERICAN_AMERICA.ZHS16GBK stty erase ^H ```
用Ubuntu16.04编译iDT算法(c++)时报错:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':(.text+0x20): undefined reference to `main'
最近在学习iDT算法,刚刚接触Ubuntu也刚刚接触c++,很多东西不是很懂,请教各位: 我在编译iDT算法的时候,需要依赖opencv和ffmpeg两个库,我安装成功并且确保这两个库能用之后,去编译iDT算法,'make'之后报错: ![图片说明](https://img-ask.csdn.net/upload/202001/10/1578648835_846854.png) 查过资料,有的人说是缺少main函数,但是我确保.cpp文件里是有main函数的。 也有帖子说是crt1.o文件的问题,也有帖子说是动态库的问题,现在很迷茫,不知道问题出在哪里,希望各位能够帮助我,万分感谢。 同时为了方便各位帮我找到问题,我上一下我的makefile文件以及Opencv和ffmpeg的安装信息。 Makefile文件 ``` # set the binaries that have to be built TARGETS := DenseTrack Video # set the build configuration set BUILD := release #BUILD := debug # set bin and build dirs BUILDDIR := .build_$(BUILD) BINDIR := $(BUILD) # libraries LDLIBS = $(addprefix -l, $(LIBS) $(LIBS_$(notdir $*))) LIBS := \ opencv_core opencv_highgui opencv_video opencv_imgproc \ avformat avdevice avutil avcodec swscale # set some flags and compiler/linker specific commands CXXFLAGS = -pipe -D __STDC_CONSTANT_MACROS -D STD=std -Wall $(CXXFLAGS_$(BUILD)) -I. -I/opt/include CXXFLAGS_debug := -ggdb CXXFLAGS_release := -O3 -DNDEBUG -ggdb LDFLAGS = -L/opt/lib -pipe -Wall $(LDFLAGS_$(BUILD)) LDFLAGS_debug := -ggdb LDFLAGS_release := -O3 -ggdb include make/generic.mk ``` 下面是opencv和ffmpeg的安装信息: ffmpeg: ![图片说明](https://img-ask.csdn.net/upload/202001/10/1578649174_591798.png) opencv: ![图片说明](https://img-ask.csdn.net/upload/202001/10/1578649330_643110.png) 恳请各位帮忙!!(小弟没有金币,没办法给悬赏,还请各位见谅!)
webrtc编译Android版本编译参数is_clang=false时,编译报错,is_clang=true时,编译成功。
[2274/3376] LINK ./rgba_to_i420_converter FAILED: rgba_to_i420_converter exe.unstripped/rgba_to_i420_converter python "../../build/toolchain/gcc_link_wrapper.py" --output="./rgba_to_i420_converter" --strip="../../buildtools/third_party/eu-strip/bin/eu-strip" --unstripped-file="./exe.unstripped/rgba_to_i420_converter" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -fuse-ld=gold -Wl,--icf=all -Wl,--exclude-libs=libgcc.a -Wl,--exclude-libs=libvpx_assembly_arm.a --target=aarch64-linux-android -Wl,-mllvm,-enable-machine-outliner=never -Wl,--warn-shared-textrel -Wl,-O2 -Wl,--gc-sections -nodefaultlibs --sysroot=../../third_party/android_ndk/platforms/android-21/arch-arm64 -nostdlib -Wl,--warn-shared-textrel -pie -Bdynamic -Wl,-z,nocopyreloc -Wl,--dynamic-linker,/system/bin/linker64 -L../../third_party/android_ndk/sources/cxx-stl/llvm-libc++/libs/arm64-v8a -o "./exe.unstripped/rgba_to_i420_converter" -Wl,--start-group @"./rgba_to_i420_converter.rsp" -Wl,--end-group ../../third_party/android_ndk/platforms/android-21/arch-arm64/usr/lib/crtbegin_dynamic.o -lc -lgcc_s -lm -lrt -landroid_support ../../third_party/android_ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a -ldl -llog -lGLESv2 ../../third_party/android_ndk/platforms/android-21/arch-arm64/usr/lib/crtend_android.o /usr/bin/ld.gold: fatal error: obj/rtc_tools/rgba_to_i420_converter/converter.o: unsupported ELF machine number 183 clang: error: linker command failed with exit code 1 (use -v to see invocation)
lua+torch7安装svm包出错:/usr/bin/ld: cannot find -lluajit
``` [ 13%] Building C object CMakeFiles/svmutil.dir/util.c.o [ 18%] Linking C shared module libsvmutil.so /usr/bin/ld: cannot find -lluajit collect2: error: ld returned 1 exit status CMakeFiles/svmutil.dir/build.make:114: recipe for target 'libsvmutil.so' failed make[2]: *** [libsvmutil.so] Error 1 CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/svmutil.dir/all' failed make[1]: *** [CMakeFiles/svmutil.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 ``` 使用命令luarocks install svm安装后就提示上面的错误了。 以为是lua安装的问题,但是不导入svm的包时,lua代码运行没有问题。 查看lua版本是: ``` (base) mashuo@hri_four:~/work/paper/soundnet$ luajit -v LuaJIT 2.1.0-beta1 -- Copyright (C) 2005-2015 Mike Pall. http://luajit.org/ ``` 所以想请问一下,是哪里出现的问题呢,是需要重新安装lua吗,还是哪里有问题呢。。。 我的账号里没有悬赏用的币。。。 解决问题后,可以私我,发个50块红包略表谢意哈,谢谢大家
Gnuplot make时报错,有兄弟能帮忙解答怎么办么
/usr/local/include/readline/readline.h:64: error: redefinition of ‘struct _hist_entry’ /usr/local/include/readline/readline.h:94: error: conflicting types for ‘add_history’ /usr/include/readline/history.h:83: error: previous declaration of ‘add_history’ was here
usvn可以看见登录页面,但是点击登录就报错
/usr/local/usvn/library/Zend/Db/Adapter/Abstract.php:304 Zend_Db_Adapter_Mysqli::_connect /usr/local/usvn/library/Zend/Db/Adapter/Mysqli.php:194 Zend_Db_Adapter_Abstract::getConnection /usr/local/usvn/library/Zend/Db/Table/Abstract.php:823 Zend_Db_Adapter_Mysqli::describeTable /usr/local/usvn/library/Zend/Db/Table/Abstract.php:845 Zend_Db_Table_Abstract::_setupMetadata /usr/local/usvn/library/Zend/Db/Table/Abstract.php:885 Zend_Db_Table_Abstract::_getCols /usr/local/usvn/library/Zend/Db/Table/Abstract.php:969 Zend_Db_Table_Abstract::_setupPrimaryKey /usr/local/usvn/library/USVN/Db/Table.php:100 Zend_Db_Table_Abstract::info /usr/local/usvn/library/Zend/Db/Table/Select.php:100 USVN_Db_Table::info /usr/local/usvn/library/Zend/Db/Table/Select.php:78 Zend_Db_Table_Select::setTable /usr/local/usvn/library/Zend/Db/Table/Abstract.php:1005 Zend_Db_Table_Select::__construct /usr/local/usvn/library/Zend/Db/Table/Abstract.php:1351 Zend_Db_Table_Abstract::select /usr/local/usvn/library/USVN/Auth/Adapter/Database.php:51 Zend_Db_Table_Abstract::fetchRow /usr/local/usvn/library/Zend/Auth.php:117 USVN_Auth_Adapter_Database::authenticate /usr/local/usvn/app/controllers/LoginController.php:77 Zend_Auth::authenticate /usr/local/usvn/app/controllers/LoginController.php:36 LoginController::_doLogin /usr/local/usvn/library/Zend/Controller/Action.php:513 LoginController::loginAction /usr/local/usvn/library/Zend/Controller/Dispatcher/Standard.php:295 Zend_Controller_Action::dispatch /usr/local/usvn/library/Zend/Controller/Front.php:954 Zend_Controller_Dispatcher_Standard::dispatch /usr/local/usvn/public/index.php:5 Zend_Controller_Front::dispatch
Cmake时报错:Could NOT find ImageMagick
安装zimg时报错 CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message): Could NOT find ImageMagick (missing: ImageMagick_MagickWand_LIBRARY) (found version "6.8.7-2") Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindImageMagick.cmake:208 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:79 (find_package) CmakeLists.txt 79行内容为: find_package(ImageMagick COMPONENTS MagickWand REQUIRED)
MAC系统下/usr/bin/java指向路径问题
通过ls -l java查看,java命令指向 /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java 但是我执行/usr/libexec/java_home -V 显示如下: Matching Java Virtual Machines (3): 1.7.0_79, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home 1.6.0_65-b14-468, x86_64: "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 1.6.0_65-b14-468, i386: "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home 之前查过很多网站,/LibraryL/java...下应该改是第三方JAVA的安装目录,为啥/usr/bin/java不指向这个目录下,而指向/System/Library下呢? 另外我再本地同时装了1.6和1.7,通过修改JAVA_HOME切换版本后,发现/usr/bin/java的指向始终没变,这个/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java文件到底是如何实现自动指向的呢?
mod_tile编译出错 -std=c++11 or -std=gnu++11
make[1]: 正在进入目录 `/home/wml/src/mod_tile-master' depbase=`echo src/gen_tile.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -I./includes -I/usr/include/freetype2 -pthread -I/usr/local/include -I/usr/local/include/mapnik/agg -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/cairomm-1.0 -I/usr/lib/i386-linux-gnu/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib/i386-linux-gnu/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DSYSTEM_LIBINIPARSER=0 -g -O2 -MT src/gen_tile.o -MD -MP -MF $depbase.Tpo -c -o src/gen_tile.o src/gen_tile.cpp &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/c++/4.8/mutex:35:0, from /usr/local/include/mapnik/config.hpp:56, from /usr/local/include/mapnik/color.hpp:27, from /usr/local/include/mapnik/map.hpp:27, from src/gen_tile.cpp:2: /usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. 楼主:这个问题怎么解决?
ubuntu下安装 hexo失败
执行 sudo npm install hexo -g时 报错 贴上报错 ``` npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian > dtrace-provider@0.6.0 install /usr/local/lib/node_modules/hexo/node_modules/hexo-log/node_modules/bunyan/node_modules/dtrace-provider > node scripts/install.js sh: 1: node: not found npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian npm WARN optional dep failed, continuing dtrace-provider@0.6.0 npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/cssstyle/lib/properties' npm ERR! error rolling back hexo@3.2.0 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/cssstyle/lib/properties'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/cssstyle/lib/properties' } npm ERR! spawn-sync@1.0.15 postinstall: `node postinstall` npm ERR! Exit status 127 npm ERR! npm ERR! Failed at the spawn-sync@1.0.15 postinstall script. npm ERR! This is most likely a problem with the spawn-sync package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node postinstall npm ERR! You can get their info via: npm ERR! npm owner ls spawn-sync npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.19.0-51-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g" npm ERR! cwd /home/sjd/code npm ERR! node -v v0.10.25 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/hawk/lib/server.js' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/npm/npm/issues> npm ERR! System Linux 3.19.0-51-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g" npm ERR! cwd /home/sjd/code npm ERR! node -v v0.10.25 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/hawk/lib/server.js npm ERR! code ENOENT npm ERR! errno 34 npm ERR! EEXIST, mkdir '/usr/local/lib/node_modules/hexo/node_modules/warehouse/node_modules/cuid/node_modules/core-js/library/fn/symbol' File exists: /usr/local/lib/node_modules/hexo/node_modules/warehouse/node_modules/cuid/node_modules/core-js/library/fn/symbol Move it away, and try again. npm ERR! System Linux 3.19.0-51-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g" npm ERR! cwd /home/sjd/code npm ERR! node -v v0.10.25 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/hexo/node_modules/warehouse/node_modules/cuid/node_modules/core-js/library/fn/symbol npm ERR! fstream_path /usr/local/lib/node_modules/hexo/node_modules/warehouse/node_modules/cuid/node_modules/core-js/library/fn/symbol/iterator.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code EEXIST npm ERR! errno 47 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/LICENSE' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/npm/npm/issues> npm ERR! System Linux 3.19.0-51-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g" npm ERR! cwd /home/sjd/code npm ERR! node -v v0.10.25 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/LICENSE npm ERR! fstream_path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/LICENSE npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/npm/npm/issues> npm ERR! System Linux 3.19.0-51-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "hexo" "-g" npm ERR! cwd /home/sjd/code npm ERR! node -v v0.10.25 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js npm ERR! fstream_path /usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/hexo/node_modules/cheerio/node_modules/jsdom/node_modules/request/node_modules/bl/node_modules/readable-stream/doc/stream.markdown' npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/npm/npm/issues> ```
编译opencv3.4.1出现异常
//usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFIsTiled@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFDefaultStripSize@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFReadTile@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `_TIFFfree@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFGetField@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFTileSize@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFWriteDirectory@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFClose@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFGetFieldDefaulted@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libvtkIOImage-6.3.so.6.3: undefined reference to `TIFFNumberOfDirectories@LIBTIFF_4.0'
Mysql5.7.19交叉编译用于移植ARM时编译出现问题,求助
ometry/util/math.hpp:28, from /root/work/mysql-arm/sql/gis_bg_traits.h:38, from /root/work/mysql-arm/sql/item_geofunc_internal.h:35, from /root/work/mysql-arm/sql/geometry_rtree.cc:16: /usr/bin/locale:16:279: error: expected declaration before ‘}’ token make[2]: *** [sql/CMakeFiles/sql.dir/geometry_rtree.cc.o] Error 1 make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2 make: *** [all] Error 2 源码是mysql-boost-5.7.19.tar.gz 位将源码解压复制成两份,mysql-64/ 、 mysql-arm。一份用于CentOs64位上gcc编译,一份用于交叉编译。编译到45%左右死活过不去。求解 贴上错误log [ 45%] Building CXX object sql/CMakeFiles/sql.dir/geometry_rtree.cc.o In file included from /usr/bin/boost/lexical_cast/detail/converter_lexical_streams.hpp:43:0, from /usr/bin/boost/lexical_cast/detail/converter_lexical.hpp:54, from /usr/bin/boost/lexical_cast/try_lexical_convert.hpp:35, from /usr/bin/boost/lexical_cast.hpp:32, from /usr/bin/boost/math/constants/constants.hpp:18, from /root/work/mysql-arm/include/boost_1_59_0/patches/boost/geometry/util/math.hpp:28, from /root/work/mysql-arm/sql/gis_bg_traits.h:38, from /root/work/mysql-arm/sql/item_geofunc_internal.h:35, from /root/work/mysql-arm/sql/geometry_rtree.cc:16: /usr/bin/locale:1:1: error: stray â<80><98>\177â<80><99> in program ^?ELF^B^A^Aso.2^BX W H<8b>|$^Hè<93>úÿÿL<89>ÿè[^F^C¾ÿÿÿÿé^FÿÿÿH<89>ëéîþÿÿf<90>f.^O^_<84>tD<84>Àt@Áà^L%^O<84>ÿ^O<84>ÐÆ^AH<83>Á^A<8b>^U _ ëÀH<85>Û^O<84>ÎýÿÿI<89>Åé^Cþÿÿ1Òé.ÿÿÿ<8b>^U<81>^ H<8b><85>PßÿÿL<8d><85><80>ßÿÿL<89>êL)úL<89>ù¿@[@I<8b>6H<8d><95><80>ßÿÿ¿ ^ /usr/bin/locale:1:1: error: stray â<80><98>\2â<80><99> in program ./usr/bin/locale:1:1: error: stray â<80><98>\2â<80><99> in program /usr/bin/locale:1:1: error: stray â<80><98>\1â<80><99> in program /usr/bin/locale:1:1: error: stray â<80><98>\1â<80><99> in program /usr/bin/locale:1:8: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:1: error: stray â<80><98>\2â<80><99> in program /usr/bin/locale:1:18: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:20: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:1: error: stray â<80><98>\1â<80><99> in program /usr/bin/locale:1:22: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:27: error: stray â<80><98>@â<80><99> in program /usr/bin/locale:1:28: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:33: error: stray â<80><98>@â<80><99> in program /usr/bin/locale:1:34: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:1: error: stray â<80><98>\330â<80><99> in program /usr/bin/locale:1:1: error: stray â<80><98>\217â<80><99> in program /usr/bin/locale:1:43: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:53: error: stray â<80><98>@â<80><99> in program /usr/bin/locale:1:54: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:56: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:59: error: stray â<80><98>@â<80><99> in program /usr/bin/locale:1:60: warning: null character(s) ignored [enabled by default] /usr/bin/locale:1:1: error: stray â<80><98>\35â<80><99> in program . . . . . . . from /usr/bin/boost/lexical_cast/try_lexical_convert.hpp:35, from /usr/bin/boost/lexical_cast.hpp:32, from /usr/bin/boost/math/constants/constants.hpp:18, from /root/work/mysql-arm/include/boost_1_59_0/patches/boost/geometry/util/math.hpp:28, from /root/work/mysql-arm/sql/gis_bg_traits.h:38, from /root/work/mysql-arm/sql/item_geofunc_internal.h:35, from /root/work/mysql-arm/sql/geometry_rtree.cc:16: /usr/bin/locale:5:721: error: ‘libc’ does not name a type In file included from /usr/bin/boost/lexical_cast/detail/converter_lexical_streams.hpp:43:0, from /usr/bin/boost/lexical_cast/detail/converter_lexical.hpp:54, from /usr/bin/boost/lexical_cast/try_lexical_convert.hpp:35, from /usr/bin/boost/lexical_cast.hpp:32, from /usr/bin/boost/math/constants/constants.hpp:18, from /root/work/mysql-arm/include/boost_1_59_0/patches/boost/geometry/util/math.hpp:28, from /root/work/mysql-arm/sql/gis_bg_traits.h:38, from /root/work/mysql-arm/sql/item_geofunc_internal.h:35, from /root/work/mysql-arm/sql/geometry_rtree.cc:16: /usr/bin/locale:12:234: error: expected unqualified-id before numeric constant In file included from /usr/bin/boost/lexical_cast/detail/converter_lexical_streams.hpp:43:0, from /usr/bin/boost/lexical_cast/detail/converter_lexical.hpp:54, from /usr/bin/boost/lexical_cast/try_lexical_convert.hpp:35, from /usr/bin/boost/lexical_cast.hpp:32, from /usr/bin/boost/math/constants/constants.hpp:18, from /root/work/mysql-arm/include/boost_1_59_0/patches/boost/geometry/util/math.hpp:28, from /root/work/mysql-arm/sql/gis_bg_traits.h:38, from /root/work/mysql-arm/sql/item_geofunc_internal.h:35, from /root/work/mysql-arm/sql/geometry_rtree.cc:16: /usr/bin/locale:16:279: error: expected declaration before ‘}’ token make[2]: *** [sql/CMakeFiles/sql.dir/geometry_rtree.cc.o] Error 1 make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2 make: *** [all] Error 2
CentOS安装FastDfs错误
最近在CentOS上安装FastDFS在 编译时出现 /usr/local/lib/libfastcommon.so: undefined reference to `sqrt' /usr/local/lib/libfastcommon.so: undefined reference to `cos' 错误,请哪位大神帮忙解决一下。 详细错误如下: ``` cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o fdfs_trackerd fdfs_trackerd.c ../common/fdfs_global.o tracker_proto.o tracker_mem.o tracker_service.o tracker_status.o tracker_global.o tracker_func.o fdfs_shared_func.o tracker_nio.o tracker_relationship.o tracker_dump.o ../common/linux_stack_trace.o -L/usr/local/lib -lpthread -lrt -ldl -rdynamic -lfastcommon -I../common -I/usr/include/fastcommon /usr/local/lib/libfastcommon.so: undefined reference to `sqrt' /usr/local/lib/libfastcommon.so: undefined reference to `cos' collect2: ld 返回 1 make: *** [fdfs_trackerd] 错误 1 cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o fdfs_storaged fdfs_storaged.c ../common/fdfs_global.o ../tracker/fdfs_shared_func.o ../tracker/tracker_proto.o tracker_client_thread.o storage_global.o storage_func.o storage_service.o storage_sync.o storage_nio.o storage_dio.o storage_ip_changed_dealer.o storage_param_getter.o storage_disk_recovery.o trunk_mgr/trunk_mem.o trunk_mgr/trunk_shared.o trunk_mgr/trunk_sync.o trunk_mgr/trunk_client.o trunk_mgr/trunk_free_block_checker.o ../client/client_global.o ../client/tracker_client.o ../client/storage_client.o ../client/client_func.o fdht_client/fdht_proto.o fdht_client/fdht_client.o fdht_client/fdht_func.o fdht_client/fdht_global.o storage_dump.o ../common/linux_stack_trace.o -L/usr/local/lib -lpthread -lrt -ldl -rdynamic -lfastcommon -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon /usr/local/lib/libfastcommon.so: undefined reference to `sqrt' /usr/local/lib/libfastcommon.so: undefined reference to `cos' collect2: ld 返回 1 make: *** [fdfs_storaged] 错误 1 cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o fdfs_monitor fdfs_monitor.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -lrt -ldl -rdynamic -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon /usr/lib/gcc/i686-redhat-linux/4.4.7/../../../libfastcommon.so: undefined reference to `sqrt' /usr/lib/gcc/i686-redhat-linux/4.4.7/../../../libfastcommon.so: undefined reference to `cos' ``` 环境:CentOS6.x, FastDFS-5.05 此问题已解决: 此问题是由于 libfastcommon-master 版本问题,改为libfastcommon-1.0.7后,再进行编译就OK了。
动态规划入门到熟悉,看不懂来打我啊
持续更新。。。。。。 2.1斐波那契系列问题 2.2矩阵系列问题 2.3跳跃系列问题 3.1 01背包 3.2 完全背包 3.3多重背包 3.4 一些变形选讲 2.1斐波那契系列问题 在数学上,斐波纳契数列以如下被以递归的方法定义:F(0)=0,F(1)=1, F(n)=F(n-1)+F(n-2)(n&gt;=2,n∈N*)根据定义,前十项为1, 1, 2, 3...
程序员,职场上请远离这种人!
对有些职场人来讲,甩锅就是一种生存手段。01.从大学打篮球说起上大学的时候喜欢打篮球,然后我又特别喜欢抢篮板,经常是跳起来的时候没事,落下来的时候偶尔会踩到别人的脚上,于...
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私...
对计算机专业来说学历真的重要吗?
我本科学校是渣渣二本,研究生学校是985,现在毕业五年,校招笔试、面试,社招面试参加了两年了,就我个人的经历来说下这个问题。 这篇文章很长,但绝对是精华,相信我,读完以后,你会知道学历不好的解决方案,记得帮我点赞哦。 先说结论,无论赞不赞同,它本质就是这样:对于技术类工作而言,学历五年以内非常重要,但有办法弥补。五年以后,不重要。 目录: 张雪峰讲述的事实 我看到的事实 为什么会这样 ...
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
Python——画一棵漂亮的樱花树(不同种樱花+玫瑰+圣诞树喔)
最近翻到一篇知乎,上面有不少用Python(大多是turtle库)绘制的树图,感觉很漂亮,我整理了一下,挑了一些我觉得不错的代码分享给大家(这些我都测试过,确实可以生成) one 樱花树 动态生成樱花 效果图(这个是动态的): 实现代码 import turtle as T import random import time # 画樱花的躯干(60,t) def Tree(branch, ...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
一个读研让我损失了一百万的真实故事
关注我!只要10分钟,包你学会数据分析 毕业后,应该就业还是考研? 我刚出国留学那会儿,就惊讶的发现,外国local95%都不会选择读研 他们说,硕士学费很贵,时间宝贵,老板不认,所以很费 当几乎所有人都是本科学历时,硕士学历反而像个异类 在老板眼里,三年硕士远远不如3年的工作经验实用 他们甚至专门为拒绝高学历者发明了一个词,叫overoccupie...
Python 植物大战僵尸代码实现(2):植物卡片选择和种植
这篇文章要介绍的是: - 上方植物卡片栏的实现。 - 点击植物卡片,鼠标切换为植物图片。 - 鼠标移动时,判断当前在哪个方格中,并显示半透明的植物作为提示。
西游记团队中如果需要裁掉一个人,会先裁掉谁?
2019年互联网寒冬,大批企业开始裁员,下图是网上流传的一张截图: 裁员不可避免,那如何才能做到不管大环境如何变化,自身不受影响呢? 我们先来看一个有意思的故事,如果西游记取经团队需要裁员一名,会裁掉谁呢,为什么? 西游记团队组成: 1.唐僧 作为团队teamleader,有很坚韧的品性和极高的原则性,不达目的不罢休,遇到任何问题,都没有退缩过,又很得上司支持和赏识(直接得到唐太宗的任命,既给
shell脚本:备份数据库、代码上线
备份MySQL数据库 场景: 一台MySQL服务器,跑着5个数据库,在没有做主从的情况下,需要对这5个库进行备份 需求: 1)每天备份一次,需要备份所有的库 2)把备份数据存放到/data/backup/下 3)备份文件名称格式示例:dbname-2019-11-23.sql 4)需要对1天以前的所有sql文件压缩,格式为gzip 5)本地数据保留1周 6)需要把备份的数据同步到远程备份中心,假如...
聊聊C语言和指针的本质
坐着绿皮车上海到杭州,24块钱,很宽敞,在火车上非正式地聊几句。 很多编程语言都以 “没有指针” 作为自己的优势来宣传,然而,对于C语言,指针却是与生俱来的。 那么,什么是指针,为什么大家都想避开指针。 很简单, 指针就是地址,当一个地址作为一个变量存在时,它就被叫做指针,该变量的类型,自然就是指针类型。 指针的作用就是,给出一个指针,取出该指针指向地址处的值。为了理解本质,我们从计算机模型说起...
为什么你学不过动态规划?告别动态规划,谈谈我的经验
动态规划难吗?说实话,我觉得很难,特别是对于初学者来说,我当时入门动态规划的时候,是看 0-1 背包问题,当时真的是一脸懵逼。后来,我遇到动态规划的题,看的懂答案,但就是自己不会做,不知道怎么下手。就像做递归的题,看的懂答案,但下不了手,关于递归的,我之前也写过一篇套路的文章,如果对递归不大懂的,强烈建议看一看:为什么你学不会递归,告别递归,谈谈我的经验 对于动态规划,春招秋招时好多题都会用到动态...
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
字节跳动面试官这样问消息队列:分布式事务、重复消费、顺序消费,我整理了一下
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
如何安装 IntelliJ IDEA 最新版本——详细教程
IntelliJ IDEA 简称 IDEA,被业界公认为最好的 Java 集成开发工具,尤其在智能代码助手、代码自动提示、代码重构、代码版本管理(Git、SVN、Maven)、单元测试、代码分析等方面有着亮眼的发挥。IDEA 产于捷克,开发人员以严谨著称的东欧程序员为主。IDEA 分为社区版和付费版两个版本。 我呢,一直是 Eclipse 的忠实粉丝,差不多十年的老用户了。很早就接触到了 IDEA...
面试还搞不懂redis,快看看这40道面试题(含答案和思维导图)
Redis 面试题 1、什么是 Redis?. 2、Redis 的数据类型? 3、使用 Redis 有哪些好处? 4、Redis 相比 Memcached 有哪些优势? 5、Memcache 与 Redis 的区别都有哪些? 6、Redis 是单进程单线程的? 7、一个字符串类型的值能存储最大容量是多少? 8、Redis 的持久化机制是什么?各自的优缺点? 9、Redis 常见性...
大学四年自学走来,这些珍藏的「实用工具/学习网站」我全贡献出来了
知乎高赞:文中列举了互联网一线大厂程序员都在用的工具集合,涉及面非常广,小白和老手都可以进来看看,或许有新收获。
为什么要推荐大家学习字节码?
配套视频: 为什么推荐大家学习Java字节码 https://www.bilibili.com/video/av77600176/ 一、背景 本文主要探讨:为什么要学习 JVM 字节码? 可能很多人会觉得没必要,因为平时开发用不到,而且不学这个也没耽误学习。 但是这里分享一点感悟,即人总是根据自己已经掌握的知识和技能来解决问题的。 这里有个悖论,有时候你觉得有些技术没用恰恰是...
【超详细分析】关于三次握手与四次挥手面试官想考我们什么?
在面试中,三次握手和四次挥手可以说是问的最频繁的一个知识点了,我相信大家也都看过很多关于三次握手与四次挥手的文章,今天的这篇文章,重点是围绕着面试,我们应该掌握哪些比较重要的点,哪些是比较被面试官给问到的,我觉得如果你能把我下面列举的一些点都记住、理解,我想就差不多了。 三次握手 当面试官问你为什么需要有三次握手、三次握手的作用、讲讲三次三次握手的时候,我想很多人会这样回答: 首先很多人会先讲下握...
压测学习总结(1)——高并发性能指标:QPS、TPS、RT、吞吐量详解
一、QPS,每秒查询 QPS:Queries Per Second意思是“每秒查询率”,是一台服务器每秒能够相应的查询次数,是对一个特定的查询服务器在规定时间内所处理流量多少的衡量标准。互联网中,作为域名系统服务器的机器的性能经常用每秒查询率来衡量。 二、TPS,每秒事务 TPS:是TransactionsPerSecond的缩写,也就是事务数/秒。它是软件测试结果的测量单位。一个事务是指一...
新程序员七宗罪
当我发表这篇文章《为什么每个工程师都应该开始考虑开发中的分析和编程技能呢?》时,我从未想到它会对读者产生如此积极的影响。那些想要开始探索编程和数据科学领域的人向我寻求建议;还有一些人问我下一篇文章的发布日期;还有许多人询问如何顺利过渡到这个职业。我非常鼓励大家继续分享我在这个旅程的经验,学习,成功和失败,以帮助尽可能多的人过渡到一个充满无数好处和机会的职业生涯。亲爱的读者,谢谢你。 -罗伯特。 ...
2019年Spring Boot面试都问了什么?快看看这22道面试题!
Spring Boot 面试题 1、什么是 Spring Boot? 2、Spring Boot 有哪些优点? 3、什么是 JavaConfig? 4、如何重新加载 Spring Boot 上的更改,而无需重新启动服务器? 5、Spring Boot 中的监视器是什么? 6、如何在 Spring Boot 中禁用 Actuator 端点安全性? 7、如何在自定义端口上运行 Sprin...
【图解】记一次手撕算法面试:字节跳动的面试官把我四连击了
字节跳动这家公司,应该是所有秋招的公司中,对算法最重视的一个了,每次面试基本都会让你手撕算法,今天这篇文章就记录下当时被问到的几个算法题,并且每个算法题我都详细着给出了最优解,下面再现当时的面试场景。看完一定让你有所收获 一、小牛试刀:有效括号 大部分情况下,面试官都会问一个不怎么难的问题,不过你千万别太开心,因为这道题往往可以拓展出更多有难度的问题,或者一道题看起来很简单,但是给出最优解,确实很...
面试官:关于Java性能优化,你有什么技巧
通过使用一些辅助性工具来找到程序中的瓶颈,然后就可以对瓶颈部分的代码进行优化。 一般有两种方案:即优化代码或更改设计方法。我们一般会选择后者,因为不去调用以下代码要比调用一些优化的代码更能提高程序的性能。而一个设计良好的程序能够精简代码,从而提高性能。 下面将提供一些在JAVA程序的设计和编码中,为了能够提高JAVA程序的性能,而经常采用的一些方法和技巧。 1.对象的生成和大小的调整。 J...
【图解算法面试】记一次面试:说说游戏中的敏感词过滤是如何实现的?
版权声明:本文为苦逼的码农原创。未经同意禁止任何形式转载,特别是那些复制粘贴到别的平台的,否则,必定追究。欢迎大家多多转发,谢谢。 小秋今天去面试了,面试官问了一个与敏感词过滤算法相关的问题,然而小秋对敏感词过滤算法一点也没听说过。于是,有了下下事情的发生… 面试官开怼 面试官:玩过王者荣耀吧?了解过敏感词过滤吗?,例如在游戏里,如果我们发送“你在干嘛?麻痹演员啊你?”,由于“麻痹”是一个敏感词,...
GitHub 标星 1.6w+,我发现了一个宝藏项目,作为编程新手有福了!
大家好,我是 Rocky0429,一个最近老在 GitHub 上闲逛的蒟蒻… 特别惭愧的是,虽然我很早就知道 GitHub,但是学会逛 GitHub 的时间特别晚。当时一方面是因为菜,看着这种全是英文的东西难受,不知道该怎么去玩,另一方面是一直在搞 ACM,没有做一些工程类的项目,所以想当然的以为和 GitHub 也没什么关系(当然这种想法是错误的)。 后来自己花了一个星期看完了 Pyt...
杭漂程序员2019的心路历程,还不起助学贷款,交不起房租,披荆斩棘终雨过天晴
一个杭漂2019的心酸历程,一路披荆斩棘终于还是雨过天晴。
我采访了同事,让他掏出了每天都会浏览的干货网站
前言只有光头才能变强。文本已收录至我的GitHub精选文章,欢迎Star:https://github.com/ZhongFuCheng3y/3y在周六的晚上,我日常去到公司写文章。想写...
相关热词 c# id读写器 c#俄罗斯方块源码 c# linq原理 c# 装箱有什么用 c#集合 复制 c# 一个字符串分组 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图
立即提问