GithubHelp home page GithubHelp logo

Comments (12)

happyfish100 avatar happyfish100 commented on June 2, 2024 1

需要安装最新版本的libfastcommon 和FastDFS。
先编译和安装以下版本即可:
libfastcommon V1.41
FastDFS V6.0

from fastdfs-nginx-module.

dirklei avatar dirklei commented on June 2, 2024

刚刚遇到同样的问题,也是g_storage_id_count未声明,g_storage_id_count, flv_support, flv_extension);

from fastdfs-nginx-module.

dirklei avatar dirklei commented on June 2, 2024

确实用的是最新版本,libfastcommon 1.0.41和fastDFS6.0,还是不行
error: ‘g_storage_id_count’ undeclared (first use in this function); did you mean ‘g_storage_ids_by_ip’?
g_storage_id_count, flv_support, flv_extension);
^~~~~~~~~~~~~~~~~~
g_storage_ids_by_ip

from fastdfs-nginx-module.

happyfish100 avatar happyfish100 commented on June 2, 2024

fastdfs-nginx-module要用最新版本。可以直接使用master版本或者 V1.21 的tag。

$ cat HISTORY
Version 1.21 2019-10-16

  • you must upgrade your FastDFS to v6.00 or higher version

from fastdfs-nginx-module.

dirklei avatar dirklei commented on June 2, 2024

使用fdfs6.0 ,fdfs-nginx-1.21,common-1.0.41,安装成功,但是nginx启动报错
ERROR - file: ../common/fdfs_http_shared.c, line: 153, param "http.mime_types_filename" not exist or is empty

from fastdfs-nginx-module.

happyfish100 avatar happyfish100 commented on June 2, 2024

mime.types 和 http.conf 这两个配置文件在 fastdfs源码的conf目录下,你复制到 /etc/fdfs/下即可。

from fastdfs-nginx-module.

dirklei avatar dirklei commented on June 2, 2024

这两个文件在/etc/fdfs下是有的,尝试在tracker.conf和storage.conf文件里配置http.mime_types_filename参数也不行,还是相同的错误信息,我的nginx是openresty1.5.7版本,不知道有影响不

from fastdfs-nginx-module.

happyfish100 avatar happyfish100 commented on June 2, 2024

你看下 fastdfs-nginx-module 目录下的 INSTALL 文件,fastdfs-nginx-module 默认的 配置文件为:/etc/fdfs/mod_fastdfs.conf。

from fastdfs-nginx-module.

voto-laughing avatar voto-laughing commented on June 2, 2024

fastdfsV6.0没有声明这个变量,使用V5.12就可以正常编译了

from fastdfs-nginx-module.

voto-laughing avatar voto-laughing commented on June 2, 2024

需要安装最新版本的libfastcommon 和FastDFS。
先编译和安装以下版本即可:
libfastcommon V1.41
FastDFS V6.0

是在添加nginx模块成功后,其他的安装都没有问题,fastdfs可以命令上传文件,nginx在make时报错了

from fastdfs-nginx-module.

Shj451148969 avatar Shj451148969 commented on June 2, 2024

ld: library not found for -lfdfsclient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [objs/nginx] Error 1
make: *** [build] Error 2

from fastdfs-nginx-module.

Shj451148969 avatar Shj451148969 commented on June 2, 2024

使用了最新版后出现了这个问题

from fastdfs-nginx-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.