GVKun编程网logo

zabbix 安装提示 configure: error: Not found mysqlclient library

23

本篇文章给大家谈谈zabbix安装提示configure:error:Notfoundmysqlclientlibrary,同时本文还将给你拓展AWSS3-boto3LibraryNotFoundEr

本篇文章给大家谈谈zabbix 安装提示 configure: error: Not found mysqlclient library,同时本文还将给你拓展AWS S3 - boto3 LibraryNotFoundError HTTPClientError、centos 7.3 安装 mysqldb 报错 EnvironmentError: mysql_config not found ERROR: Command errored out w...、Centos pip安装mysqldb提示EnvironmentError: mysql_config not found解决办法、configure: error: Cannot find ldap libraries in /usr/lib 解决办法等相关知识,希望对各位有所帮助,不要忘了收藏本站喔。

本文目录一览:

zabbix 安装提示 configure: error: Not found mysqlclient library

zabbix 安装提示 configure: error: Not found mysqlclient library

./configure --prefix=/usr/local/zabbix --with-mysql --with-net-snmp --with-libcurl --enable-server --enable-agent --enable-proxy

报错:configure: error: Not found mysqlclient library

安装 mysql-devel、mysql-share(libmysqlclient.so* 等的共享库),centos7 yum 安装 mysql-devel 默认是 mariadb,可自己下载 rpm 包进行安装。

注:zabbix 安装有多个依赖问题

configure: error: Not found curl Library

#yum install curl-devel

configure: error : Not found NET-SNMP library

#yum install net-snmp-devel

参考:https://geekflare.com/not-found-mysqlclient-library-zabbix/

AWS S3 - boto3 LibraryNotFoundError HTTPClientError

AWS S3 - boto3 LibraryNotFoundError HTTPClientError

如何解决AWS S3 - boto3 LibraryNotFoundError HTTPClientError?

我试图打印出我在 S3 存储桶中的文件。昨天它运行良好,但不知何故我今天得到了 LibraryNotFoundErrorHTTPClientError(我已经确定我已经安装了 boto3 库)。我很感激你的指示。谢谢。

我的代码:

import boto3
s3 = boto3.client(''s3'',aws_access_key_id=''my_access_key'',aws_secret_access_key=''my_secret_key'')
bucketname=''bucket_name''
s3_client = boto3.resource(''s3'')
bucket = s3_client.Bucket(bucketname)

for obj in bucket.objects.all():
    key = obj.key
    print(key)

错误信息:

---------------------------------------------------------------------------
LibraryNotFoundError                      Traceback (most recent call last)
~/opt/anaconda3/lib/python3.7/site-packages/botocore/httpsession.py in send(self,request)
    261                 decode_content=False,--> 262                 chunked=self._chunked(request.headers),263             )

~/opt/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py in urlopen(self,method,url,body,headers,retries,redirect,assert_same_host,timeout,pool_timeout,release_conn,chunked,body_pos,**response_kw)
    671                 headers=headers,--> 672                 chunked=chunked,673             )

~/opt/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py in _make_request(self,conn,**httplib_request_kw)
    375         try:
--> 376             self._validate_conn(conn)
    377         except (SocketTimeout,BaseSSLError) as e:

~/opt/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py in _validate_conn(self,conn)
    993         if not getattr(conn,"sock",None):  # AppEngine might not have  `.sock`
--> 994             conn.connect()
    995 

~/opt/anaconda3/lib/python3.7/site-packages/urllib3/connection.py in connect(self)
    359             server_hostname=server_hostname,--> 360             ssl_context=context,361         )

~/opt/anaconda3/lib/python3.7/site-packages/sNowflake/connector/ssl_wrap_socket.py in ssl_wrap_socket_with_ocsp(*args,**kwargs)
    400 
--> 401     from .ocsp_asn1crypto import SNowflakeOCSPAsn1Crypto as SFOCSP
    402 

