[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to work on the pspp code?

From: John Darrington
Subject: Re: How to work on the pspp code?
Date: Fri, 22 Aug 2014 11:58:59 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Fritz, 

That's essentially how I work too.  But with a slight modification.
On my machine I have a /Scratch directory (which doesn't get backed up)

So I do:

mkdir /Scratch/some-task
cd /Scratch/some-task
$HOME/pspp-master/configure --prefix=$(mktemp -d -p /Scratch) CFLAGS="-O0 -g"
make install

That way I keep my $HOME free from clutter I don't need to backup.


On Fri, Aug 22, 2014 at 11:43:08AM +0200, Friedrich Beckmann wrote:
     I could not figure out a way to find the ui files without using
     configure --prefix=<sometmpdirectory>
     make install 
     But I figured out that there is way to use the binary that is produced by
     make without install. I use an out of source build directory. In this 
     the source tree is in ~/pspp/pspp and the build directory is ~/pspp/build 
     install directory is ~/pspp/install. The configure step is
     cd ~/pspp/build
     ../configure --prefix=$HOME/pspp/install
     To use psppire, the ui files have to be installed with
     make install
     To start psppire with gui from the build directory (you can just run make 
after a source update).
     address@hidden:~/pspp/build$ ./src/ui/gui/psppire 
     To start pspp with my local test.sps script: 
     address@hidden:~/pspp/build$ ./src/ui/terminal/pspp -o fritz.html 
     ./src/ui/terminal/pspp and ./src/ui/gui/psppire are in fact shell script 
wrappers which
     are produced by libtool. Those scripts can not be run in gdb. 
     To start pspp in gdb:
     address@hidden:~/pspp/build$ libtool --mode=execute gdb 
     GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
     Copyright (C) 2014 Free Software Foundation, Inc.
     License GPLv3+: GNU GPL version 3 or later 
     This is free software: you are free to change and redistribute it.
     There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
     and "show warranty" for details.
     This GDB was configured as "x86_64-linux-gnu".
     Type "show configuration" for configuration details.
     For bug reporting instructions, please see:
     Find the GDB manual and other documentation resources online at:
     For help, type "help".
     Type "apropos word" to search for commands related to "word"...
     Reading symbols from 
     (gdb) run -o fritz.html ../test.sps
     Starting program: /home/fritz/pspp/build/src/ui/terminal/.libs/lt-pspp -o 
fritz.html ../test.sps
     [Thread debugging using libthread_db enabled]
     Using host libthread_db library "/lib/x86_64-linux-gnu/".
     [Inferior 1 (process 41475) exited normally]
     With that procedure you do not need to run the full make install after a 
source code change but just make.

     pspp-dev mailing list

PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See or any PGP keyserver for public key.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]