gcc: error trying to exec ‘cc1plus‘: execvp: Permission denied
Posted xiejunna
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了gcc: error trying to exec ‘cc1plus‘: execvp: Permission denied相关的知识,希望对你有一定的参考价值。
contos7.5安装paddleocr时报错,错误如下
Building wheels for collected packages: fasttext
Building wheel for fasttext (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/dev/anaconda3/envs/paddle_env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-tohk__am
cwd: /tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/
Complete output (58 lines):
/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/fasttext
copying python/fasttext_module/fasttext/__init__.py -> build/lib.linux-x86_64-3.8/fasttext
copying python/fasttext_module/fasttext/FastText.py -> build/lib.linux-x86_64-3.8/fasttext
creating build/lib.linux-x86_64-3.8/fasttext/util
copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/util
copying python/fasttext_module/fasttext/util/util.py -> build/lib.linux-x86_64-3.8/fasttext/util
creating build/lib.linux-x86_64-3.8/fasttext/tests
copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.linux-x86_64-3.8/fasttext/tests
copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.linux-x86_64-3.8/fasttext/tests
copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/tests
running build_ext
creating tmp
gcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmphbckv0kp.cpp -o tmp/tmphbckv0kp.o -std=c++14
gcc: error: unrecognized command line option ‘-std=c++14’
gcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmprmdjdcsh.cpp -o tmp/tmprmdjdcsh.o -std=c++11
gcc: error trying to exec 'cc1plus': execvp: Permission denied
gcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmpso05g_jc.cpp -o tmp/tmpso05g_jc.o -std=c++0x
gcc: error trying to exec 'cc1plus': execvp: Permission denied
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 168, in <module>
setup(
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 146, in build_extensions
opts.append(cpp_flag(self.compiler))
File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 108, in cpp_flag
raise RuntimeError(
RuntimeError: Unsupported compiler -- at least C++0x support is needed!
----------------------------------------
ERROR: Failed building wheel for fasttext
Running setup.py clean for fasttext
Failed to build fasttext
Installing collected packages: fasttext, cython, paddleocr
Running setup.py install for fasttext ... error
ERROR: Command errored out with exit status 1:
command: /home/dev/anaconda3/envs/paddle_env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ypftrjnj/install-record.txt --single-version-externally-managed --compile --install-headers /home/dev/anaconda3/envs/paddle_env/include/python3.8/fasttext
cwd: /tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/
Complete output (59 lines):
/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/fasttext
copying python/fasttext_module/fasttext/__init__.py -> build/lib.linux-x86_64-3.8/fasttext
copying python/fasttext_module/fasttext/FastText.py -> build/lib.linux-x86_64-3.8/fasttext
creating build/lib.linux-x86_64-3.8/fasttext/util
copying python/fasttext_module/fasttext/util/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/util
copying python/fasttext_module/fasttext/util/util.py -> build/lib.linux-x86_64-3.8/fasttext/util
creating build/lib.linux-x86_64-3.8/fasttext/tests
copying python/fasttext_module/fasttext/tests/test_configurations.py -> build/lib.linux-x86_64-3.8/fasttext/tests
copying python/fasttext_module/fasttext/tests/test_script.py -> build/lib.linux-x86_64-3.8/fasttext/tests
copying python/fasttext_module/fasttext/tests/__init__.py -> build/lib.linux-x86_64-3.8/fasttext/tests
running build_ext
gcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmprv7t4rph.cpp -o tmp/tmprv7t4rph.o -std=c++14
gcc: error: unrecognized command line option ‘-std=c++14’
gcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmpgsviuyke.cpp -o tmp/tmpgsviuyke.o -std=c++11
gcc: error trying to exec 'cc1plus': execvp: Permission denied
gcc -pthread -B /home/dev/anaconda3/envs/paddle_env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/dev/anaconda3/envs/paddle_env/include/python3.8 -c /tmp/tmpmazeuiv8.cpp -o tmp/tmpmazeuiv8.o -std=c++0x
gcc: error trying to exec 'cc1plus': execvp: Permission denied
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 168, in <module>
setup(
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/dev/anaconda3/envs/paddle_env/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 146, in build_extensions
opts.append(cpp_flag(self.compiler))
File "/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py", line 108, in cpp_flag
raise RuntimeError(
RuntimeError: Unsupported compiler -- at least C++0x support is needed!
----------------------------------------
ERROR: Command errored out with exit status 1: /home/dev/anaconda3/envs/paddle_env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tkoaqzy5/fasttext_d53e174e6dbb4906a211cf3a77279456/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\\r\\n'"'"', '"'"'\\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ypftrjnj/install-record.txt --single-version-externally-managed --compile --install-headers /home/dev/anaconda3/envs/paddle_env/include/python3.8/fasttext Check the logs for full command output.
(paddle_env) [dev@ecs-6dfb-0006 ~]$
安装fasttext时,gcc: error trying to exec 'cc1plus': execvp: Permission denied
,按以下命令查看相关包版本,错误原因是由于g++没有安装,安装:sudo yum install gcc-c++
,安装后问他解决
gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(paddle_env) [dev@ecs-6dfb-0006 ~]$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.6.1810 (Core)
Release: 7.6.1810
Codename: Core
(paddle_env) [dev@ecs-6dfb-0006 ~]$
(paddle_env) [dev@ecs-6dfb-0006 ~]$ g++ --version
-bash: g++: command not found
sudo yum install gcc-c++
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.ustc.edu.cn
* epel: mirror.sjtu.edu.cn
* extras: mirrors.dgut.edu.cn
* updates: mirrors.dgut.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.8.5-44.el7 will be installed
--> Processing Dependency: libstdc++-devel = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64
--> Processing Dependency: libstdc++ = 4.8.5-44.el7 for package: gcc-c++-4.8.5-44.el7.x86_64
--> Running transaction check
---> Package libstdc++.x86_64 0:4.8.5-39.el7 will be updated
---> Package libstdc++.x86_64 0:4.8.5-44.el7 will be an update
---> Package libstdc++-devel.x86_64 0:4.8.5-44.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
以上是关于gcc: error trying to exec ‘cc1plus‘: execvp: Permission denied的主要内容,如果未能解决你的问题,请参考以下文章
CentOS gcc编译报错:gcc: error trying to exec ‘cc1plus‘: execvp: No such file or directory(原因:g++没安装)
g++: error trying to exec 'cc1plus': execvp: No such file or directory
error trying to exec 'cc1obj': execvp: No such file or directory
当进行make命令学习是出现error trying to exec 'cc1': execvp: No such file or directory
How to install OpenBazaar Server in CentOS7
veritas nbu7.0备份oracle数据库一直提示failed trying to exec a command谁能解决下啊谢谢了