LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-23-2009, 12:49 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Sun Jdk vs Eclipse


Hi Forum,

I am trying to compile the latest stable version of Scilab , guess its 5.1.1 ( do not have my Slackware box around to confirm ), anyway, after downloading and untarring the pre-requirements and the source code of Scilab, they all extract to a folder called Scilab, (i guess ) I run ./configure...

It aborts, and asks me for a jdk, so I download the jdk-1.5....-linux-x86_64.bin chmod it and run it... in unpacks to a folder which I use as prefix for Scilab's configure, with --with-jdk=/foo/...

Should work, and it almost does, it finds the java apps in .../foo/bin and aborts abruptly missing some "ant"... :-(


I am clueless here... :-(

Can Eclipse from Slackbuilds be a successful substitution for jdk...?


.... "ant"... !? what the heck is this... ?? Should i have downloaded ahe sdk, instead of the jdk...?

Thanks in advance

Alex
 
Old 10-23-2009, 01:04 PM   #2
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
Smile

I think you should see more documentation and need to google a bit more.

jdk stands for Java Development Kit, provided in the installation dvd in /extra/jdk-6 folder.

Eclipse is an IDE, Integrated Development Environment for Java and many other languages.

To run a java program, you need jre.
To compile a java program, you need jdk.
To make and automate a large program/project, you need tools like Eclipse, or Netbeans.

So, jdk will be sufficient IMHO.

Do not confuse JDK with Eclipse, they are related but completely different things.
 
Old 10-23-2009, 01:06 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Thank you Jedi_sith_fears

I will try to find out how to get ant (!!??) so that I can compile Scilab...


BRGDS

Alex
 
Old 10-23-2009, 01:08 PM   #4
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
default ./configure configure things in /usr/local but usually we use the path as /usr in Slackware.

So it will be a good practise to run configure in slackware as ...

Code:
./configure --prefix=/usr --sysconfdir=/etc

 
Old 10-23-2009, 01:11 PM   #5
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
Smile

Quote:
Originally Posted by Alexvader View Post
Thank you Jedi_sith_fears

I will try to find out how to get ant (!!??) so that I can compile Scilab...


BRGDS

Alex
ant is acronym for Another Neat Tool.

see here .
 
Old 10-23-2009, 01:17 PM   #6
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
ant is a build system, comparable to make, but intended for java code.

Best bet would be grabbing the slackbuild of ant: http://slackbuilds.org/repository/13...nt/apache-ant/

I concur with sith_fears - back to google-foo school for you

Good luck,
- Piete.
 
Old 10-23-2009, 01:24 PM   #7
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
You can grab Scilab ready-made package from Here.

But they are for 12.2 32-bit.


 
Old 10-23-2009, 01:40 PM   #8
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi @Piete, @jedi_sith_fears

Thks for your help... :-)

As soon as I get back home i will get Scilab working, preferably 64 bits, but if not, thanks for the link anyway.

@jedi_sith_fears :

Why should the default of Slackare install be --prefix=/usr instead of the more traditional /usr/local of most distros...?

I guess that this is something peculiar to Slackware itself, but what is the purpose...?

Has to do with pkg management...? I do not know enough of Slackware to understand this... :-(

In all the other distros that I have used, /usr contained the user "base" system ( although it is an abuse to use BSD parlance when refering to a distribution... I think that you get the idea ) /usr/local being reserved to the packages that ADMIN adds to the system through a ./configure make install clean ...

What is the difference about slackware... ? :-) ?

BRGDS

Alex
 
Old 10-23-2009, 01:48 PM   #9
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
prefix defines where the files will be placed, keeping that place as root.

In other distros, /usr/local is the default place, in Slackware it was kept in /usr from a long time, that's why this convention is used. You can install it to /usr/local too, if you desire so.

The problem may arise that when it will be searching for other libraries or programs, they will be /usr, but your program will look for them in /usr/local, so it is better to follow the convention.
 
Old 10-23-2009, 01:53 PM   #10
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Thanks Jedi_sith_fears :-)
 
Old 10-23-2009, 01:55 PM   #11
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
Smile

You just go through Here.

You will understand what you told is more about Traditional Unix Convention, and this is just Slackware convention, since it's closest to UNIX System V, IMHO.

Code:
In traditional Unix systems, /usr usually contains files that 
come with the system distribution, and the /usr/local tree is free 
for the local administrator to manage. The only really hard and fast 
rule is that Unix distributions should not touch /usr/local, except 
perhaps to create the basic directories within it.
You are basically installing a software for all users, so it will be, more logically, in /usr.

Last edited by jedi_sith_fears; 10-23-2009 at 02:08 PM.
 
Old 10-23-2009, 11:52 PM   #12
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 88

Rep: Reputation: 63
Quote:
Originally Posted by Alexvader View Post
Hi Forum,

I am trying to compile the latest stable version of Scilab , guess its 5.1.1 ( do not have my Slackware box around to confirm ), anyway, after downloading and untarring the pre-requirements and the source code of Scilab, they all extract to a folder called Scilab, (i guess ) I run ./configure...

It aborts, and asks me for a jdk, so I download the jdk-1.5....-linux-x86_64.bin chmod it and run it... in unpacks to a folder which I use as prefix for Scilab's configure, with --with-jdk=/foo/...

Should work, and it almost does, it finds the java apps in .../foo/bin and aborts abruptly missing some "ant"... :-(


I am clueless here... :-(

Can Eclipse from Slackbuilds be a successful substitution for jdk...?


.... "ant"... !? what the heck is this... ?? Should i have downloaded ahe sdk, instead of the jdk...?

Thanks in advance

Alex

if you still need a java 1.5 jdk, i have several versions kept up http://cardinal.lizella.net/~vbatts/downloads/, but it conflicts with the java 1.6 from most recent versions of slackware
 
Old 10-24-2009, 12:43 AM   #13
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
Quote:
Originally Posted by vbatts View Post
if you still need a java 1.5 jdk, i have several versions kept up http://cardinal.lizella.net/~vbatts/downloads/, but it conflicts with the java 1.6 from most recent versions of slackware
Actually it conflicts with the symlink created for java.
 
Old 10-24-2009, 07:18 AM   #14
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 88

Rep: Reputation: 63
Quote:
Originally Posted by jedi_sith_fears View Post


Actually it conflicts with the symlink created for java.
while it was a symlink for 1.5, the 1.6 is installed to the /usr/lib$LIBDIRSUFFIX/java. so if you get that resolved, the /etc/profile.d/j*.{,c}sh setting PATH and JAVA_HOME would still need to be cleaned up.

it would require hacking something after installing the pkg, therefore, it conflicts

Last edited by vbatts; 10-24-2009 at 07:52 AM.
 
Old 10-24-2009, 10:41 AM   #15
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
Indeed, installing 1.5 & 1.6 and using them together is a hack
 
  


Reply



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
I can't install sun-java6-jdk sun-java6-bin sun-java6-jre citye Linux - Newbie 2 10-18-2009 04:54 AM
Installing Sun JDK naiveguy Linux - General 2 04-17-2006 02:15 PM
Eclipse and JDK altella Mandriva 2 12-29-2005 05:47 AM
Eclipse and gcj as JDK foucault Linux - Software 0 10-23-2005 11:56 AM
Sun jdk 1.4.1 crashes on compilation juby Programming 1 06-28-2003 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:35 AM.

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
Open Source Consulting | Domain Registration