~/opt/anaconda3/lib/python3.7/site-packages/sNowflake/connector/ocsp_asn1crypto.py in <module>
     33             use_openssl(libcrypto_path=''/usr/lib/libcrypto.35.dylib'',libssl_path=''/usr/lib/libssl.35.dylib'')
---> 34     from oscrypto import asymmetric
     35 

~/opt/anaconda3/lib/python3.7/site-packages/oscrypto/asymmetric.py in <module>
     18 )
---> 19 from ._asymmetric import _unwrap_private_key_info
     20 from ._errors import pretty_message

~/opt/anaconda3/lib/python3.7/site-packages/oscrypto/_asymmetric.py in <module>
     26 
---> 27 from .kdf import pbkdf1,pbkdf2,pkcs12_kdf
     28 from .symmetric import (

~/opt/anaconda3/lib/python3.7/site-packages/oscrypto/kdf.py in <module>
      8 from . import backend
----> 9 from .util import rand_bytes
     10 from ._types import type_name,byte_cls,int_types

~/opt/anaconda3/lib/python3.7/site-packages/oscrypto/util.py in <module>
      9 if sys.platform == ''darwin'':
---> 10     from ._mac.util import rand_bytes
     11 elif sys.platform == ''win32'':

~/opt/anaconda3/lib/python3.7/site-packages/oscrypto/_mac/util.py in <module>
     10 from ._common_crypto import CommonCrypto,CommonCryptoConst
---> 11 from ._security import Security
     12 

~/opt/anaconda3/lib/python3.7/site-packages/oscrypto/_mac/_security.py in <module>
      8 if ffi() == ''cffi'':
----> 9     from ._security_cffi import Security,version_info as osx_version_info
     10     from ._core_foundation_cffi import CoreFoundation,Cfhelpers

~/opt/anaconda3/lib/python3.7/site-packages/oscrypto/_mac/_security_cffi.py in <module>
    238 if not security_path:
--> 239     raise LibraryNotFoundError(''The library Security Could not be found'')
    240 

LibraryNotFoundError: The library Security Could not be found

During handling of the above exception,another exception occurred:

HTTPClientError                           Traceback (most recent call last)
<ipython-input-6-4a14fd7aca9a> in <module>
      3 bucket = s3_client.Bucket(bucketname)
      4 
----> 5 for obj in bucket.objects.all():
      6     key = obj.key
      7     print(key)

~/opt/anaconda3/lib/python3.7/site-packages/boto3/resources/collection.py in __iter__(self)
     81 
     82         count = 0
---> 83         for page in self.pages():
     84             for item in page:
     85                 yield item

~/opt/anaconda3/lib/python3.7/site-packages/boto3/resources/collection.py in pages(self)
    164         # we start processing and yielding individual items.
    165         count = 0
--> 166         for page in pages:
    167             page_items = []
    168             for item in self._handler(self._parent,params,page):

~/opt/anaconda3/lib/python3.7/site-packages/botocore/paginate.py in __iter__(self)
    253         self._inject_starting_params(current_kwargs)
    254         while True:
--> 255             response = self._make_request(current_kwargs)
    256             parsed = self._extract_parsed_response(response)
    257             if first_request:

~/opt/anaconda3/lib/python3.7/site-packages/botocore/paginate.py in _make_request(self,current_kwargs)
    330 
    331     def _make_request(self,current_kwargs):
--> 332         return self._method(**current_kwargs)
    333 
    334     def _extract_parsed_response(self,response):

~/opt/anaconda3/lib/python3.7/site-packages/botocore/client.py in _api_call(self,*args,**kwargs)
    355                     "%s() only accepts keyword arguments." % py_operation_name)
    356             # The "self" in this scope is referring to the BaseClient.
--> 357             return self._make_api_call(operation_name,kwargs)
    358 
    359         _api_call.__name__ = str(py_operation_name)

