JoPalMo wrote:Hi, I'm a Linux beginner runing SALIX xfce 14.1.
I'm interested to install SweetHome 3D.
It always crash trying to install jdk. How can I proceed?
administrador[~]$ sudo slapt-src -i SweetHome3D
Password:
The following packages will be installed:
SweetHome3D
The following dependent slackbuilds will be built and installed:
jdk
Do you want to continue? [y/N] y
Fetching README...Done
Fetching jdk.SlackBuild...Done
Fetching jdk.info...Done
Fetching profile.d/jdk.csh...Done
Fetching profile.d/jdk.sh...Done
Fetching slack-desc...Done
Fetching
http://download.oracle.com/otn-pub/java ... z...Failed
I had this problem a few months ago. You need to download the tarball manually, because Oracle requires you to agree explicitly to its license (i.e., by way of a checkbox) before you can actually download it.
You can grab it up at
http://www.oracle.com/technetwork/java/ ... 80261.html. Again, you'll have to agree to the license, and you'll want to be sure you grab the file specified in the slackbuild (i.e., not the .rpm for i586).
To grab up the slackbuild and related files, you can go to
http://slackbuilds.org/repository/14.1/development/jdk/ and either grab all the files listed under "Individual Files," or you can just grab jdk.tar.gz under "Download Slackbuild."
On the other hand, if you ever have this problem again, you might try lftp. This makes grabbing up slackbuild files a lot more efficient. (Note, though, that this will still not get you the jdk tarball directly; it just makes it considerably easier to get your packaging directory set up quickly.)
cd into a directory you want to reserve for packaging (e.g. /home/yourusername/Packages or something similar), and create a mirror of the slackbuild directory you want. I usually just use my own slapt-{get|src} mirror to supply the proper URL (this can probably also be done with sbo, but since it's much easier to figure out the directory structure of my mirror, I just stick to using it instead). Here's an example:
Code: Select all
lftp -c "open http://mirrors.xmission.com/salix/sbo/14.1/development; open jdk"
In other words, find the parent directory of the actual directory you want to mirror, provide *that* URL after the open switch, and (predictably enough

) mirror the directory you actually want to mirror. In my case, the server I'm using to accomplish this is
http://www.mirrors.xmission.com/salix/; that's the part you'd probably want to replace with the mirrors in your own slapt-{get|src}rc files, or you can just refer to
this list for the one closest to you geographically.
This'll put a subdirectory in your package directory populated with all the files needed for the jdk slackbuild. Just move the tarball of the jdk in there, run the slackbuild, and it'll build the jdk and place its package in /tmp. Use
to find the .tgz, and then just install it with
Code: Select all
sudo /sbin/installpkg name-of-jdk-tarball.tgz
Hope this helps!