LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-19-2012, 10:06 AM   #16
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30

Quote:
Originally Posted by Alien Bob View Post
Spaces in directory names is an abomination introduced by MS Windows and lazy-ass GUI programs.
Which would include KDE's Dolphin as the default name for a new folder is "New Folder" (with a space in it).
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-19-2012, 10:39 AM   #17
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,504

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
I personally agree with Eric.
That is an unfortunate choice for a default name on a unix machine, even in the case of an evolute file manager like Dolphin, a "New_folder"/"New-folder" would have been a better one.

Last edited by ponce; 06-19-2012 at 10:43 AM.
 
Old 06-19-2012, 10:44 AM   #18
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,395

Rep: Reputation: Disabled
Quote:
Originally Posted by aocab View Post
Which would include KDE's Dolphin as the default name for a new folder is "New Folder" (with a space in it).
Indeed. That is why I do not use GUIs to create directories. I also never create folders :-)

Eric
 
Old 07-23-2012, 10:47 AM   #19
Dornith
Member
 
Registered: Jul 2012
Location: U.S.A
Distribution: Archlinux Multilib, Debian 7.0.0 32b
Posts: 153

Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
Using spaces in directory names is not supported by Slackware's scripts. I also do not support it in any of my own scripts. I even have a script (massconvert32.sh) which aborts when it detects a space in the directory name.

Spaces in directory names is an abomination introduced by MS Windows and lazy-ass GUI programs. Real UNIX men avoid space.

Eric
How do I make that come up as one my my Slackware quotes?
 
Old 06-08-2013, 12:53 AM   #20
zeruitle
LQ Newbie
 
Registered: Aug 2012
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by ruario View Post
My script should run just fine in a directory with a space in the name, however jre.SlackBuild will not as it is missing appropriate quoting in some places. This is actually the case with quite a few SlackBuild scripts, so I would generally avoid spacing in directory names anyway.
question, for your script, you were actually installing jre... As far as I know, jre is different from jdk... So if I wish to install jdk, can I modify your script to do it?
 
Old 06-08-2013, 01:04 AM   #21
dugan
Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 5,005

Rep: Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560
There's a Java installation script in /extra. It works for either the JRE or the JDK.
 
Old 06-08-2013, 02:20 AM   #22
zeruitle
LQ Newbie
 
Registered: Aug 2012
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
There's a Java installation script in /extra. It works for either the JRE or the JDK.
I know... it's build for jdk6 in 13.37... I'm trying to install jdk7...
 
Old 06-08-2013, 05:16 AM   #23
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,395

Rep: Reputation: Disabled
Look in Slackware 14 tree. The java.SlackBuild there builds a jdk or a jre package for you, based on the Java archive you downloaded from http://www.oracle.com/technetwork/ja...ads/index.html and placed in that same directory before starting the script.
The SlackBuild will work for Java7. And Oracle's binaries for Java7 will work on Slackware 13.37 just as well as on Slackware 14.

Eric
 
1 members found this post helpful.
Old 06-08-2013, 08:53 PM   #24
zeruitle
LQ Newbie
 
Registered: Aug 2012
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
Look in Slackware 14 tree. The java.SlackBuild there builds a jdk or a jre package for you, based on the Java archive you downloaded from http://www.oracle.com/technetwork/ja...ads/index.html and placed in that same directory before starting the script.
The SlackBuild will work for Java7. And Oracle's binaries for Java7 will work on Slackware 13.37 just as well as on Slackware 14.

Eric
I think I tried this way, and I remember it didnt work and seems it's because the build...
 
Old 06-09-2013, 01:59 AM   #25
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
You think? I think not!

If you follow exactly what Alien Bob said it will work (it works just fine for me). Let me break it down into precise steps.

Firstly use a command like the following to automatically fetch the SlackBuild script and all associated files, and save them into a local directory called 'java' (you can change the mirror and perhaps the --cut-dirs= value if you need to):

Code:
wget -r -nH --cut-dirs=4 ftp://ftp.slackware.no/slackware/slackware-14.0/extra/source/java/
Then grab a Java archive from http://www.oracle.com/technetwork/ja...ads/index.html and place it into this same local 'java' directory.

Finally cd into the directory and as root issue the following:

Code:
sh ./java.SlackBuild

Last edited by ruario; 06-09-2013 at 03:52 AM. Reason: better wording; removed '-np' option as uneeded for ftp recursion
 
1 members found this post helpful.
Old 06-09-2013, 03:54 AM   #26
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,614
Blog Entries: 1

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
To break down the installation steps into even more detailed ones you can have a look here:
http://docs.slackware.com/howtos:software:java
 
Old 06-09-2013, 04:48 AM   #27
zeruitle
LQ Newbie
 
Registered: Aug 2012
Posts: 14

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by ruario View Post
You think? I think not!

If you follow exactly what Alien Bob said it will work (it works just fine for me). Let me break it down into precise steps.

Firstly use a command like the following to automatically fetch the SlackBuild script and all associated files, and save them into a local directory called 'java' (you can change the mirror and perhaps the --cut-dirs= value if you need to):

Code:
wget -r -nH --cut-dirs=4 ftp://ftp.slackware.no/slackware/slackware-14.0/extra/source/java/
Then grab a Java archive from http://www.oracle.com/technetwork/ja...ads/index.html and place it into this same local 'java' directory.

Finally cd into the directory and as root issue the following:

Code:
sh ./java.SlackBuild
Amazing! It worked... Well, I guess I would always use this command to fetch Build script instead of go find it on web and download it... Thanks a lot!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java JRE and JDK on CentOs nuttynibbles Linux - Software 1 06-11-2011 02:41 AM
How to install Java jdk and jre in linux BuhRock Linux - Newbie 2 03-27-2011 05:28 PM
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 11:04 AM
Please help me install latest JDK & JRE on my CentOS server xNuManx Linux - General 5 10-04-2008 05:49 AM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration