关于linux分支suse系统

ywlyt123 2018-06-19 05:46:39
各位大佬好,小弟新人一个,学的是centos系统,结果到公司一看是suse。。很多东西还得重新来,比如ansible的安装老费劲了,有一个依赖包,cryptography怎么也装不上,有大佬知道怎么弄吗?分数我现在没有,但是如果有大佬能解决我的问题,我可以现在去冲会员,给大佬一个满意的分数
...全文
684 11 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
ywlyt123 2018-06-24
  • 打赏
  • 举报
回复
error: command 'gcc' failed with exit status 1
这个报错应该比较简单吧?但是 我的系统是suse的,没有yum,也没有apt-get什么的,那该怎么办?救命
李庆海 2018-06-22
  • 打赏
  • 举报
回复
引用 8 楼 Liqinghai058 的回复:
[quote=引用 7 楼 ywlyt123 的回复:]
[quote=引用 6 楼 Liqinghai058 的回复:]
[quote=引用 5 楼 ywlyt123 的回复:]
python3.6 setup.py install ,这种方式安装cryptography的输出结果

你好,看错误是cffi的问题,你先源码安装依赖试下,python管理包建议用pip安装,这样就不用考虑依赖的问题了。[/quote]
嗯,解决了,安装了个hashlib,最后装上了ansible,可是又有新问题,在我使用这条命令ansible hosts -m command -a "hostname"的时候,报错:ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'HTTPSHandler'
to see the full traceback, use -vvv
[/quote]
你好,请安装yum install openssl openssl-devel -y库。[/quote]
你好,加我qq:843668157,有问题可以问我
李庆海 2018-06-22
  • 打赏
  • 举报
回复
引用 7 楼 ywlyt123 的回复:
[quote=引用 6 楼 Liqinghai058 的回复:]
[quote=引用 5 楼 ywlyt123 的回复:]
python3.6 setup.py install ,这种方式安装cryptography的输出结果

你好,看错误是cffi的问题,你先源码安装依赖试下,python管理包建议用pip安装,这样就不用考虑依赖的问题了。[/quote]
嗯,解决了,安装了个hashlib,最后装上了ansible,可是又有新问题,在我使用这条命令ansible hosts -m command -a "hostname"的时候,报错:ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'HTTPSHandler'
to see the full traceback, use -vvv
[/quote]
你好,请安装yum install openssl openssl-devel -y库。
ywlyt123 2018-06-22
  • 打赏
  • 举报
回复
引用 6 楼 Liqinghai058 的回复:
[quote=引用 5 楼 ywlyt123 的回复:]
python3.6 setup.py install ,这种方式安装cryptography的输出结果

你好,看错误是cffi的问题,你先源码安装依赖试下,python管理包建议用pip安装,这样就不用考虑依赖的问题了。[/quote]
嗯,解决了,安装了个hashlib,最后装上了ansible,可是又有新问题,在我使用这条命令ansible hosts -m command -a "hostname"的时候,报错:ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'HTTPSHandler'
to see the full traceback, use -vvv
ywlyt123 2018-06-22
  • 打赏
  • 举报
回复
引用 9 楼 Liqinghai058 的回复:
[quote=引用 8 楼 Liqinghai058 的回复:] [quote=引用 7 楼 ywlyt123 的回复:] [quote=引用 6 楼 Liqinghai058 的回复:] [quote=引用 5 楼 ywlyt123 的回复:] python3.6 setup.py install ,这种方式安装cryptography的输出结果
你好,看错误是cffi的问题,你先源码安装依赖试下,python管理包建议用pip安装,这样就不用考虑依赖的问题了。[/quote] 嗯,解决了,安装了个hashlib,最后装上了ansible,可是又有新问题,在我使用这条命令ansible hosts -m command -a "hostname"的时候,报错:ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'HTTPSHandler' to see the full traceback, use -vvv [/quote] 你好,请安装yum install openssl openssl-devel -y库。[/quote] 你好,加我qq:843668157,有问题可以问我[/quote] 大哥,suse哪来的yum啊
ywlyt123 2018-06-21
  • 打赏
  • 举报
