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) ``` 但是我不是很懂 ,请大家帮帮忙看看是什么原因呀!
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)
用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) 恳请各位帮忙!!(小弟没有金币,没办法给悬赏,还请各位见谅!)
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 ```
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)
/usr/bin/ld: cannot find -lOPTIONS 无法找到OPTIONS库。
我在UBUNTU 18.04 下用CUDA 10.2 和 C++11标准编译一个较大的工程。 Makefile 是用CMAKE文件生成的。当我在terminal完成编译时显示了如下错误: ``` /usr/bin/ld: cannot find -lOPTIONS collect2: error: ld returned 1 exit status CMakeFiles/cuda_othermain.dir/build.make:132: recipe for target 'bin/cuda_othermain' failed make[2]: *** [bin/cuda_othermain] Error 1 CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/cuda_othermain.dir/all' failed make[1]: *** [CMakeFiles/cuda_othermain.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 ``` 提示是找不到一个叫OPTIONS的库。我的camke和源码里都没有链接这个库,而且我在网上搜索也根本没有一个库叫做OPTIONS。我很疑惑,编译工程时没有显示任何其他错误,顶多就是有几个warning,我查了一下都是没有太大关系的。所以现在没有什么思路去解决这个问题。 所以想请教一下各位有没有什么解决思路。 CMAKE文件如下: ``` cmake_minimum_required (VERSION 3.8 FATAL_ERROR) #project (cusam_cuda) project(cusam_cuda LANGUAGES C CXX CUDA) find_package(CUDA 10.2 REQUIRED) set(CUDA_NVCC_FLAGS -std=c++11 -L/usr/local/cuda-10.2/lib64 -lcudart -lcuda) set(CMAKE_CXX_STANDARD 11) if (CUDA_VERBOSE_PTXAS) set(VERBOSE_PTXAS --ptxas-options=-v) endif (CUDA_VERBOSE_PTXAS) #set(CMAKE_BUILD_TYPE "Release") set(CMAKE_BUILD_TYPE "Debug") SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CUDA_NVCC_FLAGS} -O0 -Wall -g -ggdb") SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CUDA_NVCC_FLAGS} -O3 -Wall") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(GENCODE_SM30 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_30,code=compute_30) set(GENCODE_SM35 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_35,code=compute_35) set(GENCODE_SM37 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_37,code=compute_37) set(GENCODE_SM50 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_50,code=compute_50) set(GENCODE_SM60 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60) set(GENCODE_SM61 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_61,code=compute_61) set(GENCODE_SM70 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_70,code=compute_70) set(GENCODE_SM71 -gencode=arch=compute_71,code=sm_71 -gencode=arch=compute_71,code=compute_71) set(GENCODE_SM75 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_75,code=compute_75) option(CUDAMATRIX_GENCODE_SM30 "GENCODE_SM30" OFF) option(CUDAMATRIX_GENCODE_SM35 "GENCODE_SM35" ON) option(CUDAMATRIX_GENCODE_SM37 "GENCODE_SM37" OFF) option(CUDAMATRIX_GENCODE_SM50 "GENCODE_SM50" OFF) option(CUDAMATRIX_GENCODE_SM60 "GENCODE_SM60" OFF) option(CUDAMATRIX_GENCODE_SM61 "GENCODE_SM61" OFF) option(CUDAMATRIX_GENCODE_SM70 "GENCODE_SM70" OFF) option(CUDAMATRIX_GENCODE_SM71 "GENCODE_SM71" OFF) option(CUDAMATRIX_GENCODE_SM75 "GENCODE_SM75" OFF) if (CUDAMATRIX_GENCODE_SM37) set(GENCODE ${GENCODE} ${GENCODE_SM37}) endif(CUDAMATRIX_GENCODE_SM37) if (CUDAMATRIX_GENCODE_SM50) set(GENCODE ${GENCODE} ${GENCODE_SM50}) endif(CUDAMATRIX_GENCODE_SM50) if (CUDAMATRIX_GENCODE_SM60) set(GENCODE ${GENCODE} ${GENCODE_SM60}) endif(CUDAMATRIX_GENCODE_SM60) if (CUDAMATRIX_GENCODE_SM61) set(GENCODE ${GENCODE} ${GENCODE_SM61}) endif(CUDAMATRIX_GENCODE_SM61) if (CUDAMATRIX_GENCODE_SM70) set(GENCODE ${GENCODE} ${GENCODE_SM70}) endif(CUDAMATRIX_GENCODE_SM70) if(CUDAMATRIX_GENCODE_SM71) set(GENCODE ${GENCODE} ${GENCODE_SM71}) endif(CUDAMATRIX_GENCODE_SM71) if(CUDAMATRIX_GENCODE_SM75) set(GENCODE ${GENCODE} ${GENCODE_SM75}) endif(CUDAMATRIX_GENCODE_SM75) include_directories(/usr/local/cuda/include) include_directories(utils) #include_directories(3rdparty/googletest/googletest) #include_directories(3rdparty/googletest/googletest/include) #add_subdirectory(3rdparty/googletest/googletest googletest.out) add_subdirectory(geometry) add_subdirectory(navigation) add_subdirectory(3rdparty) add_subdirectory(nonlinear) add_subdirectory(inference) add_subdirectory(mat) add_subdirectory(miniblas) add_subdirectory(miniblas/cblas) add_subdirectory(miniblas/blas) add_subdirectory(miniblas/permutation) add_subdirectory(miniblas/sys) add_subdirectory(miniblas/linalg) add_subdirectory(linear) #add_subdirectory(test) #cuda_add_executable(imukittiexamplegps_gaussiannewton imukittiexamplegps_gaussiannewton.cpp # OPTIONS ${GENCODE} ${CUDA_VERBOSE_PTXAS}) #target_link_libraries(imukittiexamplegps_gaussiannewton geometry miniblas blas cblas linalg permutation sys navigation 3rdparty linear nonlinear inference mat) #cuda_add_executable(othermain othermain.cpp # OPTIONS ${GENCODE} ${CUDA_VERBOSE_PTXAS}) #target_link_libraries(othermain geometry miniblas blas cblas linalg permutation sys navigation 3rdparty linear nonlinear inference mat) target_compile_features(nonlinear PUBLIC cxx_std_11) cuda_add_executable(cuda_othermain cuda_othermain.cu OPTIONS ${GENCODE} ${CUDA_VERBOSE_PTXAS}) target_compile_features(cuda_othermain PUBLIC cxx_std_11) set_target_properties(cuda_othermain PROPERTIES CUDA_SEPARABLE_COMPILATION ON) target_link_libraries(cuda_othermain geometry miniblas blas cblas linalg permutation sys navigation 3rdparty linear nonlinear inference mat) ``` 源代码就没发帖了,因为工程还算比较大。有劳各位了。
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'
加载resnet网络 训练好PB模型加载的时候遇到如下错误? 如何解决? 求助
``` 2019-11-27 02:18:29 UTC [MainThread ] - /home/mind/app.py[line:121] - INFO: args: Namespace(model_name='serve', model_path='/home/mind/model/1', service_file='/home/mind/model/1/customize_service.py', tf_server_name='127.0.0.1') 2019-11-27 02:18:36.823910: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA Using TensorFlow backend. [2019-11-27 02:18:37 +0000] [68] [ERROR] Exception in worker process Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process self.load_wsgi() File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/local/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load return self.load_wsgiapp() File "/usr/local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app __import__(module) File "/home/mind/app.py", line 145, in model_service = class_defs[0](model_name, model_path) File "/home/mind/model/1/customize_service.py", line 39, in __init__ meta_graph_def = tf.saved_model.loader.load(self.sess, [tag_constants.SERVING], self.model_path) File "/usr/local/lib/python3.6/site-packages/tensorflow/python/saved_model/loader_impl.py", line 219, in load saver = tf_saver.import_meta_graph(meta_graph_def_to_load, **saver_kwargs) File "/usr/local/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1955, in import_meta_graph **kwargs) File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/meta_graph.py", line 743, in import_scoped_meta_graph producer_op_list=producer_op_list) File "/usr/local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 432, in new_func return func(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 460, in import_graph_def _RemoveDefaultAttrs(op_dict, producer_op_list, graph_def) File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 227, in _RemoveDefaultAttrs op_def = op_dict[node.op] KeyError: 'DivNoNan' ```
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了。
linux下php添加mysqli拓展库时,编译报错
php和mysql都是已经编译安装好了,现在想要给php添加mysqli 拓展库,结果在make的时候报错 ``` cd /usr/local/src/php-5.6.19/ext/mysqli /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config make ``` 报错信息如下: ``` [root@zhoujun mysqli]# make /bin/sh /usr/local/src/php-5.6.19/ext/mysqli/libtool --mode=compile cc -I. -I/usr/local/src/php-5.6.19/ext/mysqli -DPHP_ATOM_INC -I/usr/local/src/php-5.6.19/ext/mysqli/include -I/usr/local/src/php-5.6.19/ext/mysqli/main -I/usr/local/src/php-5.6.19/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/local/mysql/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c -o mysqli_api.lo cc -I. -I/usr/local/src/php-5.6.19/ext/mysqli -DPHP_ATOM_INC -I/usr/local/src/php-5.6.19/ext/mysqli/include -I/usr/local/src/php-5.6.19/ext/mysqli/main -I/usr/local/src/php-5.6.19/ext/mysqli -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/local/mysql/include -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c -fPIC -DPIC -o .libs/mysqli_api.o 在包含自 /usr/local/mysql/include/my_global.h:68 的文件中, 从 /usr/local/src/php-5.6.19/ext/mysqli/php_mysqli_structs.h:63, 从 /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c:34: /usr/local/mysql/include/my_config.h:649:1: 警告:“PACKAGE_NAME”重定义 在包含自 /usr/local/php/include/php/TSRM/tsrm_config.h:1 的文件中, 从 /usr/local/php/include/php/TSRM/tsrm_config_common.h:13, 从 /usr/local/php/include/php/Zend/zend_virtual_cwd.h:27, 从 /usr/local/php/include/php/main/php.h:404, 从 /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c:29: /usr/local/php/include/php/main/../main/php_config.h:2192:1: 警告:这是先前定义的位置 在包含自 /usr/local/mysql/include/my_global.h:68 的文件中, 从 /usr/local/src/php-5.6.19/ext/mysqli/php_mysqli_structs.h:63, 从 /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c:34: /usr/local/mysql/include/my_config.h:650:1: 警告:“PACKAGE_STRING”重定义 在包含自 /usr/local/php/include/php/TSRM/tsrm_config.h:1 的文件中, 从 /usr/local/php/include/php/TSRM/tsrm_config_common.h:13, 从 /usr/local/php/include/php/Zend/zend_virtual_cwd.h:27, 从 /usr/local/php/include/php/main/php.h:404, 从 /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c:29: /usr/local/php/include/php/main/../main/php_config.h:2195:1: 警告:这是先前定义的位置 在包含自 /usr/local/mysql/include/my_global.h:68 的文件中, 从 /usr/local/src/php-5.6.19/ext/mysqli/php_mysqli_structs.h:63, 从 /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c:34: /usr/local/mysql/include/my_config.h:651:1: 警告:“PACKAGE_TARNAME”重定义 在包含自 /usr/local/php/include/php/TSRM/tsrm_config.h:1 的文件中, 从 /usr/local/php/include/php/TSRM/tsrm_config_common.h:13, 从 /usr/local/php/include/php/Zend/zend_virtual_cwd.h:27, 从 /usr/local/php/include/php/main/php.h:404, 从 /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c:29: /usr/local/php/include/php/main/../main/php_config.h:2198:1: 警告:这是先前定义的位置 在包含自 /usr/local/mysql/include/my_global.h:68 的文件中, 从 /usr/local/src/php-5.6.19/ext/mysqli/php_mysqli_structs.h:63, 从 /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c:34: /usr/local/mysql/include/my_config.h:652:1: 警告:“PACKAGE_VERSION”重定义 在包含自 /usr/local/php/include/php/TSRM/tsrm_config.h:1 的文件中, 从 /usr/local/php/include/php/TSRM/tsrm_config_common.h:13, 从 /usr/local/php/include/php/Zend/zend_virtual_cwd.h:27, 从 /usr/local/php/include/php/main/php.h:404, 从 /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c:29: /usr/local/php/include/php/main/../main/php_config.h:2204:1: 警告:这是先前定义的位置 /usr/local/src/php-5.6.19/ext/mysqli/mysqli_api.c:36:47: 错误:ext/mysqlnd/mysql_float_to_double.h:没有那个文件或目录 make: *** [mysqli_api.lo] 错误 1 ``` 求大虾帮忙!!。
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小型人工智障。 知识可以运用在不同地方,不一定非是天气预报。
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
英特尔不为人知的 B 面
从 PC 时代至今,众人只知在 CPU、GPU、XPU、制程、工艺等战场中,英特尔在与同行硬件芯片制造商们的竞争中杀出重围,且在不断的成长进化中,成为全球知名的半导体公司。殊不知,在「刚硬」的背后,英特尔「柔性」的软件早已经做到了全方位的支持与支撑,并持续发挥独特的生态价值,推动产业合作共赢。 而对于这一不知人知的 B 面,很多人将其称之为英特尔隐形的翅膀,虽低调,但是影响力却不容小觑。 那么,在...
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看...
白话阿里巴巴Java开发手册高级篇
不久前,阿里巴巴发布了《阿里巴巴Java开发手册》,总结了阿里巴巴内部实际项目开发过程中开发人员应该遵守的研发流程规范,这些流程规范在一定程度上能够保证最终的项目交付质量,通过在时间中总结模式,并推广给广大开发人员,来避免研发人员在实践中容易犯的错误,确保最终在大规模协作的项目中达成既定目标。 无独有偶,笔者去年在公司里负责升级和制定研发流程、设计模板、设计标准、代码标准等规范,并在实际工作中进行...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
Nginx 原理和架构
Nginx 是一个免费的,开源的,高性能的 HTTP 服务器和反向代理,以及 IMAP / POP3 代理服务器。Nginx 以其高性能,稳定性,丰富的功能,简单的配置和低资源消耗而闻名。 Nginx 的整体架构 Nginx 里有一个 master 进程和多个 worker 进程。master 进程并不处理网络请求,主要负责调度工作进程:加载配置、启动工作进程及非停升级。worker 进程负责处...
【图解经典算法题】如何用一行代码解决约瑟夫环问题
约瑟夫环问题算是很经典的题了,估计大家都听说过,然后我就在一次笔试中遇到了,下面我就用 3 种方法来详细讲解一下这道题,最后一种方法学了之后保证让你可以让你装逼。 问题描述:编号为 1-N 的 N 个士兵围坐在一起形成一个圆圈,从编号为 1 的士兵开始依次报数(1,2,3…这样依次报),数到 m 的 士兵会被杀死出列,之后的士兵再从 1 开始报数。直到最后剩下一士兵,求这个士兵的编号。 1、方...
吐血推荐珍藏的Visual Studio Code插件
作为一名Java工程师,由于工作需要,最近一个月一直在写NodeJS,这种经历可以说是一部辛酸史了。好在有神器Visual Studio Code陪伴,让我的这段经历没有更加困难。眼看这段经历要告一段落了,今天就来给大家分享一下我常用的一些VSC的插件。 VSC的插件安装方法很简单,只需要点击左侧最下方的插件栏选项,然后就可以搜索你想要的插件了。 下面我们进入正题 Material Theme ...
如何防止抄袭PCB电路板
目录 1、抄板是什么 2、抄板是否属于侵权 3、如何防止抄板 1、抄板是什么 抄板也叫克隆或仿制,是对设计出来的PCB板进行反向技术研究;目前全新的定义:从狭义上来说,抄板仅指对电子产品电路板PCB文件的提取还原和利用文件进行电路板克隆的过程;从广义上来说,抄板不仅包括对电路板文件提取、电路板克隆、电路板仿制等技术过程,而且包括对电路板文件进行修改(即改板)、对电子产品外形模具进行三维...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
Python 植物大战僵尸代码实现(2):植物卡片选择和种植
这篇文章要介绍的是: - 上方植物卡片栏的实现。 - 点击植物卡片,鼠标切换为植物图片。 - 鼠标移动时,判断当前在哪个方格中,并显示半透明的植物作为提示。
相关热词 c# 二进制截断字符串 c#实现窗体设计器 c#检测是否为微信 c# plc s1200 c#里氏转换原则 c# 主界面 c# do loop c#存为组套 模板 c# 停掉协程 c# rgb 读取图片
立即提问