LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2015, 04:52 AM   #16
brownratpig
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled

I can quote the whole of the shell script for install here:
#!/bin/bash
EDITION=community
RETVAL=0
NOASK="false"
DEBUG_LOGS="true"
NOLICENSE="false"
NODE=0
DATABASE_SERVER_NAME="localhost"
DATABASE_PORT="7403"
REMOTE_DATA_BASE=local
INSTALL_FOLDER=""
ERROR_OK=0
SILENT_NODE=0
IP=""
REDHAT_VERSION=64
VERSION=7.4
MINOR_VERSION=1
REVO_VERSION=7.4.1
REVO_BIN_STRING=Revo-$VERSION
R_VERSION=R-3.1.2
LINUX_VERSION=5
TOMCAT_VERSION=7.0.34
TOMCAT_SSL_PORT=7401
TOMCAT_PORT=7400
TOMCAT_SHUTDOWN_PORT=7402
RSERVE_PORT=7404
RSERVE_CANCEL_PORT=7405
USER='wnhoami'
GROUP='id -g -n $USER'
IS_ROOT=0
R=1
RBIN="/usr/bin/R"
R_HOME=/usr/lib64/R
LINUX=redhat
DB_PATH=""
##HOST_NAME=`/sbin/ifconfig | grep --max-count=1 -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
##HOST_NAME=`/sbin/ifconfig | grep --max-count=1 -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
HOST_NAME=localhost

checkRoot() {
uid=`id -u`
if [ 0 -eq $uid ] ; then
IS_ROOT=1



A couple things jump out @ me:
This should be installed as root, I know that's bad practice in some senses, but mb "USER="whoami"" and IS_ROOT=0 are problems. The version of R is also wrong.

Also - the fact that it shebangs from /bin/bash...should that be a directory that is either root or related to the Java directory or where my bashrc and profile files are?
 
Old 09-23-2015, 04:55 AM   #17
brownratpig
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
bash -xv <script>
will create a log and you can check the program flow or post the result
So where it screws up it returns:
checkPrerequisites
analyzeJava
'[' -z '' ']'
javaMessage ' '
echo

---------- Post added 09-23-15 at 03:56 AM ----------

Quote:
Originally Posted by brownratpig View Post
So where it screws up it returns:
checkPrerequisites
analyzeJava
'[' -z '' ']'
javaMessage ' '
echo
Just going to try again with IS_ROOT=1
 
Old 09-23-2015, 04:57 AM   #18
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,495

Rep: Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312
Usually things are installed as root, there is nothing wrong with that. You need to check the documentation if that software should (or should not) be installed as root.
shebang is ok, it is not related to java at all and the location of the files you mentioned. But it is not the whole script, just the beginning.
I have no idea what is that R
 
Old 09-23-2015, 04:59 AM   #19
brownratpig
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by brownratpig View Post
So where it screws up it returns:
checkPrerequisites
analyzeJava
'[' -z '' ']'
javaMessage ' '
echo

---------- Post added 09-23-15 at 03:56 AM ----------



Just going to try again with IS_ROOT=1
I see now - the whole script that is used for install is spelled out above the license agreement. Looking for Java section now.
 
Old 09-23-2015, 05:14 AM   #20
brownratpig
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
There's a lot of stuff here. I'm going to post everything Java related in the install script in .jpeg files...don't sweat a quick response on this one. I appreciate the help.
(edit: I guess it's only 3 jpeg's)
Click image for larger version

Name:	deployr script 1.jpg
Views:	10
Size:	145.2 KB
ID:	19659

Click image for larger version

Name:	deployr script 2.jpg
Views:	9
Size:	89.6 KB
ID:	19660

Click image for larger version

Name:	deployr script 3.jpg
Views:	10
Size:	148.1 KB
ID:	19661
 
Old 09-23-2015, 05:17 AM   #21
brownratpig
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Usually things are installed as root, there is nothing wrong with that. You need to check the documentation if that software should (or should not) be installed as root.
shebang is ok, it is not related to java at all and the location of the files you mentioned. But it is not the whole script, just the beginning.
I have no idea what is that R
R is the functional statistical computing language which is kind of the backbone of the software. DeployR is based on R but does a lot more stuff. So it requires a separate install of R as a prerequisite (mentioned in deployr install link in my first post, and which I think I've done correctly. But there's no way to know because all checks for R in the script come after the Java check that is failed lol. So that might be a problem too but one thing at a time. It is 5:17 am where I am so going to sleep now but ty v much for your help and time.
 
Old 09-23-2015, 05:22 AM   #22
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,495

Rep: Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312
Actually I would prefer the log file (bash -xv <Script>) those pictures do not help.
 
Old 09-23-2015, 05:23 AM   #23
brownratpig
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by brownratpig View Post
There's a lot of stuff here. I'm going to post everything Java related in the install script in .jpeg files...don't sweat a quick response on this one. I appreciate the help.
(edit: I guess it's only 3 jpeg's)
Attachment 19659

Attachment 19660

Attachment 19661
The part that is screwing up is end of pg 2 to middle of pg 3..."Please set JAVA_HOME. See the deployr installation instructions for more details."
 
Old 09-23-2015, 05:25 AM   #24
brownratpig
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Actually I would prefer the log file (bash -xv <Script>) those pictures do not help.
Should I pipe bash -xv (script) somewhere? When I do that command, I get the script spelled out as in the pics above the license agreement.
 
Old 09-23-2015, 05:26 AM   #25
brownratpig
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
I don't know how to make that command give me a log file, or where that log file would be.
 
Old 09-23-2015, 05:40 AM   #26
brownratpig
LQ Newbie
 
Registered: Sep 2015
Posts: 18

Original Poster
Rep: Reputation: Disabled
AWS support just got back to me - they were able to install it without any trouble and gave me all the input and output they used. So Ill try that, let you know if it works, and be back tmrw.
 
  


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
[SOLVED] Error:: "wrong # args: should be "set varName ?newValue?" " while running TCL script rc49 Linux - Newbie 2 09-15-2016 01:01 AM
"Error: JAVA_HOME is not defined correctly"while building PMS moisespedro Slackware 10 01-01-2014 07:52 PM
why "su" and "sudo" commands need to be Set-UID programs?? goldengriff Ubuntu 3 11-07-2013 04:52 AM
How to set the font-size for "xterm" terminal-emulator (running "bash" shell) ajaygarg Linux - Desktop 1 03-09-2012 01:38 PM
How to set the size of icons for "Starterbar" in "Gdekslets" Blue Jacket Linux - Software 4 11-23-2005 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration