如何在 Arch Linux 上安装 Oracle?

4 arch-linux oracle-database

我试着通过维基

我能够完成直到这里。

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
Run Code Online (Sandbox Code Playgroud)

然后,它说没有找到 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.
Run Code Online (Sandbox Code Playgroud)

然后我尝试通过 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.
Run Code Online (Sandbox Code Playgroud)

[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]
Run Code Online (Sandbox Code Playgroud)

请建议。

我遇到了这个INIT 包

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

tki*_*kit 7

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

编辑:要安装 ksh,请查看它的PKGBUILD

# 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
Run Code Online (Sandbox Code Playgroud)

您需要做的是:

  1. 这里下载所需的包
  2. 将它们都放在某个目录中
  3. 导航到该目录
  4. 为这两个包创建 md5 哈希 md5sum filename
  5. 从两个包所在的目录执行 yaourt -S ksh
  6. 当被问及是否要编辑 PKGBUILD 时说是
  7. 编辑源代码md5sums行(使用新文件名和新哈希)
  8. 保存更改并退出编辑
  9. 继续构建 ksh

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