Giter Site home page Giter Site logo

一直没有办法下载 about familia HOT 13 CLOSED

baidu avatar baidu commented on May 30, 2024
一直没有办法下载

from familia.

Comments (13)

lianrzh avatar lianrzh commented on May 30, 2024

@XufengLi 可以给出更详细错误说明吗

from familia.

 avatar commented on May 30, 2024

@lianrzh 链接超时
`[xufeng@host-172-16-11-125 Familia-master]$ sh build.sh
rm -rf glog-0.3.4.tar.gz glog-0.3.4
wget --no-check-certificate http://raw.githubusercontent.com/ZeyuChen/third_party/master/package//glog-0.3.4.tar.gz && tar -zxf glog-0.3.4.tar.gz
--2017-10-10 11:39:46-- http://raw.githubusercontent.com/ZeyuChen/third_party/master/package//glog-0.3.4.tar.gz
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.76.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.76.133|:80... fai led: Connection timed out.
Retrying.

--2017-10-10 11:41:55-- (try: 2) http://raw.githubusercontent.com/ZeyuChen/third_party/mast er/package//glog-0.3.4.tar.gz
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.76.133|:80...
`

from familia.

lianrzh avatar lianrzh commented on May 30, 2024

@XufengLi 这个应该是你机器网络的问题,我这边试了,可以正常下载

from familia.

 avatar commented on May 30, 2024

@lianrzh OK,那我再试一试

from familia.

 avatar commented on May 30, 2024

@lianrzh 确实是我的linux服务器的原因,服务器不能上网,请问有本地安装的版本或者方法吗?

from familia.

lianrzh avatar lianrzh commented on May 30, 2024

@XufengLi 可以本地下载对应需要的package,然后再上传到服务器,对应去掉wget的命令即可

from familia.

 avatar commented on May 30, 2024

@lianrzh 安装包都弄好了,就是编译的最后一部生成familia.so文件时会报错,也没生成so文件,这是什么原因?
编译代码:
python/demo/familia.so: python/cpp/familia_wrapper.cpp familia
$(CXX) $(INCPATH) $(CXXFLAGS) -c $< -o python/cpp/familia_wrapper.o $(CXX) $(INCPATH) $(CXXFLAGS) -shared python/cpp/familia_wrapper.o $(LDFLAGS_SO) -l$(PYTHON_VERSION) -o $@
报错信息:
g++ -I./include/ -I./include/familia -I./third_party/include -I/usr/local/python3/include/python3.6m -pipe -W -Wall -fPIC -std=c++11 -fno-omit-frame-pointer -fpermissive -O3 -ffast-math -c python/cpp/familia_wrapper.cpp -o python/cpp/familia_wrapper.o python/cpp/familia_wrapper.cpp:427:1: warning: missing initializer for member ‘PyModuleDef::m_slots’ [-Wmissing-field-initializers] }; ^ python/cpp/familia_wrapper.cpp:427:1: warning: missing initializer for member ‘PyModuleDef::m_traverse’ [-Wmissing-field-initializers] python/cpp/familia_wrapper.cpp:427:1: warning: missing initializer for member ‘PyModuleDef::m_clear’ [-Wmissing-field-initializers] python/cpp/familia_wrapper.cpp:427:1: warning: missing initializer for member ‘PyModuleDef::m_free’ [-Wmissing-field-initializers] g++ -I./include/ -I./include/familia -I./third_party/include -I/usr/local/python3/include/python3.6m -pipe -W -Wall -fPIC -std=c++11 -fno-omit-frame-pointer -fpermissive -O3 -ffast-math -shared python/cpp/familia_wrapper.o -L/data00/xufeng/Familia-master/third_party/lib -L/usr/local/python3/lib -L./build/ -lfamilia -lprotobuf -lglog -lgflags -lpython3.6m -o python/demo/familia.so /usr/bin/ld: /usr/local/python3/lib/libpython3.6m.a(listobject.o): relocation R_X86_64_32 against _Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/python3/lib/libpython3.6m.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [python/demo/familia.so] Error 1
`

from familia.

 avatar commented on May 30, 2024

@lianrzh
360 20171013111114112

from familia.

lianrzh avatar lianrzh commented on May 30, 2024

@XufengLi 这一部分是生成python库,根据错误提示应该链接你本地机器的libpython错误,需要你找到本地的路径,对应修改这句命令中的-l$(PYTHON_VERSION)

from familia.

 avatar commented on May 30, 2024

@lianrzh 我找了下路径是对的,错误中提示的是 could not read symbols:不能读取符号,不知道是什么原因

from familia.

 avatar commented on May 30, 2024

@lianrzh 你好,实在是自己解决不了,又来问您了。我在路径下放了libpython.a, 但是提示总是找不到这个库。
cc1plus: warning: /usr/local/python3/include/libpython3.6m.a: not a directory [enabled by default]
python/cpp/familia_wrapper.cpp:5:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
make: *** [python/demo/familia.so] Error 1

from familia.

lianrzh avatar lianrzh commented on May 30, 2024

@XufengLi 通过上面的错误提示,是没有正确链接到你机器的libpython,建议你搜索一下你本地的libpython地址,然后链接上去,例如上面提到的could not read symbols:不能读取符号问题,这种大多跟编译器版本相关,这种错误可以通过搜索找到对应的解决方法。

from familia.

 avatar commented on May 30, 2024

问题已解决,贴上解决方法。 在linux安装依赖于python包时,报错libpython.a: conld not read symbols - CSDN博客

from familia.

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.