Hello!
Every time I install Sentry, I run into a new problem.
Now I need install Sentry service on the Centos 7.4 OS.
I run next commands:
# yum -y update
# reboot
# yum -y install python python2-pip python-virtualenv postgresql redis python python2-pip python-virtualenv postgresql gcc gcc-c++ libjpeg-turbo libffi libxml2 libxslt libyaml libjpeg-turbo-devel zlib-devel postgresql-devel libffi-devel numpy python34-numpy clang libyaml-devel
# systemctl start redis
# systemctl enable redis
# pip install --upgrade pip
# pip install redis==2.10.5
# mkdir -p /sentry/sentry-venv
# virtualenv /sentry/sentry-venv/
# source /sentry/sentry-venv/bin/activate
# pip install -U sentry
And I get next errors:
Downloading/unpacking libsourcemap>=0.8.2,<0.9.0 (from sentry)
Downloading libsourcemap-0.8.2.zip (765kB): 765kB downloaded
Saved ./sentry-inst/libsourcemap-0.8.2.zip
Running setuppy egg_info for package libsourcemap
clang: error: unknown argument: ‘-fstack-protector-strong’
clang: error: unknown argument: ‘-fstack-protector-strong’
clang: error: unknown argument: ‘-fstack-protector-strong’
clang: error: unknown argument: ‘-fstack-protector-strong’No working compiler found, or bogus compiler options passed to
the compiler from Python’s standard “distutils” module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setuppy of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see
Otherwise, see or
the IRC channel #python on ircfreenodenet.)
Traceback (most recent call last):
File “”, line 16, in
File “/sentry/sentry-venv/build/libsourcemap/setup.py”, line 117, in
‘Topic :: Software Development :: Libraries :: Python Modules’
File “/usr/lib64/python2.7/distutils/core.py”, line 112, in setup
_setup_distribution = dist = klass(attrs)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 265, in init
self.fetch_build_eggs(attrs.pop(‘setup_requires’))
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 289, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 618, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 862, in best_match
return self.obtain(req, installer) # try and download/install
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 874, in obtain
return installer(requirement)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 339, in fetch_build_egg
return cmd.easy_install(req)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 623, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 653, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 849, in install_eggs
return self.build_and_install(setup_script, setup_base)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1130, in build_and_install
self.run_setup(setup_script, setup_base, args)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1118, in run_setup
raise DistutilsError(“Setup script exited with %s” % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1
Complete output from command python setuppy egg_info:
clang: error: unknown argument: ‘-fstack-protector-strong’clang: error: unknown argument: ‘-fstack-protector-strong’
clang: error: unknown argument: ‘-fstack-protector-strong’
clang: error: unknown argument: ‘-fstack-protector-strong’
No working compiler found, or bogus compiler options passed to
the compiler from Python’s standard “distutils” module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setuppy of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see
Otherwise, see or
the IRC channel #python on ircfreenodenet.)
Traceback (most recent call last):
File “”, line 16, in
File “/sentry/sentry-venv/build/libsourcemap/setup.py”, line 117, in‘Topic :: Software Development :: Libraries :: Python Modules’
File “/usr/lib64/python2.7/distutils/core.py”, line 112, in setup
_setup_distribution = dist = klass(attrs)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 265, in init
self.fetch_build_eggs(attrs.pop(‘setup_requires’))
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 289, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 618, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 862, in best_match
return self.obtain(req, installer) # try and download/install
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 874, in obtain
return installer(requirement)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 339, in fetch_build_egg
return cmd.easy_install(req)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 623, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 653, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 849, in install_eggs
return self.build_and_install(setup_script, setup_base)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1130, in build_and_install
self.run_setup(setup_script, setup_base, args)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1118, in run_setup
raise DistutilsError(“Setup script exited with %s” % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1
Cleaning up…
Command python setuppy egg_info failed with error code 1 in /sentry/sentry-venv/build/libsourcemap
Exactly the same problem was 2 months ago. I thought you would fix it, but the description of this problem did not appear even in Google.
Developers clang disable option -fstack-protector-strong and what I can now for install Sentry - I no idea.
How I can fix this problem now and continue install Sentry?