回复
python3.6 setup.py install ,这种方式安装cryptography的输出结果
李庆海 2018-06-21
  • 打赏
  • 举报
回复
引用 5 楼 ywlyt123 的回复:
python3.6 setup.py install ,这种方式安装cryptography的输出结果

你好,看错误是cffi的问题,你先源码安装依赖试下,python管理包建议用pip安装,这样就不用考虑依赖的问题了。
李庆海 2018-06-20
  • 打赏
  • 举报
回复
你好,第一在centos上可以用yum安装相应的依赖都会自动安装,而安装cryptography使用pip install cryptography,这些都不用单独安装依赖,而在suse上使用zypper install安装相应的文件。 第二如果在安装时提示没有相应的安装包,可以去官网或者找REPO源,再或者去http://rpmfind.net/网站上找相应的包文件,而至于cryptography同样也是使用pip install安装。第三如果没有没有pip命令,请先安装python-tools相应插件。谢谢
李庆海 2018-06-20
  • 打赏
  • 举报
回复
你好,请问你这是在suse上安装报的错误吗?还是在工程中编译报的错误
ywlyt123 2018-06-20
  • 打赏
  • 举报
回复
Traceback (most recent call last): File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 260, in _parse ast = _get_parser().parse(csource) File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/c_parser.py", line 152, in parse debug=debuglevel) File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/ply/yacc.py", line 331, in parse return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc) File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/ply/yacc.py", line 1199, in parseopt_notrack tok = call_errorfunc(self.errorfunc, errtoken, self) File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/ply/yacc.py", line 193, in call_errorfunc r = errorfunc(token) File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/c_parser.py", line 1761, in p_error column=self.clex.find_tok_column(p))) File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/plyparser.py", line 66, in _parse_error raise ParseError("%s: %s" % (coord, msg)) pycparser.plyparser.ParseError: :25:28: before: time_t During handling of the above exception, another exception occurred: Traceback (most recent call last): File "setup.py", line 334, in <module> **keywords_with_side_effects(sys.argv) File "/usr/local/python3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "/usr/local/python3.6/lib/python3.6/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/usr/local/python3.6/lib/python3.6/site-packages/setuptools/dist.py", line 372, in __init__ _Distribution.__init__(self, attrs) File "/usr/local/python3.6/lib/python3.6/distutils/dist.py", line 281, in __init__ self.finalize_options() File "/usr/local/python3.6/lib/python3.6/site-packages/setuptools/dist.py", line 528, in finalize_options ep.load()(self, ep.name, value) File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 161, in cffi_modules add_cffi_module(dist, cffi_module) File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 48, in add_cffi_module execfile(build_file_name, mod_vars) File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 24, in execfile exec(code, glob, glob) File "src/_cffi_src/build_openssl.py", line 81, in <module> extra_link_args=extra_link_args(compiler_type()), File "src/_cffi_src/utils.py", line 61, in build_ffi_for_binding extra_link_args=extra_link_args, File "src/_cffi_src/utils.py", line 70, in build_ffi ffi.cdef(cdef_source) File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/api.py", line 105, in cdef self._cdef(csource, override=override, packed=packed) File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/api.py", line 119, in _cdef self._parser.parse(csource, override=override, **options) File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 299, in parse self._internal_parse(csource) File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 304, in _internal_parse ast, macros, csource = self._parse(csource) File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 262, in _parse self.convert_pycparser_error(e, csource) File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 291, in convert_pycparser_error raise api.CDefError(msg) cffi.api.CDefError: cannot parse "typedef int __dotdotdot__ time_t;" :25:28: before: time_t
ywlyt123 2018-06-19
  • 打赏
  • 举报
回复
有分,150分,也不知道多还是少

19,620

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