Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: /lib64/tls/libc.so.6: version `GLIBC_2.14' not found #460

Closed
333caowei opened this issue Nov 14, 2016 · 3 comments
Closed

ImportError: /lib64/tls/libc.so.6: version `GLIBC_2.14' not found #460

333caowei opened this issue Nov 14, 2016 · 3 comments

Comments

@333caowei
Copy link

333caowei commented Nov 14, 2016

执行predict任务,当from py_paddle import swig_paddle, DataProviderConverter时候报错:

ImportError: /lib64/tls/libc.so.6: version GLIBC_2.14' not found (required by /home/nuomi/.jumbo/lib/python2.7/site-packages/py_paddle/_swig_paddle.so)`

请问这个需要怎么解决呢,paddle是源码编译安装的,谢谢

@backyes
Copy link
Contributor

backyes commented Nov 14, 2016

你的问题根源是, swig_paddle的编译运行时环境和运行时的机器运行时环境不一致导致的。

一般建议检查:

  • 编译Paddle时候,采用的编译器版本?
  • 确保运行环境和编译环境一致。

如果要获取更多帮助, 建议提供以下内容:

  • 你如何编译paddle的? 请确保采用某一种特定的编译方法,不要混用

@333caowei
Copy link
Author

333caowei commented Nov 14, 2016

@backyes
现在paddle训练没问题,只是predict时候会报错。
paddle安装过程如下:

export PATH=/opt/compiler/gcc-4.8.2/bin/:$PATH
cd baidu/idl/paddle/paddle/internals/scripts/build_scripts/
bash install_deps.jumbo.sh

cd ../../../..
cmake -DCMAKE_INSTALL_PREFIX="~/software/paddle" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCUDNN_ROOT="${JUMBO_ROOT}/opt/cudnn/" -DMKL_ROOT="${HOME}/downloads/baidu/idl/paddle/paddle/internals/mkl/" -DWITH_SWIG_PY=ON
make
echo "export LD_LIBRARY_PATH=$HOME/.jumbo/opt/cudnn/lib64:\$LD_LIBRARY_PATH" >> "$HOME/.bash_profile"
source ~/.bash_profile
make test
make install
echo "PADDLE_HOME=$HOME/software/paddle" >> "$HOME/.bash_profile"
echo "export PATH=\$PADDLE_HOME/bin:\$PATH" >> "$HOME/.bash_profile"
source ~/.bash_profile

@backyes
Copy link
Contributor

backyes commented Nov 14, 2016

问题应该是:

  • /home/nuomi/.jumbo/lib/python2.7/site-packages/p 判断,你用的python解释器是jumbo python,它应该不是用gcc48编译出来的,即其和gcc48 运行时环境不兼容
  • export PATH=/opt/compiler/gcc-4.8.2/bin/:$PATH 判断,你编译paddle和py_paddle用的是gcc48环境,运行也将依赖该48运行时环境
    因此,非48运行时环境依赖的 python27 加载gcc48运行时环境依赖的py_paddle的时候出现上述不兼容问题。

解决方法两个:

  • 找一个gcc 48的编译出来的python解释器,并记得确保新python解释器成功替换到默认解释器。这个可以从paddle 一键编译脚本的 thirdparty中(免费:-))获取.
  • 全部用一键编译工具,它会自动处理上述所有依赖。比如,它运行时,不依赖系统python环境解释器。详细参看一键编译文档。

