LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ganttproject not working on precise puppy (https://www.linuxquestions.org/questions/linux-newbie-8/ganttproject-not-working-on-precise-puppy-4175451971/)

mike5061 02-27-2013 05:20 PM

ganttproject not working on precise puppy
 
Hi

running precise puppy 5.4
ganttproject will not run from start menu or command line
java 1.7.0_15 is installed
i think it cannot find java but i cannot find any log files to help me?
some assistance would be great as this is the only item i have been unable to get working.

Thanks

Ztcoracat 02-27-2013 10:25 PM

Hi:

Welcome to Linux Questions!

I read through these Precise Puppy Forum threads to get an idea of where your files might be that your looking for. The path's to log files I found are:
Code:

/usr/local/java
And
/tmp/xerrs.logfile

5 Ways To Search For Files Using The Terminal
http://www.linuxhaxor.net/5-ways-to-...inal-in-linux/

http://murga-linux.com/puppy/viewtop...82092&start=45
http://208.109.22.214/puppy/viewtopi...82de92c4cf25aa
http://bkhome.org/blog2/?viewDetailed=00070
http://distro.ibiblio.org/quirky/pre...cise-5.4.3.htm

Hope this helps

mike5061 02-28-2013 06:10 AM

thanks Ztcoracat for the quick response and "how to find files link" will no doubt be useful

I know from ubuntu where I have migrated from that ganttproject should write a log file to /home/.ganttproject.d but there is nothing in this folder on puppy so the script exits at a very early stage?

no error file in java but xeers.log reports the following but alas it may as well be written latin.



X.Org X Server 1.11.3
Release Date: 2011-12-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.42-26-generic i686 Ubuntu
Current Operating System: Linux puppypc28394 3.2.29 #1 SMP Thu Sep 13 20:33:02 GMT-8 2012 i686
Kernel command line: video=640x480 initrd=initrd.gz pmedia=cd BOOT_IMAGE=vmlinuz
Build Date: 29 August 2012 12:10:05AM
xorg-server 2:1.11.4-0ubuntu10.8 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.24.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Feb 28 10:18:04 2013
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/usr/bin/jwm
/bin/mount: line 28: tr: command not found
/bin/mount: line 28: tr: command not found
/bin/mount: line 103: tail: command not found
[12636:12725:0228/102241:ERROR:bus.cc(307)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[12636:12725:0228/102241:ERROR:bus.cc(307)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[12636:12636:0228/102340:ERROR:layout.cc(160)] Not implemented reached in ui::ScaleFactor ui::GetScaleFactorForNativeView(GtkWidget*)
[12636:12855:0228/102356:ERROR:download_updates_command.cc(128)] PostClientToServerMessage() failed during GetUpdates
Merging /initrd/pup_rw onto /initrd/pup_ro1...
cp: cannot create special file `/initrd/pup_ro1/dev/snd/controlC0': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/pcmC0D0p': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/hwC0D0': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/pcmC0D0c': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/seq': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/timer': No such file or directory
Merging /initrd/pup_rw onto /initrd/pup_ro1...
cp: cannot create special file `/initrd/pup_ro1/dev/snd/controlC0': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/pcmC0D0p': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/hwC0D0': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/pcmC0D0c': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/seq': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/timer': No such file or directory
[12636:12636:0228/113702:ERROR:layout.cc(160)] Not implemented reached in ui::ScaleFactor ui::GetScaleFactorForNativeView(GtkWidget*)
[12636:12636:0228/113746:ERROR:layout.cc(160)] Not implemented reached in ui::ScaleFactor ui::GetScaleFactorForNativeView(GtkWidget*)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Merging /initrd/pup_rw onto /initrd/pup_ro1...
cp: cannot create special file `/initrd/pup_ro1/dev/snd/controlC0': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/pcmC0D0p': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/hwC0D0': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/pcmC0D0c': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/seq': No such file or directory
cp: cannot create special file `/initrd/pup_ro1/dev/snd/timer': No such file or directory
[12636:12636:0228/115427:ERROR:layout.cc(160)] Not implemented reached in ui::ScaleFactor ui::GetScaleFactorForNativeView(GtkWidget*)

Ztcoracat 02-28-2013 06:58 PM

Your Welcome-

I have never seen anything like this 'read out' that you posted. LOL might as well be written in latin- :confused: Looks like a file is not able to be created and I don't understand why.
In Linux you should be able to make any directory or file that you need to.

Maybe another member with that kind of experience looking at that those errors will come along and explain for you what is up.

Quote:

but there is nothing in this folder on puppy so the script exits at a very early stage?
The application ganttproject should of made a file like you said-(with a working logical script)

Maybe the Precise Puppy Forum has record of this. I'll re-search a tad more and see if there is a solution.

Ztcoracat 02-28-2013 07:20 PM

Sometimes looking up the error messages help.
This could be a bug-
Quote:

cp: cannot create special file `/initrd/pup_ro1/dev/snd/pcmC0D0p
https://bugs.launchpad.net/pld-linux/+bug/715918

A member running the same distro as you listed it as well.
http://murga-linux.com/puppy/viewtop...f7f1749c64d084

This error is a discussion in the Precise Puppy forum as well.
Quote:

cp: cannot create special file `/initrd/pup_ro1/dev/snd/pcmC0D0p': No such file or directory
The member tried this:
While the pupsave file is written to the SD card for the first time, there exists no directory ../snd.. in /initrd/pup_ro1/dev/ .
Therefore the copying fails. After I copied the directory ../snd into /initrd/pup_ro1/dev the 'save' to the SD card went well.
Now the xerrs.log reads like this:
http://murga-linux.com/puppy/viewtop...f7f1749c64d084

Hope this helps

mike5061 03-01-2013 03:19 AM

Hi Ztcoracat

Ganttproject is supposed to write a log file to /home/.ganttproject.d which it is not here is a ccopy of the script

echo statement is print to screen i think but none of these happen so i am assuming it exits early?


#!/bin/bash

SCRIPT_PATH=$0
RESOLVED_PATH=`readlink -f "$SCRIPT_PATH"`
while [ ! "$RESOLVED_PATH" = "$SCRIPT_PATH" ]; do
SCRIPT_PATH=$RESOLVED_PATH
RESOLVED_PATH=`readlink -f "$SCRIPT_PATH"`
done
GP_HOME=`dirname "$SCRIPT_PATH"`


GP_LOG_DIR="$HOME/.ganttproject.d"
# Check if log dir is present (or create it)
if [ ! -d $GP_LOG_DIR ]; then
if [ -e $GP_LOG_DIR ]; then
echo "file $GP_LOG_DIR exists and is not a directory" >&2
exit 1
fi
if ! mkdir $GP_LOG_DIR ; then
echo "Could not create $GP_LOG_DIR directory" >&2
exit 1
fi
fi

# Create unique name for log file
LOG_FILE="$GP_LOG_DIR/.ganttproject-"$(date +%Y%m%d%H%M%S)".log"
if [ -e "$LOG_FILE" ] && [ ! -w "$LOG_FILE" ]; then
echo "Log file $LOG_FILE is not writable" >2
exit 1
fi

# Find usable java executable
if [ -z "$JAVA_HOME" ]; then
JAVA_COMMAND=$(which java)
if [ "1" = "$?" ]; then
echo "No executable java found. Please set JAVA_HOME variable" >&2
exit 1
fi
else
JAVA_COMMAND=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVA_COMMAND" ]; then
echo "$JAVA_COMMAND is not executable. Please check the permissions." >&2
exit 1
fi

LOCAL_CLASSPATH=${GP_HOME}/eclipsito.jar:${GP_HOME}
CONFIGURATION_FILE=ganttproject-eclipsito-config.xml
BOOT_CLASS=org.bardsoftware.eclipsito.Boot

if [ -n "$(echo \"$*\" | sed -n '/\(^\|\s\)-/{p;}')" ]; then
$JAVA_COMMAND -Xmx256m -classpath $CLASSPATH:$LOCAL_CLASSPATH $BOOT_CLASS $CONFIGURATION_FILE -log -log_file $LOG_FILE "$@"
else
exec $JAVA_COMMAND -Xmx256m -classpath $CLASSPATH:$LOCAL_CLASSPATH $BOOT_CLASS $CONFIGURATION_FILE -log -log_file $LOG_FILE "$@" &
fi


Thanks again

Ztcoracat 03-01-2013 09:37 PM

Your Welcome!

Have a good weekend!


All times are GMT -5. The time now is 10:58 PM.