LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-11-2014, 11:32 PM   #31
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761

Quote:
Originally Posted by Paulo2 View Post
After installing java, you can try that
$ JAVACMD=$(type -p java) sh BibleDesktop.sh
because BibleDesktop.sh doesn't find java path.
It doesn't find Java because you need to log out and back in once, after have first installed it (or at least source the profile file it setup in /etc/profile.d).
 
Old 06-11-2014, 11:34 PM   #32
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by ruario View Post
Wow, fortune seems to understand context. Something I had long suspected.

I don't have fortune anymore, but this one is very good.
 
Old 06-11-2014, 11:37 PM   #33
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by cwizardone View Post
Bingo!
I was reading through this thread and was wondering why this wasn't brought up earlier.
Yeah, this was a very odd thread. Not sure how we got to page two of comments with so many obvious errors. Presumably most of the regulars were asleep or otherwise occupied.
 
Old 06-11-2014, 11:39 PM   #34
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by ruario View Post
It doesn't find Java because you need to log out and back in once, after have first installed it (or at least source the profile file it setup in /etc/profile.d).
I think this isn't the problem, because it didn't work to me.
I suspect that this piece is missing the java path.

BibleDesktop.sh
Code:
if [ -z "$JAVACMD" ] ; then 
  if [ -n "$JAVA_HOME"  ] ; then
    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 
      # IBM's JDK on AIX uses strange locations for the executables
      JAVACMD="$JAVA_HOME/jre/sh/java"
    else
      JAVACMD="$JAVA_HOME/bin/java"
    fi
  else
    JAVACMD=`ls -d $ROOT/Java/linux/jre*/bin/java 2> /dev/null`
    if [ -z "$JAVACMD" ] ; then 
      JAVACMD=`which java 2> /dev/null `
      if [ -z "$JAVACMD" ] ; then 
        JAVACMD=java
      fi
    fi
  fi
fi
 
1 members found this post helpful.
Old 06-11-2014, 11:55 PM   #35
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Paulo2 View Post
I think this isn't the problem, because it didn't work to me.
I suspect that this piece is missing the java path.
Did you actually try? I mean logging out and in again, as I suggested.

I am not going to install this program to check for you but a re-log should work since /etc/profile.d/openjdk.sh sets up $JAVA_HOME as I stated previously.

It also adds the java to the $PATH.

Code:
$ cat /etc/profile.d/openjdk.sh
#!/bin/sh
export JAVA_HOME=/usr/lib/java
export MANPATH="${MANPATH}:${JAVA_HOME}/man"
export PATH="${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"

Last edited by ruario; 06-12-2014 at 12:00 AM. Reason: added mention of java and path
 
Old 06-12-2014, 12:11 AM   #36
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by ruario View Post
Did you actually try? I mean logging out and in again, as I suggested.
Yes, my JAVA_HOME is set correctly.

The problem is that with Open java the path is set incorrectly in BibleDesktop.sh.
I don't know with Oracle java, I don't have it.
 
1 members found this post helpful.
Old 06-12-2014, 12:57 AM   #37
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Paulo2 View Post
The problem is that with Open java the path is set incorrectly in BibleDesktop.sh.
Indeed, I stand corrected.

Quote:
Originally Posted by Paulo2 View Post
I don't know with Oracle java, I don't have it.
I just ran a quick test. On 32-bit Slackware with Oracle JRE installed, the path to Java matches what BibleDesktop.sh sets $JAVACMD to.

Code:
$ ls /var/log/packages/*jre*           
/var/log/packages/jre-7u60-i586-1
$ cat test # Using the code snippet you provided from BibleDesktop.sh
if [ -z "$JAVACMD" ] ; then 
  if [ -n "$JAVA_HOME"  ] ; then
    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 
      # IBM's JDK on AIX uses strange locations for the executables
      JAVACMD="$JAVA_HOME/jre/sh/java"
    else
      JAVACMD="$JAVA_HOME/bin/java"
    fi
  else
    JAVACMD=`ls -d $ROOT/Java/linux/jre*/bin/java 2> /dev/null`
    if [ -z "$JAVACMD" ] ; then 
      JAVACMD=`which java 2> /dev/null `
      if [ -z "$JAVACMD" ] ; then 
        JAVACMD=java
      fi
    fi
  fi
fi

echo $JAVACMD
$ ./test      
/usr/lib/java/bin/java
$ which java  
/usr/lib/java/bin/java
For comparison, with OpenJRE:
Code:
$ ls /var/log/packages/*jre*  
/var/log/packages/openjre-7u55_b14-i486-1alien
$ ./test                    
/usr/lib/java/bin/java
$ which java                
/usr/lib/java/jre/bin/java
In summary, you are right. BibleDesktop.sh is stupid because it assumes Oracle Java will be used.

Last edited by ruario; 06-12-2014 at 01:12 AM. Reason: added a comparison with OpenJRE
 
Old 06-12-2014, 10:01 AM   #38
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
Quote:
Originally Posted by ruario View Post
BibleDesktop.sh is stupid because it assumes Oracle Java will be used.
I think that line in the 'else', "JAVACMD=`which java 2> /dev/null `" would be the first one,
out of conditional. It would save a lot of problems.
 
Old 06-12-2014, 01:57 PM   #39
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Why not?
Code:
installpkg /tmp/openjdk-7u55_b14-x86_64-1alien.txz
Oops! Missed reading a page.

Last edited by brianL; 06-12-2014 at 02:01 PM.
 
Old 06-12-2014, 04:43 PM   #40
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by ruario View Post
Just for the record, stop trying to use slackpkg and to install local files, with a local path. That will not work. slackpkg installs packages from the Slackware repository.

Also installpkg will install local packages but only Slackware packages. AlienBOB's Java package will be fine but not any random tar you happen to come across. Remember that while Slackware packages are compressed tar archives, not every compressed tar archive is a Slackware package.

Code:
installpkg /home/zebracat/Downloads/openjdk-7u55_b14-x86_64-1alien.txz
Thanks for the confirmation on not using slackpkg to install local files.

Code:
bash-4.2$ su -
Password: 

Q:	How do you keep a moron in suspense?

root@cat:~# installpkg /home/zebracat/Downloads/openjdk-7u55_b14-x86_64-1alien.txz
Verifying package openjdk-7u55_b14-x86_64-1alien.txz.
Installing package openjdk-7u55_b14-x86_64-1alien.txz:
PACKAGE DESCRIPTION:
# Java(TM) 2 Platform Standard Edition Development Kit.
#
# The Java 2 SDK software includes tools for developing, testing, and
# running programs written in the Java programming language.  This
# package contains the Open Source version of the JDK, which holds
# everything you need to run Java(TM).
#
# For additional information, refer to this web page:
#   http://openjdk.java.net/
#
Executing install script for openjdk-7u55_b14-x86_64-1alien.txz.
Package openjdk-7u55_b14-x86_64-1alien.txz installed.

root@cat:~#
 
Old 06-12-2014, 05:00 PM   #41
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Paulo2 View Post
Yes, did happen here too. I uninstalled java and installed again
with slackpkg install, and got the same problem.

I always use installpkg and removepkg with no problems,
so installed "installpkg openjre...",

Try using installpkg instead of slackpkg.

After installing java, you can try that
$ JAVACMD=$(type -p java) sh BibleDesktop.sh
because BibleDesktop.sh doesn't find java path.


A little off-topic, bibledesktop-1.6 dir size is 3.7MB.
When I launch Bible Desktop, it says that I have no Bibles
installed and asks to download from internet. Is this right?
Yes that's right.
Upon install BibleDesktop there will not be any modules installed.
You have to go through and choose the various types of modules (various different bibles/books) that you want.
A fresh install of Xiphos you have to do the same thing.

I'll try this now while I am in the Downloads directory with bibledesktop-1.6
Code:
JAVACMD=$(type -p java) sh BibleDesktop.sh
Should I open the bibledesktop-1.6 file and use ls to show all the files in the termianl and than run
the above cmd?
 
Old 06-12-2014, 05:03 PM   #42
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Just cd to the directory and run the command. You don't need to list the files.

EDIT: Actually you don't even need to cd to the directory, you could do:

JAVACMD=$(type -p java) sh /path/to/BibleDesktop.sh

Last edited by moisespedro; 06-12-2014 at 05:04 PM.
 
Old 06-12-2014, 05:29 PM   #43
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by moisespedro View Post
Just cd to the directory and run the command. You don't need to list the files.

EDIT: Actually you don't even need to cd to the directory, you could do:

JAVACMD=$(type -p java) sh /path/to/BibleDesktop.sh
Code:
bash-4.2$ JAVACMD=$(type -p java) sh /home/zebracat/Downloads/BibleDesktop.sh
sh: /home/zebracat/Downloads/BibleDesktop.sh: No such file or directory
bash-4.2$ 
bash-4.2$ JAVACMD=$(type -p java) sh BibleDesktop.sh
sh: BibleDesktop.sh: No such file or directory
bash-4.2$
 
Old 06-12-2014, 05:32 PM   #44
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Type the correct path
 
Old 06-12-2014, 05:54 PM   #45
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I went to my Downloads directory where the bibledesktop-1.6 is to check on the full path.
I found the BibleDesktop.sh file.

Unless my vision is failing me the full path should be:
/home/zebracat/Downloads/bibledesktop-1.6/

Took a screenshot for you to see:- Looking at the screenshot; do you agree?
http://s1052.photobucket.com/user/Ul...sktop.png.html

So unless I'm mistaken I can now run this:
Code:
JAVACMD=$(type -p java) sh /home/zebracat/Downloads/bibledesktop-1.6/BibleDesktop.sh
Right?
 
  


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
File pk11func.h not found while compiling eCryptfs on Slackware 13.1 emirhg Linux - Newbie 1 04-26-2011 05:23 PM
linker script file not found while using codesourcery g++ lite to program a developme raphtor Linux - Software 0 10-21-2009 04:04 AM
[SOLVED] Slackware 12.2 Default Install eth0 not found sycarion Linux - Networking 8 10-09-2009 03:55 AM
can't install a program -- the 'configure' command is not found jaffa_kree Linux - Newbie 3 09-07-2006 10:39 PM
how do i install new drivers i found on slackware 8.0 Wicky Linux - Newbie 2 10-15-2002 10:29 PM

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

All times are GMT -5. The time now is 05:55 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
Open Source Consulting | Domain Registration