fail to install p4vasp on ubuntu 10.4

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.


Moderators: Global Moderator, Moderator

Locked
Message
Author
tuocvu
Newbie
Newbie
Posts: 3
Joined: Mon Aug 02, 2010 5:41 pm

fail to install p4vasp on ubuntu 10.4

#1 Post by tuocvu » Mon Aug 02, 2010 6:09 pm

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>
Last edited by tuocvu on Mon Aug 02, 2010 6:09 pm, edited 1 time in total.

ariel
Newbie
Newbie
Posts: 3
Joined: Thu Jul 08, 2010 10:53 am

fail to install p4vasp on ubuntu 10.4

#2 Post by ariel » Wed Aug 11, 2010 7:50 am

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
Last edited by ariel on Wed Aug 11, 2010 7:50 am, edited 1 time in total.

ginggs
Newbie
Newbie
Posts: 2
Joined: Wed Jul 23, 2008 4:26 pm
License Nr.: 817

fail to install p4vasp on ubuntu 10.4

#3 Post by ginggs » Fri Aug 20, 2010 1:08 pm

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>
Last edited by ginggs on Fri Aug 20, 2010 1:08 pm, edited 1 time in total.

Locked