You are not logged in.
Seems to me most of the discussion about this is outdated, so here I go:
I have been running into some issues with programming Arduino. Replaced my avr-gcc with avr-gcc svn, but to no avail. So now I'm going for the standard distribution package of Arduino on most, if not on linux, systems (MACOSX, Windows) that uses JDK and JRE from Sun Oracle. Got the PKGBUILD tarballs from AUR and successfully built my own JRE install, but here is my issue:
[denizen@FIDO-ARCH jre]$ sudo pacman -Rdu openjdk6 && sudo pacman -U jre-7-3-x86_64.pkg.tar.xz
checking dependencies...
warning: removing openjdk6 from target list
there is nothing to do
resolving dependencies...
looking for inter-conflicts...
:: jre and openjdk6 are in conflict (java-runtime). Remove openjdk6? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: eclipse: requires java-environment
:: netbeans: requires java-environmentSo I'm assuming I need JDK as well, but when I build JDK from AUR I get:
[denizen@FIDO-ARCH jdk]$ makepkg PKGBUILD
==> Making package: jdk 7-3 (Fri Sep 30 00:45:39 PHT 2011)
==> Checking runtime dependencies...
==> Missing Dependencies:
-> jre
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.So has anyone done this without issue already? Am I missing a step or command? I'm at a loss at the moment.
Last edited by reidel (2011-09-29 16:56:58)
Offline
Have you tried
sudo pacman -Rdd openjdk6 && sudo pacman -U jre-7-3-x86_64.pkg.tar.xz?
https://aur.archlinux.org/packages/jd/jdk/PKGBUILD provides=('java-environment=7')
Maybe changing this to unversioned java-environment would help?
Offline
Have you tried
sudo pacman -Rdd openjdk6 && sudo pacman -U jre-7-3-x86_64.pkg.tar.xz?
Your command worked wonders! I didn't figure using -d twice on -R will do it. I kind of just skimmed the man pages. ![]()
Thank you very much!! Currently running my JDK build.
Offline
Now, can you tell me how to recycle the JDK packaged in the JRE AUR PKGBUILD script fetched from the internet? Its such a bother having to download it again when I already have a viable copy.
Edit: What I mean is reuse the JDK package gotten from Sun Oracle which currently resides in the src dir of my JRE AUR package build. I tried copying it straight to the src folder of the JDK builder, but to no avail... currently looking through makepkg wiki...
Last edited by reidel (2011-09-29 17:15:08)
Offline
You want to install jdk from AUR w/o redownloading the source from Oracle? Have a look at what it does in the package() part https://aur.archlinux.org/packages/jd/jdk/PKGBUILD
Last edited by karol (2011-09-29 17:21:34)
Offline
All fixed and built, except that I still get errors on that darn Arduino sketch. Tested by Eclipse and Netbeans... thus far they load correctly with no complaints. Might have to test further, but so far so good.
Thank you very much karol! You've been very helpful. ![]()
Offline