简体   繁体   English

在尝试将Oracle SQL安装到Linux服务器上时,这个错误意味着什么?

[英]What does this error mean that I'm getting whilst trying to install Oracle SQL onto a Linux server?

I am trying to install Oracle SQL Developer onto a Linux server via the Windows 8.1 operating system. 我试图通过Windows 8.1操作系统将Oracle SQL Developer安装到Linux服务器上。 I am downloading the packages from: 我从下载包:

http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html

I am then installing the Linux RPM package from that site. 然后我从该站点安装Linux RPM包。

I am then moving it from the Windows 8.1 operating system (that it was downloaded onto) onto the Linux server (via WinSCP). 然后我将它从Windows 8.1操作系统(它被下载到)上移到Linux服务器上(通过WinSCP)。

I am then opening up the Linux server on Putty and attempting to install the SQL Developer by using the following command: 然后我在Putty上打开Linux服务器并尝试使用以下命令安装SQL Developer:

rpm -Uvh sqldeveloper-4.0.3.16.84-1.noarch.rpm

I am then recieving this error: 然后我收到这个错误:

rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
    /bin/sh is needed by sqldeveloper-4.0.3.16.84-1.noarch

Can anyone help me figure out how to fix this issue, I have searched Google and no useful results have popped up. 任何人都可以帮我弄清楚如何解决这个问题,我搜索了谷歌并没有弹出有用的结果。

On Debian do ( as the message says ) not install the rpm. 在Debian上(如消息所示)不安装rpm。 Last time I did it like this (on Ubuntu though): 上次我这样做(虽然在Ubuntu上):

# Download "for other platforms" 
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html

# install packages to transform
sudo apt-get install debhelper sqldeveloper-package
sudo apt-get install tofrodos

# create links
sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix
sudo ln -s /usr/bin/todos /usr/bin/unix2dos

# transform noarch package to deb package 
# (-b workdir)
make-sqldeveloper-package -b /tmp/ORA sqldeveloper-3.0.04.34-no-jre.zip

# install deb package
sudo dpkg -i sqldeveloper_3.0.04.34+0.2.3-1_all.deb 

# after installation  maybe you'll have to set jdk path
touch ~/.sqldeveloper/jdk #i.e. /usr/lib/jvm/java-6-openjdk

Found it here: http://timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/ 在这里找到它: http//timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/

Okay, so from what I can understand so far, you have an SQL server (MySQL) installed already. 好的,所以从目前为止我能理解的,你已经安装了一个SQL服务器(MySQL)。 If you have an Apache installation (web server) you should be able to have a web interface for this, which will make it much easier on your part. 如果您有Apache安装(Web服务器),您应该能够拥有一个Web界面,这将使您更容易。

Otherwise, if you do not have Apache, you can install it by using 否则,如果您没有Apache,可以使用安装它

apt-get install apache2

and then you'll need PHP 然后你需要PHP

apt-get install php5 php-pear php5-mysql

You'll have to restart apache 你必须重启apache

service apache2 restart

or 要么

/etc/init.d/apache2 restart

and then install phpmyadmin 然后安装phpmyadmin

apt-get install phpmyadmin

use su - for superuser access. 使用su -用于超级用户访问。

and then (at least with my experience) you should be able to go to yoururl.com/phpmyadmin and you should be able to login there. 然后(至少根据我的经验)你应该能够访问yoururl.com/phpmyadmin ,你应该可以登录那里。

I hope this helps. 我希望这有帮助。

Edit: For some reason Debian (at least his version) lacks sudo. 编辑:由于某种原因,Debian(至少他的版本)缺少sudo。 I feel that phpmyadmin will be the easiest way to manage the database. 我觉得phpmyadmin将是管理数据库的最简单方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM