Problem with a tutorial

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Mik
Posts: 19
Joined: Sat Mar 11, 2017 6:22 pm

Re: Problem with a tutorial

Post by Mik »

I tried to run in terminal "sudo apt install libxml2-dev". On terminal there was an instruction that tells me to run a command like an "autoremove" in order to delete useless installation files. I restarted the computer and reopened the tutorial case but then:

/usr/lib/code_saturne/cs_solver: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib/libsaturne.so.0)
Warning: program compiled against libxml 209 using older 207

Again the same error.
Now it only show mee this if I run the command line on terminal:

mik@mik-RC530-RC730:~$ sudo apt install libxml2-dev
[sudo] password for mik:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxml2-dev is already the newest version (2.9.3+dfsg1-1ubuntu0.2).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Problem with a tutorial

Post by Yvan Fournier »

Hello,

You probably need to reinstall Code_Saturne after libxml2-dev.

Regards,

Yvan
Mik
Posts: 19
Joined: Sat Mar 11, 2017 6:22 pm

Re: Problem with a tutorial

Post by Mik »

there is a proper way to do it? I don't want to do more damage and i'm not sure i'm finding the right folder where to write the command line for "unistall".
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Problem with a tutorial

Post by Yvan Fournier »

Hello,

Yes, is is better to first remove the libxml2 install in /usr/local. If you can find the directory frow which you installed it, rune "make uninstall". But if you can't find it, you can also check the time and date of /usr/local/lib/libxml2.so, and remove all files with that same date in /usr/local (at least /usr/local/*/libxml2*).

Then simply your installation/build directory (the one in which you have config.log and config.status for Code_Saturne) and rerun your installation.

Best regards,

Yvan
Mik
Posts: 19
Joined: Sat Mar 11, 2017 6:22 pm

Re: Problem with a tutorial

Post by Mik »

Well, maybe it worked! The installation folder of libxml2 was on my Documents folder and i make uninstall, then make clean and distclean. Then i re-runned the install_saturne.py file and it did something. I don't think there was any error. Now the annoying script have disappeared. The result is this...


Code_Saturne
************

Version: 4.2
Path: /usr

Result directory:
/home/mik/T_junction/case1/RESU/20170504-0155



****************************
Preparing calculation data
****************************

Single processor Code_Saturne simulation.


***************************
Preprocessing calculation
***************************


**********************
Starting calculation
**********************


****************************
Saving calculation results
****************************


Is this ok? In the tutorial's image of this phase there are a "Cleaned working directory" line. Am i supposed to have that or is not so important for the results file? I'm becoming paranoic with this :lol: :lol:
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Problem with a tutorial

Post by Yvan Fournier »

Hello,

Yes, this seems good. You can check logs/visualize results/etc at this stage.

Regards,

Yvan
Mik
Posts: 19
Joined: Sat Mar 11, 2017 6:22 pm

Re: Problem with a tutorial

Post by Mik »

Well, thank you very much Yvan. It's seems to be ok for now :D
Mik
Posts: 19
Joined: Sat Mar 11, 2017 6:22 pm

Re: Problem with a tutorial

Post by Mik »

Hello, i'm posting here because i've again a problem processing an object with CS. I made up the mesh on SALOME and i've exported it in *.unv file. ((because the *.med file, during the check mesh phase, don't seems to be supported by my version of CS 4.0.6))
I've prepared everything for the processing and at the final stage "start calculation" there's this message:

Code_Saturne is running
***********************

Version: 4.0
Path: /usr/local

Result directory:
/home/mik/CASE1/RESU/20170527-1223


Single processor Code_Saturne simulation.


****************************
Preparing calculation data
****************************


***************************
Preprocessing calculation
***************************


**********************
Starting calculation
**********************

solver script exited with status 1.

Error running the calculation.

Check Code_Saturne log (listing) and error* files for details.


****************************
Saving calculation results
****************************

Error in calculation stage.

---

What is it?
Luciano Garelli
Posts: 284
Joined: Fri Dec 04, 2015 1:42 pm

Re: Problem with a tutorial

Post by Luciano Garelli »

Hello,

As the message says, "Check Code_Saturne log (listing) and error* files for details". Check the listing file in the RESU directory in order to have more details about the error.

Regards,

Luciano
Mik
Posts: 19
Joined: Sat Mar 11, 2017 6:22 pm

Re: Problem with a tutorial

Post by Mik »

I hope is this one i've attached. Tell me if you need anything about this problem because i'm new with this platform and i don't know how to check in case of errors like this.
Attachments
performance.log
(211 Bytes) Downloaded 300 times
Post Reply