i have brand new centos 7 vm trying install python 3 (currently 3.6.0) on. following guide daniel eriksson (https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/)
but i'm running pemission denied
error when running make && make altinstall
command.
the last section of error i'm getting here:
gcc -pthread -c -wno-unused-result -wsign-compare -dndebug -g -fwrapv -o3 -wall -wstrict-prototypes -std=c99 -wextra -wno-unused-result -wno-unused-parameter -wno-missing-field-initializers -i. -i./include -fpic -dpy_build_core -o programs/_testembed.o ./programs/_testembed.c gcc -pthread -wl,-rpath /usr/local/lib -xlinker -export-dynamic -o programs/_testembed programs/_testembed.o -l. -lpython3.6m -lpthread -ldl -lutil -lm # substitution happens here, completely-expanded bindir # not available in configure sed -e "s,@exename@,/usr/local/bin/python3.6m," < ./misc/python-config.in >python-config.py # replace makefile compat. variable references shell script compat. ones; -> lc_all=c sed -e 's,\$(\([a-za-z0-9_]*\)),\$\{\1\},g' < misc/python-config.sh >python-config # on darwin, use python version of script, shell # version doesn't use compiler customizations provided # in python (_osx_support.py). if test `uname -s` = darwin; \ cp python-config.py python-config; \ fi if test "no-framework" = "no-framework" ; \ /bin/install -c python /usr/local/bin/python3.6m; \ else \ /bin/install -c -s mac/pythonw /usr/local/bin/python3.6m; \ fi /bin/install: cannot create regular file ‘/usr/local/bin/python3.6m’: permission denied make: *** [altbininstall] error 1
i don't work linux, i'm not sure or try next. on appreciated. thank you
the issue permission required when running command install package.
use
sudo make && sudo make altinstall
instead of:
sudo make && make altinstall
Comments
Post a Comment