python-rrdtool出现错误求解决MAC OS python pip install,python-rrdtoolpip,The director









The directory '/Users/sphynx/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/sphynx/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting python-rrdtool
/Library/Python/2.7/site-packages/pip-7.1.0-py2.7.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatfo....
InsecurePlatformWarning
Downloading python-rrdtool-1.4.7.tar.gz (1.4MB)
100% |████████████████████████████████| 1.4MB 350kB/s
Installing collected packages: python-rrdtool
Running setup.py install for python-rrdtool
Complete output from command /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;file='/private/tmp/pip-build-1FPrzC/python-rrdtool/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-t9p7AK-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
running build_configure
checking build system type... i386-apple-darwin14.1.0
checking host system type... i386-apple-darwin14.1.0
checking target system type... i386-apple-darwin14.1.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define EXTENSIONS... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no

Audit Compilation Environmentchecking how to run the C preprocessor... gcc -Echecking for gcc... (cached) gccchecking whether we are using the GNU C compiler... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to accept ISO C89... (cached) none neededchecking whether gcc and cc understand -c and -o together... yeschecking for a sed that does not truncate output... /usr/bin/sedchecking for fgrep... /usr/bin/grep -Fchecking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ldchecking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... nochecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nmchecking the name lister (/usr/bin/nm) interface... BSD nmchecking whether ln -s works... yeschecking the maximum length of command line arguments... 196608checking whether the shell understands some XSI constructs... yeschecking whether the shell understands "+="... yeschecking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -rchecking for objdump... nochecking how to recognize dependent libraries... pass_allchecking for ar... archecking for strip... stripchecking for ranlib... ranlibchecking command to parse /usr/bin/nm output from gcc object... okchecking for dsymutil... dsymutilchecking for nmedit... nmeditchecking for lipo... lipochecking for otool... otoolchecking for otool64... nochecking for -single_module linker flag... yeschecking for -exported_symbols_list linker flag... yeschecking for dlfcn.h... yeschecking for objdir... .libschecking if gcc supports -fno-rtti -fno-exceptions... yeschecking for gcc option to produce PIC... -fno-common -DPICchecking if gcc PIC flag -fno-common -DPIC works... yeschecking if gcc static flag -static works... nochecking if gcc supports -c -o file.o... yeschecking if gcc supports -c -o file.o... (cached) yeschecking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yeschecking dynamic linker characteristics... darwin14.1.0 dyldchecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... yeschecking if gcc likes the -Werror flag... yeschecking if gcc likes the -fno-strict-aliasing flag... yeschecking if gcc likes the -Wall flag... yeschecking if gcc likes the -std=gnu99 flag... yeschecking if gcc likes the -pedantic flag... yeschecking if gcc likes the -Wundef flag... yeschecking if gcc likes the -Wshadow flag... yeschecking if gcc likes the -Wpointer-arith flag... yeschecking if gcc likes the -Wcast-align flag... yeschecking if gcc likes the -Wmissing-prototypes flag... yeschecking if gcc likes the -Wmissing-declarations flag... yeschecking if gcc likes the -Wnested-externs flag... yeschecking if gcc likes the -Winline flag... yeschecking if gcc likes the -Wold-style-definition flag... yeschecking if gcc likes the -W flag... yesChecking for Header Fileschecking for ANSI C header files... (cached) yeschecking for dirent.h that defines DIR... yeschecking for library containing opendir... none requiredchecking langinfo.h usability... yeschecking langinfo.h presence... yeschecking for langinfo.h... yeschecking for stdint.h... (cached) yeschecking for inttypes.h... (cached) yeschecking libgen.h usability... yeschecking libgen.h presence... yeschecking for libgen.h... yeschecking features.h usability... nochecking features.h presence... nochecking for features.h... nochecking for sys/stat.h... (cached) yeschecking for sys/types.h... (cached) yeschecking fcntl.h usability... yeschecking fcntl.h presence... yeschecking for fcntl.h... yeschecking fp_class.h usability... nochecking fp_class.h presence... nochecking for fp_class.h... nochecking malloc.h usability... nochecking malloc.h presence... nochecking for malloc.h... nochecking for unistd.h... (cached) yeschecking ieeefp.h usability... nochecking ieeefp.h presence... nochecking for ieeefp.h... nochecking math.h usability... yeschecking math.h presence... yeschecking for math.h... yeschecking sys/times.h usability... yeschecking sys/times.h presence... yeschecking for sys/times.h... yeschecking sys/param.h usability... yeschecking sys/param.h presence... yeschecking for sys/param.h... yeschecking sys/resource.h usability... yeschecking sys/resource.h presence... yeschecking for sys/resource.h... yeschecking signal.h usability... yeschecking signal.h presence... yeschecking for signal.h... yeschecking float.h usability... yeschecking float.h presence... yeschecking for float.h... yeschecking stdio.h usability... yeschecking stdio.h presence... yeschecking for stdio.h... yeschecking for stdlib.h... (cached) yeschecking errno.h usability... yeschecking errno.h presence... yeschecking for errno.h... yeschecking for string.h... (cached) yeschecking ctype.h usability... yeschecking ctype.h presence... yeschecking for ctype.h... yeschecking for an ANSI C-conforming const... yeschecking whether time.h and sys/time.h may both be included... yeschecking whether struct tm is in sys/time.h or time.h... time.hTest Library Functionschecking for acos... yes./libtool: line 1112: /bin/sed: No such file or directorychecking for strftime... yeschecking for vprintf... yeschecking for _doprnt... nochecking whether byte ordering is bigendian... nochecking for nl_langinfo... yeschecking for tzset... yeschecking for round... yeschecking for rint... yeschecking for fsync... yeschecking for mbstowcs... yeschecking for opendir... yeschecking for readdir... yeschecking for chdir... yeschecking for chroot... yeschecking for getuid... yeschecking for strerror... yeschecking for snprintf... yeschecking for vsnprintf... yeschecking for vasprintf... yeschecking for fpclass... nochecking for class... nochecking for fp_class... nochecking for isnan... yeschecking for memmove... yeschecking for strchr... yeschecking for mktime... yeschecking for getrusage... yeschecking for gettimeofday... yeschecking whether strerror_r is declared... yeschecking for strerror_r... yeschecking whether strerror_r returns char *... noMap/Fadvis/Madvise checkingchecking for fdatasync... yeschecking for fsync... (cached) yeschecking for socket... yeschecking for getaddrinfo... yeschecking sys/mman.h usability... yeschecking sys/mman.h presence... yeschecking for sys/mman.h... yeschecking for stdlib.h... (cached) yeschecking for unistd.h... (cached) yeschecking for getpagesize... yeschecking for working mmap... yeschecking for mmap... yeschecking for munmap... yeschecking for msync... yeschecking whether madvise is declared... yeschecking for madvise... yeschecking whether posix_fadvise is declared... nochecking for posix_fadvise... noLibintl Processingchecking whether NLS is requested... yeschecking for msgfmt... nochecking for gmsgfmt... :checking for xgettext... nochecking for msgmerge... nochecking for ld used by GCC... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ldchecking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... nochecking for shared library run path origin... donechecking for CFPreferencesCopyAppValue... yeschecking for CFLocaleCopyCurrent... yeschecking for GNU gettext in libc... nochecking for iconv... yeschecking for working iconv... yeschecking how to link with libiconv... -liconvchecking for GNU gettext in libintl... nochecking whether to use NLS... noIEEE Math Checkschecking for fpclassify... nochecking for fpclassify with <math.h>... yeschecking for isinf... yeschecking whether isfinite is broken... nochecking if IEEE math works out of the box... yesResolve Portability Issueschecking tm_gmtoff in struct tm... yeschecking __tm_gmtoff in struct tm... nochecking if msync with MS_ASYNC updates the files mtime... yeschecking for _NL_TIME_WEEK_1STDAY... nochecking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h... nochecking for opterr... yeschecking for getopt_long... yeschecking if realloc can deal with NULL... yeschecking if ctime_r need special care to act posixly correct... nochecking for the pthreads library -lpthreads... nochecking whether pthreads work without any flags... yeschecking for joinable pthread attribute... PTHREAD_CREATE_JOINABLEchecking if more special flags are required for pthreads... -D_THREAD_SAFEchecking for cc_r... gccchecking do we need malloc/malloc.h... nope, works out of the boxchecking the type of time_t... checking size of time_t... 8time_t is 64 bitFind 3rd-Party Librarieschecking dbi/dbi.h usability... nochecking dbi/dbi.h presence... nochecking for dbi/dbi.h... nochecking tcpd.h usability... nochecking tcpd.h presence... nochecking for tcpd.h... nochecking for cairo_font_options_create in -lcairo... nochecking for pkg-config... pkg-configconfigure: WARNING:----------------------------------------------------------------------------* I found a copy of pkgconfig, but there is no cairo-png.pc file around.  You may want to set the PKG_CONFIG_PATH variable to point to its  location.----------------------------------------------------------------------------configure: WARNING:----------------------------------------------------------------------------* I could not find a working copy of cairo-png. Check config.log for hints on why  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately  so that compiler and the linker can find libcairo and its header files. If  you have not installed cairo-png, you can get it either from its original home on     http://cairographics.org/releases/  You can find also find an archive copy on     http://oss.oetiker.ch/rrdtool/pub/libs  The last tested version of cairo-png is 1.10.2.       LIBS=   LDFLAGS=  CPPFLAGS= -D_THREAD_SAFE----------------------------------------------------------------------------checking for cairo_svg_surface_create in -lcairo... nochecking for pkg-config... (cached) pkg-configconfigure: WARNING:----------------------------------------------------------------------------* I found a copy of pkgconfig, but there is no cairo-svg.pc file around.  You may want to set the PKG_CONFIG_PATH variable to point to its  location.----------------------------------------------------------------------------configure: WARNING:----------------------------------------------------------------------------* I could not find a working copy of cairo-svg. Check config.log for hints on why  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately  so that compiler and the linker can find libcairo and its header files. If  you have not installed cairo-svg, you can get it either from its original home on     http://cairographics.org/releases/  You can find also find an archive copy on     http://oss.oetiker.ch/rrdtool/pub/libs  The last tested version of cairo-svg is 1.10.2.       LIBS=   LDFLAGS=  CPPFLAGS= -D_THREAD_SAFE----------------------------------------------------------------------------checking for cairo_pdf_surface_create in -lcairo... nochecking for pkg-config... (cached) pkg-configconfigure: WARNING:----------------------------------------------------------------------------* I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.  You may want to set the PKG_CONFIG_PATH variable to point to its  location.----------------------------------------------------------------------------configure: WARNING:----------------------------------------------------------------------------* I could not find a working copy of cairo-pdf. Check config.log for hints on why  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately  so that compiler and the linker can find libcairo and its header files. If  you have not installed cairo-pdf, you can get it either from its original home on     http://cairographics.org/releases/  You can find also find an archive copy on     http://oss.oetiker.ch/rrdtool/pub/libs  The last tested version of cairo-pdf is 1.10.2.       LIBS=   LDFLAGS=  CPPFLAGS= -D_THREAD_SAFE----------------------------------------------------------------------------checking for cairo_ps_surface_create in -lcairo... nochecking for pkg-config... (cached) pkg-configconfigure: WARNING:----------------------------------------------------------------------------* I found a copy of pkgconfig, but there is no cairo-ps.pc file around.  You may want to set the PKG_CONFIG_PATH variable to point to its  location.----------------------------------------------------------------------------configure: WARNING:----------------------------------------------------------------------------* I could not find a working copy of cairo-ps. Check config.log for hints on why  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately  so that compiler and the linker can find libcairo and its header files. If  you have not installed cairo-ps, you can get it either from its original home on     http://cairographics.org/releases/  You can find also find an archive copy on     http://oss.oetiker.ch/rrdtool/pub/libs  The last tested version of cairo-ps is 1.10.2.       LIBS=   LDFLAGS=  CPPFLAGS= -D_THREAD_SAFE----------------------------------------------------------------------------checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... nochecking for pkg-config... (cached) pkg-configconfigure: WARNING:----------------------------------------------------------------------------* I found a copy of pkgconfig, but there is no pangocairo.pc file around.  You may want to set the PKG_CONFIG_PATH variable to point to its  location.----------------------------------------------------------------------------configure: WARNING:----------------------------------------------------------------------------* I could not find a working copy of pangocairo. Check config.log for hints on why  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately  so that compiler and the linker can find libpangocairo-1.0 and its header files. If  you have not installed pangocairo, you can get it either from its original home on     http://ftp.gnome.org/pub/GNOME/sources/pango/1.28  You can find also find an archive copy on     http://oss.oetiker.ch/rrdtool/pub/libs  The last tested version of pangocairo is 1.28.4.       LIBS=   LDFLAGS=  CPPFLAGS= -D_THREAD_SAFE----------------------------------------------------------------------------checking for glib_check_version in -lglib-2.0... yeschecking glib.h usability... nochecking glib.h presence... nochecking for glib.h... nochecking for pkg-config... (cached) pkg-configchecking for glib_check_version in -lglib-2.0... yeschecking glib.h usability... yeschecking glib.h presence... yeschecking for glib.h... yeschecking for xmlParseFile in -lxml2... yeschecking libxml/parser.h usability... yeschecking libxml/parser.h presence... yeschecking for libxml/parser.h... yesconfigure: error: Please fix the library issues listed above and try again.Traceback (most recent call last):  File "<string>", line 1, in <module>  File "/private/tmp/pip-build-1FPrzC/python-rrdtool/setup.py", line 99, in <module>    include_dirs=[include_dir],  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup    dist.run_commands()  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands    self.run_command(cmd)  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command    cmd_obj.run()  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install.py", line 53, in run    return _install.run(self)  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 573, in run    self.run_command('build')  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command    self.distribution.run_command(command)  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command    cmd_obj.run()  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run    self.run_command(cmd_name)  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command    self.distribution.run_command(command)  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command    cmd_obj.run()  File "/private/tmp/pip-build-1FPrzC/python-rrdtool/setup.py", line 68, in run    self.run_command(cmd_name)  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command    self.distribution.run_command(command)  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command    cmd_obj.run()  File "/private/tmp/pip-build-1FPrzC/python-rrdtool/setup.py", line 62, in run    subprocess.check_call(executable, cwd=os.path.dirname(executable))  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call    raise CalledProcessError(retcode, cmd)subprocess.CalledProcessError: Command '/private/tmp/pip-build-1FPrzC/python-rrdtool/rrdtool-1.4.7/configure' returned non-zero exit status 1----------------------------------------

Command "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;file='/private/tmp/pip-build-1FPrzC/python-rrdtool/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-t9p7AK-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-1FPrzC/python-rrdtool
上面的图片就是全部的错误信息了,有大神知道怎么回事吗?比较急

装个vs2010试试,我遇到装个问题,装了vs后就好了,但不知道你那里是不是和我一样,我是在windows

从报错来看

The directory '/Users/sphynx/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

应该是没有权限,加上sudo再跑一下

编橙之家文章,

评论关闭