Page 1 of 1

fail to install p4vasp on ubuntu 10.4

Posted: Mon Aug 02, 2010 6:09 pm
by tuocvu
Dear p4vasp user I have installed p4vasp-0.3.9 from p4vasp-0.3.9.tgz (downloaded from your site). All python & fltk installed by apt-get OK but I have met the follwoing while make. Do anyone already experienced p4vasp on Ubuntu pls help.
here is the diagnostic result:
p4vasp Diagnostics

Python version: 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
Platform: linux2
Issue: Ubuntu 10.04.1 LTS \n \l
Hostname: tuocvu-uiuc
LINUX: Linux 2.6.32-24-generic

Executable: /usr/bin/python

Module paths: /home/tuocvu/VASPJobs/p4vasp-0.3.9
/usr/lib/python2.6
/usr/lib/python2.6/plat-linux2
/usr/lib/python2.6/lib-tk
/usr/lib/python2.6/lib-old
/usr/lib/python2.6/lib-dynload
/usr/lib/python2.6/dist-packages
/usr/lib/python2.6/dist-packages/PIL
/usr/lib/python2.6/dist-packages/gst-0.10
/usr/lib/pymodules/python2.6
/usr/lib/python2.6/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.6/gtk-2.0
/usr/local/lib/python2.6/dist-packages

Enviromental variables:
P4VASP_HOME not set
PYTHONPATH not set
PYTHONHOME not set

Python.h was not found in /usr/include/python/Python.h
FLTK:
fltk-config: /usr/bin/fltk-config
version: 1.1.10
api-version: 1.1
libs: /usr/lib/libfltk.a
/usr/lib/libfltk_gl.a
c++ flags: -I/usr/include/freetype2
-g
-O2
-D_THREAD_SAFE
-D_REENTRANT


Can not import the p4vasp module.
The p4vasp seems not to be installed.

Can not import _cp4vasp. Have you compiled and installed it ?
(make; make install)


You probably will not be able to compile, since Python.h is missing.
It is expected to be in %s.
Most likely you do not have the python development headders installed.
They are usually located in a package called python-devel (or something like that).
If you have the headders at a non-standart path, you will need to modify
your Makefiles (mainly thesrc/Makefile).

python-dev is installed ok

Can not import cp4vasp, however the _cp4vasp can be imported.
I have no clue what is the problem...
Maybe the stack trace will help:
<span class='smallblacktext'>[ Edited ]</span>

fail to install p4vasp on ubuntu 10.4

Posted: Wed Aug 11, 2010 7:50 am
by ariel
Hi, I've been meaning to install the new p4vasp version. If you want to do so too, head over to this site:
http://wavemol.org/software/p4vasp

fail to install p4vasp on ubuntu 10.4

Posted: Fri Aug 20, 2010 1:08 pm
by ginggs
Here's how we got p4VASP 0.3.20 to build and run on Ubuntu 10.04:

Install packages necessary for build:

Code: Select all

sudo apt-get install libfltk1.1-dev python2.6-dev g++ libglu1-mesa-dev python-gtk2-dev python-pysqlite2
Optional: if you want to rebuild src/cp4vasp_wrap.cpp:

Code: Select all

sudo apt-get install swig
rm src/cp4vasp_wrap.cpp
Change Makefile as follows:
line #19:

Code: Select all

SITE_PACKAGES = $(PYTHON_HOME)/dist-packages
line #143:

Code: Select all

#chmod -R 755 $(P4VASP_HOME)/doc/api/c
Build and install p4VASP:

Code: Select all

make
sudo make install
To prevent a Segmentation Fault when running p4VASP:

Code: Select all

mv /usr/bin/p4v /usr/lib/p4vasp/p4v.py
and create a new /usr/bin/p4v as follows:

Code: Select all

#!/bin/sh
export LD_PRELOAD=libstdc++.so.6
exec /usr/lib/p4vasp/p4v.py
Install packages necessary to run:

Code: Select all

sudo apt-get install python-numeric python-numeric-ext
Run p4VASP:

Code: Select all

p4v
<span class='smallblacktext'>[ Edited Fri Aug 20 2010, 03:10PM ]</span>