zhhsplendid pushed a commit to zhhsplendid/Paddle that referenced this issue Sep 25, 2019
zhhsplendid pushed a commit to zhhsplendid/Paddle that referenced this issue Sep 25, 2019
* add_api_cn (PaddlePaddle#437)

* add gpu benchmark page (PaddlePaddle#436)

* add gpu benchmark

* fix comments

* add chinese link in gen_doc.py (PaddlePaddle#439)

* modified gen_doc.py

* Update gen_doc.py

* update gen_doc.py

* Update mobile doc (PaddlePaddle#440)

* update_en_structure

* update_Paddle_commitid

* delete_DS

* update_mobile_doc

* Update book commit (PaddlePaddle#438)

* update_en_structure

* update_Paddle_commitid

* delete_DS

* update_book_commit_id

* update_api_rst

* Adjust structure of advanced usage (PaddlePaddle#442)

* adjust_structure_of_advanced_usage

* Update paddle_gpu_benchmark.md

* adjust_toctree_hidden

* fix_api_guide

* Update index.rst

* fix deadlinkes (PaddlePaddle#443)

* add_toctree (PaddlePaddle#445)

* adjust_beginners_structure (PaddlePaddle#446)

* adjust_beginners_structure

* Update index.rst

* update install_doc for python3 (PaddlePaddle#418)

* update install_doc for python3

* update python3.5+ info,test=develop

* fix review, test=develop

* fix_pic (PaddlePaddle#447)

* delete en2zn link

* update lod_tensor

* 1207

 1.english api reference links removed
2. formatted

* update transpiler

* update profilse_cn

* Update docker-image instroduce, test=develop (PaddlePaddle#459)

* fix_bug (PaddlePaddle#460)

* [cp2dev]Add avx info 1.1 (PaddlePaddle#279) (PaddlePaddle#451)

* Add avx info 1.1 (PaddlePaddle#279)

* refine avx info representation

* refine avx info representation

* refine avx info representation

* updatetoavx

* fix_AVX

* update_en_api (PaddlePaddle#461)

* update api guides for cn (PaddlePaddle#462)

* Update commit_id of Paddle (PaddlePaddle#463)

* update_en_api

* update_again

* Fix bug (PaddlePaddle#465)

* update_en_api

* update_again

* bug_fix

* fix_2nd
zhhsplendid pushed a commit to zhhsplendid/Paddle that referenced this issue Sep 25, 2019
* add_api_cn (PaddlePaddle#437)

* add gpu benchmark page (PaddlePaddle#436)

* add gpu benchmark

* fix comments

* add chinese link in gen_doc.py (PaddlePaddle#439)

* modified gen_doc.py

* Update gen_doc.py

* update gen_doc.py

* Update mobile doc (PaddlePaddle#440)

* update_en_structure

* update_Paddle_commitid

* delete_DS

* update_mobile_doc

* Update book commit (PaddlePaddle#438)

* update_en_structure

* update_Paddle_commitid

* delete_DS

* update_book_commit_id

* update_api_rst

* Adjust structure of advanced usage (PaddlePaddle#442)

* adjust_structure_of_advanced_usage

* Update paddle_gpu_benchmark.md

* adjust_toctree_hidden

* fix_api_guide

* Update index.rst

* fix deadlinkes (PaddlePaddle#443)

* add_toctree (PaddlePaddle#445)

* adjust_beginners_structure (PaddlePaddle#446)

* adjust_beginners_structure

* Update index.rst

* update install_doc for python3 (PaddlePaddle#418)

* update install_doc for python3

* update python3.5+ info,test=develop

* fix review, test=develop

* fix_pic (PaddlePaddle#447)

* delete en2zn link

* update lod_tensor

* 1207

 1.english api reference links removed
2. formatted

* update transpiler

* update profilse_cn

* Update docker-image instroduce, test=develop (PaddlePaddle#459)

* fix_bug (PaddlePaddle#460)

* [cp2dev]Add avx info 1.1 (PaddlePaddle#279) (PaddlePaddle#451)

* Add avx info 1.1 (PaddlePaddle#279)

* refine avx info representation

* refine avx info representation

* refine avx info representation

* updatetoavx

* fix_AVX

* update_en_api (PaddlePaddle#461)

* update api guides for cn (PaddlePaddle#462)

* Update commit_id of Paddle (PaddlePaddle#463)

* update_en_api

* update_again

* Fix bug (PaddlePaddle#465)

* update_en_api

* update_again

* bug_fix

* fix_2nd

* add_release_note
thisjiang added a commit to thisjiang/Paddle that referenced this issue Oct 28, 2021
* full op_mapper's op and kernels

* add mulbias and add opmapper

* fix some problem by review advices and CINN_REGISTER_OP_MAPPER

* fix CI bug: AddVar in mul.cc should has utils namespace

* optimize AddVar and GetVar prototype

* add AddVarModelToProgramMap instead of directly access var_model_to_program_map_

* change name from kernel to OpMaker

* change name from OpMaker to OpMapper

Co-authored-by: Yan Chunwei <yanchunwei@outlook.com>
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this issue Sep 19, 2022
* add copyright

* update comment
lizexu123 pushed a commit to lizexu123/Paddle that referenced this issue Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants