在solaris 11 sparc上安装cx_oracle [英] Install cx_oracle on solaris 11 sparc

查看:61
本文介绍了在solaris 11 sparc上安装cx_oracle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大多数cx_Oracle 5.2.1版本的构建都适用于Windows和Linux.如何为Solaris 11 Sparc安装/获取安装?

Most of the cx_Oracle 5.2.1 version builds are for Windows and Linux. How do I install/get an install for a Solaris 11 Sparc?

我尝试使用以下安装:来自sourceforge.net的cx_Oracle-5.2.1.tar.gz但是导致了以下错误:

I tried to install using the following: cx_Oracle-5.2.1.tar.gz from sourceforge.net But resulted in the following error:

/tmp/cx_Oracle-5.2.1$ python setup.py build
running build
running build_ext
building 'cx_Oracle' extension
creating build
creating build/temp.solaris-2.11-sun4v.32bit-2.7-11g
cc -DNDEBUG -KPIC -DPIC -I/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/demo -I/u01/app/oracle/product/11.2.0.4/dbhome_1/rdbms/public -I/usr/include/python2.7 -c cx_Oracle.c -o build/temp.solaris-2.11-sun4v.32bit-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.2.1
unable to execute 'cc': No such file or directory
error: command 'cc' failed with exit status 1

请告知.

推荐答案

Oracle(在此情况下,Sun也是如此)在Solaris OS安装映像中未包含编译器.您可以下载Solaris Studio编译器,当然您也可以走GCC路线(UNIX Packages网站提供了可安装的GCC软件包和依赖关系所需的各种库),费用不高.

Oracle (nor Sun, for that matter) did not include a compiler in the Solaris OS installation image. The Solaris Studio compiler is available for download, and of course you can also go the GCC route (UNIX Packages web site offers installable packages of GCC and various libraries needed for dependences for a modest fee.)

原始帖子的报价仍然是旧的,并且目前的解决方案是仅从11.3或11.4 IPS安装cx_oracle软件包.

The original post is quote old though, and the solution as of now is to simply install the cx_oracle package from the 11.3 or 11.4 IPS.

这篇关于在solaris 11 sparc上安装cx_oracle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