CS 2.0rc2 MEI compiling warning -> no user law in fluid prop

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Yvan Fournier

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Yvan Fournier »

Hello,

You could try do download the rpm package from Fedora12 (assuming you are on a 64 bit Intel or AMD machine):

archive.fedoraproject.org/fedora/linux/releases/12/Everything/x86_64/os/Packages/ python-2.6.2-2.fc12.x86_64.rpm

(or see this page for more packages:  http://rpm.pbone.net/index.php3/stat/3/limit/4/srodzaj/1/dl/40/search/python%28abi%29/field%5B%5D/1/field%5B%5D/2)

Once downloaded, install it as root using "rpm ivh python-2.6.2-2.fc12.x86_64.rpm"

This should enable the base Python (and yum) to work again.

To remove the version in /usr/local, removing the /usr/local/bin/python executable and the /usr/local/lib/python and /usr/local/etc/python directories, though running "make uninstall" from where the user Python was built would be better, also removing some possible documentation in parts of /usr/local/share.

Best regards,

  Yvan
Christine Leroy

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Christine Leroy »

ok, I've cancelled all file related to python2.6 or python 2.7. If I do a locate for each of them, I have the following results, and if I go into the directories, there's nothing, I don't know why locate keeps on giving me these results. Maybe these fils are hidden, but as I'm logged as root.....dunno.

[root@mediceo6NB leroy]# locate python-2.6
/home/leroy/Downloads/python-2.6.2-2.fc12.src.rpm
/home/leroy/base_soft/python-2.6.2-2.fc12.src.rpm
/home/leroy/base_soft/python-2.6.2-2.fc12.x86_64.rpm
/root/rpmbuild/SOURCES/python-2.6-ctypes-noexecmem.patch
/root/rpmbuild/SOURCES/python-2.6-distutils_rpm.patch
/root/rpmbuild/SOURCES/python-2.6-lib64.patch
/root/rpmbuild/SOURCES/python-2.6-rpath.patch
/root/rpmbuild/SOURCES/python-2.6.2-binutils-no-dep.patch
/root/rpmbuild/SOURCES/python-2.6.2-config.patch
/usr/share/doc/python-2.6.2
/var/lib/yum/yumdb/p/bbaabad94d35171426c5a67a624644bbd4183da1-python-2.6.2-8.fc12-x86_64


[root@mediceo6NB leroy]# locate python2.6
/usr/lib64/libpython2.6.so /usr/lib64/libpython2.6.so.1.0
/usr/lib64/paraview/python2.6
/usr/lib64/paraview/python2.6/lib-dynload
/usr/lib64/paraview/python2.6/lib-dynload/libvtkXdmfPython.so


[root@mediceo6NB leroy]# locate python2.7 /home/leroy/software/saturne/cs-203/lib/python2.7
/usr/local/bin/python2.7
/usr/local/bin/python2.7-config
/usr/local/include/python2.7
/usr/local/lib/libpython2.7.a
/usr/local/lib/python2.7
/usr/local/share/man/man1/python2.7.1


[root@mediceo6NB leroy]# locate python-2.7
/usr/local/lib/pkgconfig/python-2.7.pc
/usr/share/doc/libxml2-python-2.7.6
/var/lib/yum/yumdb/l/589284beea8849e151a0efd69b9f4c869ec44a60-libxml2-python-2.7.6-2.fc12-x86_64


if I try to launch python, I have

[root@mediceo6NB lib]# python Command not found. The transaction failed: internal-error, Spawn of helper '/usr/share/PackageKit/helpers/yum/yumBackend.py' failed

and I think it's normal.

But if I ask for the present version on the computer (there are a lot of old versions of python, but they seem never be in conflict...), I have:

[root@mediceo6NB lib]# rpm -q python python-2.6.2-8.fc12.x86_64

and

[root@mediceo6NB lib]# locate python-2.6.2-8.fc12.x86_64
 
doesn't give any result. So I think the computer is clean concerning python2.6 and python2.7
SO I've downloaded python  and as root :

rpm -ivh python-2.6.2-2.fc12.x86_64.rpm

and obtained:
[root@mediceo6NB base_soft]# rpm -ivh python-2.6.2-2.fc12.x86_64.rpm
error: Failed dependencies:
   python < 2.6.2-8.fc12 conflicts with python-devel-2.6.2-8.fc12.x86_64


but I also cancelled that and a locate gives me no python-devel but just an inexisting directory named
/usr/share/doc/python-devel-2.6.2 /var/lib/yum/yumdb/p/690bc4942da9e923c0379170f56f0a3a424a24e3-python-devel-2.6.2-8.fc12-x86_64

the make uninstall gives me:

make: *** No rule to make target `uninstall'.  Stop.

is there any other way to clean ? The "hidden" files?
 
Thanks again
 
Christine

Previously Yvan Fournier wrote:
Hello,

You could try do download the rpm package from Fedora12 (assuming you are on a 64 bit Intel or AMD machine):

archive.fedoraproject.org/fedora/linux/releases/12/Everything/x86_64/os/Packages/ python-2.6.2-2.fc12.x86_64.rpm

(or see this page for more packages:  http://rpm.pbone.net/index.php3/stat/3/ ... ld%5B%5D/2)

Once downloaded, install it as root using "rpm ivh python-2.6.2-2.fc12.x86_64.rpm"

This should enable the base Python (and yum) to work again.

To remove the version in /usr/local, removing the /usr/local/bin/python executable and the /usr/local/lib/python and /usr/local/etc/python directories, though running "make uninstall" from where the user Python was built would be better, also removing some possible documentation in parts of /usr/local/share.

Best regards,

  Yvan
Yvan Fournier

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Yvan Fournier »

Hello,

You probably have some indexed or cached paths related to the python package, even though you removed the executable.

Relative to the conflict with python-devel, you may need python-2.6.2-8 instead of the 2.6.2-2 version of the link I gave you. If you can find the matching version on the web, use it instead, but otherwise, you may try to force the version you have, adding --force to the rpm option (I'm not sure of the option, so if it doesn't work, run "man rpm" to find something similar to --force).

This should still improve things, an yum should work again, allowing to to update python and get back to version 2.6.2-8.

Best regards,

  Yvan
Christine Leroy

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Christine Leroy »

Hi Yvan
 
I tried first  to erase (as I saw this command in man rpm) the version 2.6.2-8 ....then install the other one, still same problem....then  I use the option --force, then, --replacepkgs ...but there are still error messages but it tells me that the 2 of them are now installed....but if I do locate python 2.6, nothing...

if I try to launch python I have :
[root@mediceo6NB ~]# python
python: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory


I think I'm completely wasting my time.

We have no one here at work for giving help and I'm not informatician...so I think the better is now to reinstall everything...else I will never go on with my work.

When will there be a Window version of Saturne ;-)

Thanks for all, at least now I think I'm able to install Saturne again.

Christine
Christine Leroy

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Christine Leroy »

Hello Yvan,

here I am again.

I think the problem with yum and python is quite solved, avoiding me to reinstall Fedora.

I'm now reinstalling Saturne, putting as many options as I can to avoid future problems.

I've compiled bft and it's ok:
 
files downloaded in the directory : /home/leroy/SATURNE_src

bft-115.zip
fvm-0153.zi
mei-103.zip
ecs-202.zip
ncs-203.zip
installer.zip
 
installation in /home/leroy/software/saturne/cs-203 :

cd /home/leroy/SATURNE_src

installation of BFT:
--------------------
unzip bft-115.zip  --> bft-1.1.5
mkdir bft-1.1.5.build
cd bft-1.1.5.build
../bft-1.1.5/configure --prefix=/home/leroy/software/saturne/cs-203 --with-zlib
make
make install
make clean

everything's ok for this first module
 
installation of FVM:
--------------------
cd .. (back to SATURNE_src directory)
unzip fvm-0153.zip  --< fvm-0.15.3
mkdir fvm-0.15.3.build
cd fvm-0.15.3.build
../fvm-0.15.3/configure --prefix=/home/leroy/software/saturne/cs-203 --with-bft=/home/leroy/software/saturne/cs-203 --with-cgns --with-hdf5 --with-med

at this point, I have the following message :

configure: error: in `/home/leroy/SATURNE_src/fvm-0.15.3.build':
configure: error: CGNS support is requested (requires CGNS >= 2.4), but test for CGNS failed!
See `config.log' for more details

 
I'm not able to install cgns, there are too many instructions I don't understand. Is it ok if I compile without it?

thanks in advance

Christine
Yvan Fournier

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Yvan Fournier »

Hello,

You only need CGNS if the meshing tool you use outputs meshes to CGNS format. This is the case of quite a few commercial meshing tools, such as ANSYS Meshing, or Pointwise. If the meshes you use are not in this format, you can compile without CGNS with no problem.

Best regards,

  Yvan
Christine Leroy

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Christine Leroy »

Ciao Yvan

thank you. So ok, I've compiled fvm without cgns.
when compiling the 3rd module, I have this :

this is what I did :
cd ..
(back to SATURNE_src directory)
unzip mei-103.zip
mkdir mei-1.0.3.build
cd mei-1.0.3.build
../mei-1.0.3/configure --prefix=/home/leroy/software/saturne/cs-203 --with-bft=/home/leroy/software/saturne/cs-203  --with-python_exec=/usr/bin --with-swig
   
resutl:
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --with-swig

    Configuration options:
     use debugging code: false
     Python bindings: true

    The package has been configured. Type:
    make
     make install

    To generate and install the MEI package
make
make install
make clean
 
how can I find the path to zlib for adding in the compiling command?

zlib is installed:
[leroy@mediceo6NB base_soft]$ rpm -qa | grep zlib
zlib-1.2.3-23.fc12.x86_64
zlib-devel-1.2.3-23.fc12.x86_64
 
thank you
 
Christine
 
Previously Yvan Fournier wrote:
Hello,

You only need CGNS if the meshing tool you use outputs meshes to CGNS format. This is the case of quite a few commercial meshing tools, such as ANSYS Meshing, or Pointwise. If the meshes you use are not in this format, you can compile without CGNS with no problem.

Best regards,

  Yvan
Christine Leroy

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Christine Leroy »

PS: sorry, it's swig that is missing and I have:

[root@mediceo6NB include]# rpm -qa | grep swig swig-1.3.40-1.fc12.x86_64
[root@mediceo6NB include]# whereis swig swig: /usr/bin/swig  /usr/local/bin/swig  /usr/share/swig  
which path should I choose?

Previously Christine Leroy wrote:

Ciao Yvan
 
thank you. So ok, I've compiled fvm without cgns.
when compiling the 3rd module, I have this :
 
this is what I did :
cd ..
(back to SATURNE_src directory)
unzip mei-103.zip
mkdir mei-1.0.3.build
cd mei-1.0.3.build
../mei-1.0.3/configure --prefix=/home/leroy/software/saturne/cs-203 --with-bft=/home/leroy/software/saturne/cs-203  --with-python_exec=/usr/bin --with-swig

resutl:
   config.status: creating tests/Makefile
   config.status: creating doc/Makefile
   config.status: executing depfiles commands
   config.status: executing libtool commands
   configure: WARNING: unrecognized options: --with-swig

Configuration options:
    use debugging code: false../mei-1.0.3/configure --prefix=/home/leroy/software/saturne/cs-203 --with-bft=/home/leroy/software/saturne/cs-203 --with-python_exec=/usr/bin --with-swig
    Python bindings: true

   The package has been configured. Type:
     make
     make install

    To generate and install the MEI package make
make install
make clean
 
how can I find the path to zlib for adding in the compiling command?

zlib is installed:
[leroy@mediceo6NB base_soft]$ rpm -qa | grep zlib
zlib-1.2.3-23.fc12.x86_64
zlib-devel-1.2.3-23.fc12.x86_64
 

thank you

Christine  

Previously Yvan Fournier wrote:
Hello,

You only need CGNS if the meshing tool you use outputs meshes to CGNS format. This is the case of quite a few commercial meshing tools, such as ANSYS Meshing, or Pointwise. If the meshes you use are not in this format, you can compile without CGNS with no problem.

Best regards,

Yvan
 

 
Christine Leroy

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Christine Leroy »

Ok, I solved the problem with swig and it's now ok for the MEI module, ok also for the ecs module.

Remains the last one (ncs), and still the same problem as last time, except that adding --with-python_exec=/usr/bin is not enough.

I launch this command :
../ncs-2.0.3/configure --prefix=/home/leroy/software/saturne/cs-203 --with-bft=/home/leroy/software/saturne/cs-203  --with-fvm=/home/leroy/software/saturne/cs-203 --with-mei=/home/leroy/software/saturne/cs-203 --with-prepro=/home/leroy/software/saturne/cs-203 --with-libxml2 --with-blas --with-python_exec=/usr/bin --with-pyqt4_exec


and have the following message :
checking for PyQt4 version >= 4.3...
Traceback (most recent call last):
  File "<string>", line 4, in <module>
ImportError: No module named sip
no
configure: error: in `/home/leroy/SATURNE_src/ncs-2.0.3.build':
configure: error: cannot find PyQt4 support (>= 4.3), Graphical User Interface cannot be installed See `config.log' for more details
 
I send you the config.log
I tried to add sip ( doing whereis sip, I found 3 locations (/usr/bin/sip  /usr/local/bin/sip  /usr/share/sip), I tried the 3 of them, but the error messages remained the same)
all the programs are installed in the computer:
[root@mediceo6NB base_soft]# rpm -qa | grep sip
sip-devel-4.10.2-1.fc12.x86_64
sip-4.10.2-1.fc12.x86_64
[root@mediceo6NB base_soft]# rpm -qa | grep qt
qt-sqlite-4.6.3-8.fc12.x86_64
qt3-3.3.8b-28.fc12.x86_64
qt-x11-4.6.3-8.fc12.x86_64
qt-devel-4.6.3-8.fc12.x86_64
qt-4.6.3-8.fc12.x86_64
[root@mediceo6NB base_soft]# rpm -qa | grep PyQt4
PyQt4-devel-4.7.3-1.fc12.x86_64
PyQt4-4.7.3-1.fc12.x86_64
[root@mediceo6NB base_soft]# rpm -qa | grep blas
blas-3.2.1-3.fc12.x86_64
blas-devel-3.2.1-3.fc12.x86_64
[root@mediceo6NB base_soft]# rpm -qa | grep libxml2
libxml2-devel-2.7.6-2.fc12.x86_64
libxml2-2.7.6-2.fc12.x86_64
libxml2-python-2.7.6-2.fc12.x86_64
when trying to find the PATH for the different programs, whereis doesn't always give me an answer, how can I find it?

for swig (previous problem) I could find it, but here no.

The whereis gives me:
[root@mediceo6NB ncs-2.0.3.build]# whereis blas
blas:
[root@mediceo6NB ncs-2.0.3.build]# whereis libxml2
libxml2: /usr/lib64/libxml2.so /usr/local/lib/libxml2.a /usr/local/lib/libxml2.so /usr/local/lib/libxml2.la /usr/include/libxml2
[root@mediceo6NB ncs-2.0.3.build]# whereis pyqt4-exec
pyqt4-exec:
and if I type locate instead of whereis I have so many answers that I don't know what I'm supposed to choose.

Any idea?

thanks in advance  
Attachments
config.log
(107.63 KiB) Downloaded 183 times
Christine Leroy

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Christine Leroy »

Ciao Yvan

Problem solved, now everything is back to the situation with Saturne working but no user law in the fluid properties panel.

So I went back to your post, the one where you told me that the best way was to add --with-python=/usr/bin when compiling mei.

This time and also the first time I installed successfully Saturne, I had already put this option, so what could I do instead?

Best Regards

Christine
Post Reply