~/opt/anaconda3/lib/python3.7/site-packages/botocore/client.py in _make_api_call(self,operation_name,api_params)
    646         else:
    647             http,parsed_response = self._make_request(
--> 648                 operation_model,request_dict,request_context)
    649 
    650         self.Meta.events.emit(

~/opt/anaconda3/lib/python3.7/site-packages/botocore/client.py in _make_request(self,operation_model,request_context)
    665     def _make_request(self,request_context):
    666         try:
--> 667             return self._endpoint.make_request(operation_model,request_dict)
    668         except Exception as e:
    669             self.Meta.events.emit(

~/opt/anaconda3/lib/python3.7/site-packages/botocore/endpoint.py in make_request(self,request_dict)
    100         logger.debug("Making request for %s with params: %s",101                      operation_model,request_dict)
--> 102         return self._send_request(request_dict,operation_model)
    103 
    104     def create_request(self,operation_model=None):

~/opt/anaconda3/lib/python3.7/site-packages/botocore/endpoint.py in _send_request(self,operation_model)
    135             request,context)
    136         while self._needs_retry(attempts,--> 137                                 success_response,exception):
    138             attempts += 1
    139             # If there is a stream associated with the request,we need

~/opt/anaconda3/lib/python3.7/site-packages/botocore/endpoint.py in _needs_retry(self,attempts,response,caught_exception)
    229             event_name,response=response,endpoint=self,230             operation=operation_model,attempts=attempts,--> 231             caught_exception=caught_exception,request_dict=request_dict)
    232         handler_response = first_non_none_response(responses)
    233         if handler_response is None:

~/opt/anaconda3/lib/python3.7/site-packages/botocore/hooks.py in emit(self,event_name,**kwargs)
    354     def emit(self,**kwargs):
    355         aliased_event_name = self._alias_event_name(event_name)
--> 356         return self._emitter.emit(aliased_event_name,**kwargs)
    357 
    358     def emit_until_response(self,**kwargs):

~/opt/anaconda3/lib/python3.7/site-packages/botocore/hooks.py in emit(self,**kwargs)
    226                  handlers.
    227         """
--> 228         return self._emit(event_name,kwargs)
    229 
    230     def emit_until_response(self,**kwargs):

~/opt/anaconda3/lib/python3.7/site-packages/botocore/hooks.py in _emit(self,kwargs,stop_on_response)
    209         for handler in handlers_to_call:
    210             logger.debug(''Event %s: calling handler %s'',handler)
--> 211             response = handler(**kwargs)
    212             responses.append((handler,response))
    213             if stop_on_response and response is not None:

~/opt/anaconda3/lib/python3.7/site-packages/botocore/retryhandler.py in __call__(self,caught_exception,**kwargs)
    181 
    182         """
--> 183         if self._checker(attempts,caught_exception):
    184             result = self._action(attempts=attempts)
    185             logger.debug("Retry needed,action of: %s",result)

~/opt/anaconda3/lib/python3.7/site-packages/botocore/retryhandler.py in __call__(self,attempt_number,caught_exception)
    249     def __call__(self,caught_exception):
    250         should_retry = self._should_retry(attempt_number,--> 251                                           caught_exception)
    252         if should_retry:
    253             if attempt_number >= self._max_attempts:

~/opt/anaconda3/lib/python3.7/site-packages/botocore/retryhandler.py in _should_retry(self,caught_exception)
    267                 attempt_number < self._max_attempts:
    268             try:
--> 269                 return self._checker(attempt_number,caught_exception)
    270             except self._retryable_exceptions as e:
    271                 logger.debug("retry needed,retryable exception caught: %s",~/opt/anaconda3/lib/python3.7/site-packages/botocore/retryhandler.py in __call__(self,caught_exception)
    315         for checker in self._checkers:
    316             checker_response = checker(attempt_number,--> 317                                        caught_exception)
    318             if checker_response:
    319                 return checker_response

~/opt/anaconda3/lib/python3.7/site-packages/botocore/retryhandler.py in __call__(self,caught_exception)
    221         elif caught_exception is not None:
    222             return self._check_caught_exception(
--> 223                 attempt_number,caught_exception)
    224         else:
    225             raise ValueError("Both response and caught_exception are None.")

~/opt/anaconda3/lib/python3.7/site-packages/botocore/retryhandler.py in _check_caught_exception(self,caught_exception)
    357         # the MaxAttemptsDecorator is not interested in retrying the exception
    358         # then this exception just propogates out past the retry code.
--> 359         raise caught_exception

~/opt/anaconda3/lib/python3.7/site-packages/botocore/endpoint.py in _do_get_response(self,request,operation_model)
    198             http_response = first_non_none_response(responses)
    199             if http_response is None:
--> 200                 http_response = self._send(request)
    201         except HTTPClientError as e:
    202             return (None,e)

~/opt/anaconda3/lib/python3.7/site-packages/botocore/endpoint.py in _send(self,request)
    242 
    243     def _send(self,request):
--> 244         return self.http_session.send(request)
    245 
    246 

~/opt/anaconda3/lib/python3.7/site-packages/botocore/httpsession.py in send(self,request)
    296             message = ''Exception received when sending urllib3 HTTP request''
    297             logger.debug(message,exc_info=True)
--> 298             raise HTTPClientError(error=e)

HTTPClientError: An HTTP Client raised and unhandled exception: The library Security Could not be found

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

centos 7.3 安装 mysqldb 报错 EnvironmentError: mysql_config not found ERROR: Command errored out w...

centos 7.3 安装 mysqldb 报错 EnvironmentError: mysql_config not found ERROR: Command errored out w...

ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c ''import sys, setuptools, tokenize; sys.argv[0] = ''"''"''/tmp/pip-install-pS3uLm/mysql-python/setup.py''"''"''; __file__=''"''"''/tmp/pip-install-pS3uLm/mysql-python/setup.py''"''"'';f=getattr(tokenize, ''"''"''open''"''"'', open)(__file__);code=f.read().replace(''"''"''\r\n''"''"'', ''"''"''\n''"''"'');f.close();exec(compile(code, __file__, ''"''"''exec''"''"''))'' egg_info --egg-base /tmp/pip-install-pS3uLm/mysql-python/pip-egg-info
         cwd: /tmp/pip-install-pS3uLm/mysql-python/
    Complete output (10 lines):
    sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-pS3uLm/mysql-python/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

 

yum -y install mysql-devel

pip install MySQL-python

执行上面两条命令,成功安装

 

Centos pip安装mysqldb提示EnvironmentError: mysql_config not found解决办法

Centos pip安装mysqldb提示EnvironmentError: mysql_config not found解决办法

解决办法: 1.yum install MysqL-devel 2.然后 pip install MysqL-python

configure: error: Cannot find ldap libraries in /usr/lib 解决办法

configure: error: Cannot find ldap libraries in /usr/lib 解决办法

centos6.4安装LNMP,config php的时候出现下面错误而退出

configure: error: Cannot find ldap libraries in /usr/lib

解决办法:

 

cp -frp /usr/lib64/libldap* /usr/lib/


然后再./configure ...即可

转载自————————http://hxl2009.blog.51cto.com/779549/865834

我们今天的关于zabbix 安装提示 configure: error: Not found mysqlclient library的分享就到这里,谢谢您的阅读,如果想了解更多关于AWS S3 - boto3 LibraryNotFoundError HTTPClientError、centos 7.3 安装 mysqldb 报错 EnvironmentError: mysql_config not found ERROR: Command errored out w...、Centos pip安装mysqldb提示EnvironmentError: mysql_config not found解决办法、configure: error: Cannot find ldap libraries in /usr/lib 解决办法的相关信息,可以在本站进行搜索。

本文标签: