亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
樓主: q288288
打印 上一主題 下一主題

[FastDFS] 關(guān)于最近的FastDFS和FastDHT安裝出錯,余大大已更新版本,希望大家下載 [復(fù)制鏈接]

論壇徽章:
0
21 [報告]
發(fā)表于 2014-12-31 16:12 |只看該作者
fdfs5.0.5+nginx只需要這兩個包可以安裝成功嗎?之前的nginx會依賴pcre-8.34.tar.gz和zlib-1.2.8.tar.gz這兩個庫,現(xiàn)在不需要了嗎

論壇徽章:
1
寅虎
日期:2014-12-04 11:16:20
22 [報告]
發(fā)表于 2015-01-04 08:52 |只看該作者
回復(fù) 19# xucong0701
nginx還是需要這些依賴包,可以使用命令
  1. yum install –y openssl-devel pcre-devel zlib-devel
復(fù)制代碼
卸載是yum remove ...

   

論壇徽章:
0
23 [報告]
發(fā)表于 2015-01-04 11:03 |只看該作者
q288288 發(fā)表于 2015-01-04 08:52
回復(fù) 19# xucong0701
nginx還是需要這些依賴包,可以使用命令卸載是yum remove ...

好的,謝啦,那如果只安裝FastDFS的話只需要提前安裝libfastcommon-master.zip這個包就行了吧?

論壇徽章:
1
寅虎
日期:2014-12-04 11:16:20
24 [報告]
發(fā)表于 2015-01-05 08:11 |只看該作者
本帖最后由 q288288 于 2015-01-05 08:17 編輯

回復(fù) 21# xucong0701
對,安裝時你可以看看解壓后的文件夾里的INSTALL文件(如果存在的話)
-eg:
  1. vi /usr/local/src/FastDFS/INSTALL
復(fù)制代碼
/usr/local/src/FastDFS為fastdfs解壓后根目錄
那里面有詳細的安裝步驟和需要安裝的依賴包

   

論壇徽章:
0
25 [報告]
發(fā)表于 2015-01-05 20:20 |只看該作者
  1. ./make.sh
  2. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o hash.lo hash.c  
  3. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o chain.lo chain.c  
  4. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o shared_func.lo shared_func.c  
  5. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o ini_file_reader.lo ini_file_reader.c  
  6. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o logger.lo logger.c  
  7. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o sockopt.lo sockopt.c  
  8. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o base64.lo base64.c  
  9. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o sched_thread.lo sched_thread.c  
  10. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o http_func.lo http_func.c  
  11. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o md5.lo md5.c  
  12. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o pthread_func.lo pthread_func.c  
  13. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o local_ip_func.lo local_ip_func.c  
  14. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o avl_tree.lo avl_tree.c  
  15. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o ioevent.lo ioevent.c  
  16. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o ioevent_loop.lo ioevent_loop.c  
  17. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o fast_task_queue.lo fast_task_queue.c  
  18. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o fast_timer.lo fast_timer.c  
  19. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o process_ctrl.lo process_ctrl.c  
  20. process_ctrl.c: In function ‘process_start’:
  21. process_ctrl.c:146:9: warning: passing argument 4 of ‘getFileContentEx’ from incompatible pointer type [enabled by default]
  22.          if ((result=getFileContentEx(cmdfile, cmdline, 0, &cmdsz)) != 0) {
  23.          ^
  24. In file included from process_ctrl.c:6:0:
  25. shared_func.h:407:5: note: expected ‘int64_t *’ but argument is of type ‘long int *’
  26. int getFileContentEx(const char *filename, char *buff, \
  27.      ^
  28. process_ctrl.c:152:9: warning: passing argument 4 of ‘getFileContentEx’ from incompatible pointer type [enabled by default]
  29.          if ((result=getFileContentEx(cmdfile, argv0, 0, &cmdsz)) != 0) {
  30.          ^
  31. In file included from process_ctrl.c:6:0:
  32. shared_func.h:407:5: note: expected ‘int64_t *’ but argument is of type ‘long int *’
  33. int getFileContentEx(const char *filename, char *buff, \
  34.      ^
  35. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o fast_mblock.lo fast_mblock.c  
  36. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -c -fPIC -o connection_pool.lo connection_pool.c  
  37. cc -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o libfastcommon.so  -shared hash.lo chain.lo shared_func.lo ini_file_reader.lo logger.lo sockopt.lo base64.lo sched_thread.lo http_func.lo md5.lo pthread_func.lo local_ip_func.lo avl_tree.lo ioevent.lo ioevent_loop.lo fast_task_queue.lo fast_timer.lo process_ctrl.lo fast_mblock.lo connection_pool.lo
  38. ar rcs libfastcommon.a hash.o
復(fù)制代碼
libfastcommon 不支持32計算機嗎?{:2_170:}

論壇徽章:
0
26 [報告]
發(fā)表于 2015-01-06 10:21 |只看該作者
安裝nginx-module模塊時,一直編譯不進nginx模塊,在make &&  make install時報的錯:
/usr/bin/ld: cannot find -lfdfsclient
collect2: ld 返回 1
make[1]: *** [objs/nginx] 錯誤 1
make[1]: Leaving directory `/fastdfs/src/nginx-1.7.8'
make: *** [build] 錯誤 2

對于fastdfs-nginx-module/src/config配置文件,作了一點修改,如下:
ngx_addon_name=ngx_http_fastdfs_module
HTTP_MODULES="$HTTP_MODULES ngx_http_fastdfs_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fastdfs_module.c"
CORE_INCS="$CORE_INCS /usr/local/fastdfs/include/fastdfs /usr/include/fastcommon/"
CORE_LIBS="$CORE_LIBS -L/usr/local/lib -lfastcommon -lfdfsclient"
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/usr/local/fastdfs/conf/mod_fastdfs.conf\"'"
在/usr/local/lib下面已存在libfastcommon.so以及l(fā)ibfdfsclient.so,為什么還是說找不到lfdfsclient,不解啊,有大俠相助一下嗎?

論壇徽章:
1
寅虎
日期:2014-12-04 11:16:20
27 [報告]
發(fā)表于 2015-01-06 11:02 |只看該作者
回復(fù) 23# LinuxCaiB
這是個警告,不影響執(zhí)行結(jié)果,元定義是
  1. long cmdsz = sizeof cmdline;
復(fù)制代碼
修改成
  1. int64_t cmdsz = sizeof cmdline;
復(fù)制代碼
就不會報錯了。
然后安裝FastDFS的時候做個軟連接,因為32位系統(tǒng)尋找的是lib目錄,
  1. [root@cent FastDFS]# ln -sv /usr/include/fastcommon/ /usr/local/include/fastcommon
  2. "/usr/local/include/fastcommon" -> "/usr/include/fastcommon/"
  3. [root@cent FastDFS]# ln -sv /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
  4. "/usr/local/lib/libfastcommon.so" -> "/usr/lib64/libfastcommon.so"
  5. [root@cent FastDFS]# ln -sv /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
  6. "/usr/lib/libfastcommon.so" -> "/usr/lib64/libfastcommon.so"
復(fù)制代碼

論壇徽章:
1
寅虎
日期:2014-12-04 11:16:20
28 [報告]
發(fā)表于 2015-01-06 11:08 |只看該作者
回復(fù) 24# xucong0701
你用的系統(tǒng)如果是64位的話,它會在lib64下尋找,設(shè)置軟連接如下:
  1. ln -sv /usr/include/fastcommon /usr/local/include/fastcommon
  2. ln -sv /usr/local/FastDFS/include/fastdfs /usr/local/include/fastdfs
  3. ln -sv /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
  4. ln -sv /usr/local/FastDFS/lib64/libfdfsclient.so /usr/lib64/libfdfsclient.so
復(fù)制代碼
ps:/usr/local/FastDFS是我的安裝目錄,好像第2,3個軟連接是不必要的
   

論壇徽章:
0
29 [報告]
發(fā)表于 2015-01-06 12:33 |只看該作者
q288288 發(fā)表于 2015-01-06 11:08
回復(fù) 24# xucong0701
你用的系統(tǒng)如果是64位的話,它會在lib64下尋找,設(shè)置軟連接如下:ps:/usr/local/Fas ...

我之前在安裝libfastcommon的時候已經(jīng)設(shè)置了如下軟連接,能看下有問題不?
ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so
ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so

論壇徽章:
0
30 [報告]
發(fā)表于 2015-01-06 12:50 |只看該作者
回復(fù) 26# q288288


    設(shè)置了一下這個ln -sv /usr/local/Fastdfs/lib64/libfdfsclient.so /usr/lib64/libfdfsclient.so可以了,多謝啊~~~~
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP