You are not logged in.
Hey guys,
I need a local Oracle database to play with. I'm trying to install oracle-xe from the AUR but it requires a manual download of a file.
I downloaded the .rpm.zip but I'm not sure how to replace the following line in the PKGBUILD:
source=('manual://download/file/from/oracle/page/oracle-xe-11.2.0-1.0.x86_64.rpm.zip'I tried:
* just changing the path (-> file doesn't exist)
* using "file://" (-> unknown prefix)
* not using any prefix (-> doesn't exist or is not a URL)
What is the right way to do it?
Last edited by custo (2017-10-21 18:37:04)
Offline
Just delete "download/file/from/oracle/page/"
Edit: or really, why do you have to change anything? It should really just work AFAIK.
Last edited by Scimmia (2017-10-21 16:35:34)
Offline
But where exactly do I put the ZIP file I downloaded?
Offline
In the same dir as the PKGBUILD, or in $SRCDEST if you have that set.
Offline
Okay, so removing any prefixes and putting it in the same directory as PKGBUILD just works indeed. However, the build is not actually successful.
This is probably unrelated but maybe you can just tell me here how to get more debugging information about this? I just get the following:
[niklas@roshan oracle-xe]$ makepkg -si
==> Making package: oracle-xe 11.2.0_1.0-4 (Sat 21 Oct 18:42:32 CEST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found oracle-xe-11.2.0-1.0.x86_64.rpm.zip
-> Found oracle_env.csh
-> Found oracle_env.sh
-> Found oracle-xe
-> Found oracle-xe.conf
-> Found listener.ora
-> Found oracle-xe.service
==> Validating source files with md5sums...
oracle-xe-11.2.0-1.0.x86_64.rpm.zip ... Passed
oracle_env.csh ... Passed
oracle_env.sh ... Passed
oracle-xe ... Passed
oracle-xe.conf ... Passed
listener.ora ... Passed
oracle-xe.service ... Passed
==> Extracting sources...
-> Extracting oracle-xe-11.2.0-1.0.x86_64.rpm.zip with bsdtar
==> Starting build()...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "oracle-xe"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Adding install file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: oracle-xe 11.2.0_1.0-4 (Sat 21 Oct 18:47:04 CEST 2017)
==> Installing package oracle-xe with pacman -U...
[sudo] password for niklas:
==> WARNING: Failed to install built package(s).
[niklas@roshan oracle-xe]$ ls
listener.ora oracle-xe oracle-xe.service
oracle_env.csh oracle-xe-11.2.0_1.0-4-x86_64.pkg.tar.xz pkg
oracle_env.sh oracle-xe-11.2.0-1.0.x86_64.rpm.zip PKGBUILD
oracle.install oracle-xe.conf srcThere is a tar.xz but it says built failed?
Last edited by custo (2017-10-21 17:57:38)
Offline
It looks like the build was successful, only the installation with pacman failed.
Edit: Maybe you forgot to type your password to run pacman with sudo and it timed out?
What happens if you try to install it with "pacman -U <pkg.tar.xz>"
Last edited by progandy (2017-10-21 18:02:59)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Yes, it seems like it was just that! TIL: sudo expires after some time.
Thanks for your kind help. ![]()
Offline
==> Finished making: oracle-xe 11.2.0_1.0-4 (Sat 21 Oct 18:47:04 CEST 2017)
==> Installing package oracle-xe with pacman -U...
[sudo] password for niklas:
==> WARNING: Failed to install built package(s).There is a reason it said the package was made, and then threw a "warning" at you that the "built package(s)" was not installed.
...
That is a pretty weird and somewhat confusing source url though. makepkg will attempt to download any file with a protocol:// that its DLAGENTS=() in makepkg.conf knows how to handle. Obviously, manual:// is not a known protocol, but people usually use file:// or local:// and really local:// should always be used as it is special-cased in makepkg as something that makepkg will not even try to download whereas file:// only works because it isn't handled in DLAGENTS for obvious reasons. Although file://oracle-xe-11.2.0-1.0.x86_64.rpm.zip would try to download the file from the current working directory anyway, if it did have a file:// capable download agent, which would also technically work but would be somewhat odd in concept. ![]()
"download/file/from/oracle/page/" is a pointless thing that accomplishes nothing other than wasting a minute amount of disk storage space, and doesn't even serve as a useful comment instructing people where to get the file from.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline