在Solaris上使用pip安装cx_Oracle的编译器问题

问题描述

我是这个东西的新手,任何帮助都很棒。我正在通过腻子在本地服务器上安装它。

Collecting cx_Oracle==7.3

  Downloading https://files.pythonhosted.org/packages/5e/e3/cfd4f413f8d47dd2aee09273d9bb3ee6aa7384e0a04e191d703c2199eb93/cx_Oracle-7.3.0.tar.gz (307kB)

    100% |################################| 317kB 7.6MB/s

Installing collected packages: cx-Oracle

  Running setup.py install for cx-Oracle ... error

    Complete output from command /usr/bin/python -u -c "import setuptools,tokenize;__file__='/tmp/pip-install-YAwTvN/cx-Oracle/setup.py';f=getattr(tokenize,'open',open)(__file__);code=f.read().replace('\r\n','\n');f.close();exec(compile(code,__file__,'exec'))" install --record /tmp/pip-record-nqdlEI/install-record.txt --single-version-externally-managed --compile --user --prefix=:

    running install

    running build

    running build_ext

    building 'cx_Oracle' extension

    creating build

    creating build/temp.solaris-2.11-sun4v.32bit-2.7

    creating build/temp.solaris-2.11-sun4v.32bit-2.7/src

    creating build/temp.solaris-2.11-sun4v.32bit-2.7/odpi

    creating build/temp.solaris-2.11-sun4v.32bit-2.7/odpi/src

    cc -DNDEBUG -KPIC -DPIC -DCXO_BUILD_VERSION=7.3.0 -Iodpi/include -Iodpi/src -I/usr/include/python2.7 -c src/cxoBuffer.c -o build/temp.solaris-2.11-sun4v.32bit-2.7/src/cxoBuffer.o

    unable to execute 'cc': No such file or directory

    error: command 'cc' Failed with exit status 1

 

    ----------------------------------------

Command "/usr/bin/python -u -c "import setuptools,'exec'))" install --record /tmp/pip-record-nqdlEI/install-record.txt --single-version-externally-managed --compile --user --prefix=" Failed with error code 1 in /tmp/pip-install-YAwTvN/cx-Oracle/

以前,我能够没有任何问题地安装awscli。 我不确定为什么会这样。

解决方法

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

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

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