如何在 Arch Linux 上安装 Oracle?

如何在 Arch Linux 上安装 Oracle?

我尝试过维基百科

我能够完成到这里。

wget --http-user "I accept www.opensource.org/licenses/cpl" --http-password "." http://www.research.att.com/~gsf/download/tgz/INIT.2011-02-08.tgz

然后就提示找不到INIT包。不知道下一步该怎么做。

我尝试去 Oracle 下载并通过解压并尝试安装来继续。它显示出许多错误。

我想知道是否有人在 Arch 上成功安装了 Oracle?

编辑:

我在上面的链接中尝试了以下操作:

[srikanth@myhost Downloads]$ tar -xvf oracle.tar.gz 
oracle
oracle/PKGBUILD
oracle/oracle.install
oracle/ee.rsp.patch
oracle/oracledb
[srikanth@myhost Downloads]$ cd oracle
[srikanth@myhost oracle]$ ls
ee.rsp.patch  oracledb  oracle.install  PKGBUILD
[srikanth@myhost oracle]$ makepkg -s
==> Making package: oracle 11gR1-1 (Thu Jan 19 21:54:20 CST 2012)
==> Checking runtime dependencies...
==> Installing missing dependencies...
Password: 
error: target not found: ksh
==> ERROR: 'pacman' failed to install missing dependencies.

然后我尝试通过 yaourt 和 aur 安装 ksh

                                      ksh

              ---------------------------------------------------
                1) View/Edit PKGBUILD
              ---------------------------------------------------
              * b)  Build with makepkg and install with pacman.
                s)  Save build files and build.
                n)  Next package. Skip this package.
                q)  Quit without building.
              ---------------------------------------------------

              Enter a selection: [B] b
==> Checking Buildtime Dependencies... 

==> Checking Runtime Dependencies... 

==> Making package: ksh 2011.02.08-1 (Fri Jan 20 16:38:02 CST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> ERROR: INIT.2011-02-08.tgz was not found in the build directory and is not a URL.
aurbuild: could not build ksh with makepkg.
Build directory retained at /var/tmp/aurbuild/build/ksh
You can visit the directory, fix the problem, and run makepkg.

[srikanth@myhost oracle]$ yaourt -S ksh

==> Downloading ksh PKGBUILD from AUR...
x PKGBUILD

( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> ksh dependencies:

==> ksh conflicts:
 - pdksh-5.2.14-6

==> Continue building ksh ? [Y/n]
==> -----------------------------
==> 
==> Building and installing package
==> Making package: ksh 2011.02.08-1 (Thu Jan 19 21:57:07 CST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> ERROR: INIT.2011-02-08.tgz was not found in the build directory and is not a URL.
==> ERROR: Makepkg was unable to build ksh.
==> Restart building ksh ? [y/N]

请建议。

我遇到了这个初始化包

我应该为 Arch Linux 64 位下载哪个软件包?

答案1

正如 jasonwryan 指出的,您可以通过使用更轻松地做到这一点AUR包。在您提供的同一维基页面上,有安装方法2-AUR条目,其中解释了如何通过 AUR 安装它。这种方法应该比手动操作更容易且更易于维护。

编辑:要安装 ksh,请查看它PKG构建

# AT&T requires the user to agree to a license agreement before downloading the
# source, so I didn't include the direct URLs in the PKGBUILD. Just visit
# 'http://www.research.att.com/~gsf/download/', download
# 'ast-ksh.2009-05-05.tgz' and 'INIT.2009-05-05.tgz', and place them in the
# same directory as the PKGBUILD before running makepkg

您需要做的是:

  1. 这里并下载需要的包
  2. 将它们都放在某个目录中
  3. 导航到该目录
  4. 为这两个包创建 md5 哈希值md5sum filename
  5. 从两个包所在目录执行yaourt -S ksh
  6. 当询问您是否要编辑 PKGBUILD 时,请说“是”
  7. 编辑来源MD5 总和行(具有新文件名和新哈希值)
  8. 保存更改并退出编辑
  9. 继续建设ksh

如果其他一切正常,ksh 安装应该没有问题。

相关内容