CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (http://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [GAMBIT] gambit 2.3.16 on ubuntu 10.04 (http://www.cfd-online.com/Forums/ansys-meshing/94884-gambit-2-3-16-ubuntu-10-04-a.html)

binjiestudent November 29, 2011 05:51

gambit 2.3.16 on ubuntu 10.04
 
Hello everyone
May be there have something wrong when the gambit 2.3.16 run on the ubuntu 10.04,some questions as flows:
  1. when i run the gambit,one warning is given,but the gambit can run normally:
warning: locale not supported by C library, locale unchanged
VisualID: 209
class: 4
depth: 24
bits_per_rbg: 8
map_entries: 256
Using OPENGL_DEVICE_DRIVER with no standard visual.
2. when i create two volume and then do boolean operation,at this time,gambit crumbled and closed automaticly ,at the same time ,terminal apperaed message as flows:
Received exception: SIGSEGV (segmentation violation)

Please send the GAMBIT.8073/jou and GAMBIT.8073/trn files to your local
Fluent office or distributor. Also send a message including any
relevant errors or warnings you see above in this window. You may
wish to delete the temporary directory GAMBIT.8073 after sending the
above files.
3.when i create two volume and try to use shift+leftkey to pick them, the ubuntu system like dead,you can do any operation.after 5min. the system to be oK ,but the same question apperaed once use shift+leftkey

Does anyone meet these questions like me ? and how to slove?

bachasaurus December 5, 2011 10:17

Hi
 
hello

Can you pass the gambit 2.3.16 installer for linux?

I want to use in Debian
r
egards

villager February 29, 2012 10:12

...
 
Quote:

Originally Posted by binjiestudent (Post 333918)
Hello everyone
Does anyone meet these questions like me ? and how to slove?

Yes, I finally have managed with this error.

If you recieve such messages in console:
Received X Intrinsics Warning <Cannot convert string "-adobe-helvetica-medium-r-normal-*-*-120-75-75-*-*-*" to type FontStruct
and other such messages, and Gambit crashes after trying to mesh (for example:
volume mesh volume.1 tetrahedral
)
then, install some packages: (Ubuntu, insert these lines in console - bash)

sudo apt-get install xfonts-75dpi
sudo apt-get install xfonts-100dpi

sudo apt-get install mesa-utils
sudo apt-get install libxtst-dev

Then edit xorg.conf;
sudo nano /etc/X11/xorg.conf

insert these strings:

Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
EndSection

press Ctrl-O to save, ENTER. Then Ctrl-X to quit "nano" text editor.

At last, execute this line:
sudo dpkg-reconfigure -phigh xserver-xorg
and restart your computer. (you can restart only xserver if you don't want to restart your computer)

Now, I think only packages xfonts-75dpi xfonts-100dpi are necessary, other packages can be installed optionally. You can check it ;)

NOTE: I've started Gambit with X11 display driver!!!
gambit -dev X11

saimachensi April 18, 2012 02:18

it solve my problem.
 
I have the same error message but with different problem. My gambit crashes whenever I try to import some geomery files. I do what
villager says, my problem solved. Thanks.

hfla October 27, 2013 21:28

the same problem
 
Hello, I have the same problem for gambit on ubuntu 13.10.
"locale not supported by C library, locale unchanged".
Gambit crashes when I split an edge and in general continuslly. Have somebody fix the problem?
Thanks Flavio

villager October 28, 2013 10:17

answer
 
Quote:

Originally Posted by hfla (Post 459309)
Hello, I have the same problem for gambit on ubuntu 13.10.
"locale not supported by C library, locale unchanged".
Gambit crashes when I split an edge and in general continuslly. Have somebody fix the problem?
Thanks Flavio

Flavio, have you read these two posts and carefully done all instructions?

http://www.cfd-online.com/Forums/ans...tml#post346899

http://www.cfd-online.com/Forums/ans...tml#post415970

If so, let me know of any issue.

hfla October 28, 2013 11:55

It seems works well
 
Thanks a lot for the answer, I applied the fixes you say in this thread. Also I applied what you say in "Gambit works on Windows, but not in Linux", with the creation of a .C file. It seems work well, I created a grid without a crash :), but the error on startup is the same:
Code:

warning: locale not supported by C library, locale unchanged
.
There is a think I don't understand, I compiled the file memcpy_preload.c on my Deskotp, and I created the .so file there. Is there a specific location for .so file? Now everytime I'm going to start gambit I must digit
Code:

LD_PRELOAD=......../memcpy_preload.so ......../gambit -dev X11
?
or I can start gambit from every folder i like with
Code:

gambit -dev X11
?

Thanks for your patience

villager October 28, 2013 14:32

1)
Quote:

Originally Posted by hfla (Post 459437)
... but the error on startup is the same:
Code:

warning: locale not supported by C library, locale unchanged
.

That's not error, just warning :) I usually ignore this.

2) make a file:
Code:

:~$ sudo gedit /usr/bin/gambit
Content:
Code:

#!/bin/sh
LD_PRELOAD=***FULL PATH TO memcpy-preload.so*** ***FULL PATH TO GAMBIT*** -dev X11

Code:

:~$ sudo chmod +x /usr/bin/gambit
Exclude path to gambit_dir/bin/gambit from your system PATH variable (if you did it to run gambit from every folder you like). Restart terminal.

You should get this output:
Code:

:~$ which gambit
/usr/bin/gambit

Then, you start gambit like this:
Code:

:~$ gambit
:)

P.S. "-dev OpenGL" works fine for me too.
Maybe, you need mesa, to run like that.
For Debian-like linux distros:
Code:

:~$ sudo apt-get install mesa-common-dev mesa-utils libglu1-mesa-dev

hfla October 28, 2013 18:44

gambit start
 
Hello, I followed your instructions, but I'm sure that I made a mistake. I create the file with:
Code:

sudo gedit /usr/bin/gambit
I write in gedit:
Code:

#!/bin/sh
LD_PRELOAD=~/Desktop/memcpy-preload.so ~/Fluent.Inc/bin/gambit -dev X11

Now I save and close the gedit file. So I turn back to the terminal for writing:
Code:

sudo chmod +x /usr/bin/gambit
.I don't get any output of errors or warning, but when I close the terminal and reopen I don't get the messagge;
Code:

which gambit
I think that could been importat to know that when I installed FLuent and gambit, for starting from any folder I like, I wrote the bashrc in my home folder:
Code:

gedit ~/.bashrc
by editing in the end of the file the string:
Code:

PATH=~/Fluent.Inc/bin:$PATH ; export PATH
so I saved and closed the gedit. On the terminal I inserted:
Code:

source ~/.bashrc
It could been this the problem?

Thanks a lot

hfla October 29, 2013 08:21

Solved
 
Thanks a lot Villager, I've changed the name of the gedit file into gambitst with:
Code:

sudo gedit /usr/bin/gambitst
So I followed your instruction, and now everything works fine. Thanks a lot :D
I've the last question, when I start Gambit I receve that message:
Code:

Warning: locale not supported by C library, locale unchanged
        Using X_DEVICE_DRIVER with standard visual.
Total of 1.48 cpu second(s), 623456 maximum memory.

what the means of "Using X_DEVICE_DRIVER with standard visual, and Total of 1.48 cpu second(s), 623456 maximum memory"?

Thank you

fivos December 4, 2013 04:47

Villager thank you a lot for your detailed instructions and efforts. Gambit works!!!

gindar March 18, 2014 09:31

Quote:

Originally Posted by villager (Post 459414)
Flavio, have you read these two posts and carefully done all instructions?

http://www.cfd-online.com/Forums/ans...tml#post346899

http://www.cfd-online.com/Forums/ans...tml#post415970

If so, let me know of any issue.

It works. My OS is ubuntu 13.10.
Thanks a lot!


All times are GMT -4. The time now is 23:50.