Atom topic feed | site map | contact | login | Protection des données personnelles | Powered by FluxBB | réalisation artaban
You are not logged in.
Pages: 1
Hello,
I just installed CA_11.0.10-2 in an Ubuntu Natty 11.04 (64bit) clean install PC. Compilation of CA went smoothly and "/opt/aster/ASTK/ASTK_SERV/bin/as_run forma01a.export" works OK.
But when I launched "/opt/aster/bin/astk" I got:
<INFO> Optional module not found : tkpng
searched in /opt/aster/lib/astk/not_defined
<INFO> ASTK version 1.10.0
Error in startup script: invalid command name "lset"
while executing
"lset astk::ihm(l_opt) [expr $i * 3 + 2] $new"
(procedure "update_opt" line 20)
invoked from within
"update_opt classe {} "REINIT""
(procedure "check_config" line 3)
invoked from within
"check_config"
(procedure "init_env" line 24)
invoked from within
"init_env $splash"
(file "/opt/aster/lib/astk/astk.tcl" line 87)
[1]+ Done /opt/aster/bin/astk
for the first time along with a splash screen about domain name not being defined (which has always been the case, but astk worked anyway) and thereafter on subsequent launch attempts I get:
<INFO> Optional module not found : tkpng
searched in /opt/aster/lib/astk/not_defined
and NOTHING happens. I am back at a terminal prompt.
BTW: After the first attempt at launching astk I installed the "tkpng" package although it was optional. Would anybody kindly suggest a fix? Thanks
Regards, JMB
Last edited by JMB365 (2011-10-12 15:48:22)
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
BTW: After the first attempt at launching astk I installed the "tkpng" package although it was optional. Would anybody kindly suggest a fix? Thanks
Regards, JMB
Did you check permissions of /tmp/astk_username directory? In my experience, it is created with root.root permissions at first installation of CA, that prevent the current user to write into it.
Try to chwon -R youruser.yourgroup /tmp/astk_yourusername
P.S. I found the source of the error in the flasheur directory, may be you can find some other useful infos if this not your problem.
Last edited by cacciatorino (2011-09-27 16:56:24)
Offline
hello
"Optional module not found : tkpng"
i had it too on a recent install with SuSE 11.4
it was a "tk" library missing, not installed by default by SuSE
unfortunatly i do not remenber which one
may be you could install all of them
however for launching i do /opt/aster/bin/astk and not /opt/aster/lib/astk
jean pierre aubry
Last edited by jeanpierreaubry (2011-09-27 16:16:19)
consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/
Offline
"Optional module not found : tkpng"
is not an error, just a warning. You can run astk without this librayr (just for beautiful icons).
Code_Asterの開発者
Offline
Hello cacciatorino/jeanpierreaubry/TdS,
Thank you all for your suggestions. My findings:
A. Removing /tmp/astk-user & /tmp/root did not fix the problem.
B. 'sudo aptitude search Tk' shows tk8.5 & tk8.5-dev are both installed. Could it be a version too high for CodeAster?
C. I made a typographical error in my posting. I do use '/opt/aster/bin/astk' NOT '/opt/aster/lib/astk'
D. I realize that "tkpng" is entirely optional and was curious to see what it did. The prettiness can wait...
Any other ideas?
Regards, JMB
Last edited by JMB365 (2011-09-27 17:47:56)
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Hi,
Tcl seems OK in your case : I also use tcl-tk 8.5. However maybe you can try to move back to tcl-tk 8.4. To do that just use the "galternatives" application to change the main version (or uninstall tcl-tk 8.5 and install 8.4).
desoza@claut621:~$ dpkg -l tcl*
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Description
+++-==================-==================-====================================================
ii tcl 8.4.16-2 The Tool Command Language (default version) - run-ti
un tcl74 <néant> (aucune description n'est disponible)
ii tcl8.3 8.3.5-14 Tcl (the Tool Command Language) v8.3 - run-time file
ii tcl8.4 8.4.19-4 Tcl (the Tool Command Language) v8.4 - run-time file
ii tcl8.5 8.5.8-2 Tcl (the Tool Command Language) v8.5 - run-time file
un tclreadline <néant> (aucune description n'est disponible)
un tclsh <néant> (aucune description n'est disponible)
desoza@claut621:~$ ls -l /etc/alternatives/wish
lrwxrwxrwx 1 root root 16 2011-07-27 09:23 /etc/alternatives/wish -> /usr/bin/wish8.5
Maybe you can also try to upgrade ASTK to 1.10.2 : as_run --astk_update --nolocal
TdS
Offline
Hello TdS,
I ran the update: "as_run --astk_update --nolocal"
OK astk/asrun update ended successfully from 1.8.3 to 1.10.2.final
---------------------------------------------------------------------------------
cpu system cpu+sys elapsed
---------------------------------------------------------------------------------
Download archives 0.02 0.01 0.03 13.73
Installation 0.41 0.05 0.46 0.51
---------------------------------------------------------------------------------
Total 0.44 0.07 0.51 14.26
---------------------------------------------------------------------------------
as_run 1.8.3
------------------------------------------------------------
--- DIAGNOSTIC JOB : OK
------------------------------------------------------------
But it does not fix the problem. I have loaded galternatives and when I run it I see tclsh (versions 8.4, 8.5, 8.3) but Tk is not listed at all, even though I have:
sudo aptitude search tcl8 | grep "i "
i A tcl8.3 - Tcl (the Tool Command Language) v8.3 - run
i tcl8.4 - Tcl (the Tool Command Language) v8.4 - run
i A tcl8.5 - Tcl (the Tool Command Language) v8.5 - run
i A tcl8.5-dev - Tcl (the Tool Command Language) v8.5 - dev
and
sudo aptitude search tk8 | grep "i "
i A tk8.3 - Tk toolkit for Tcl and X11, v8.3 - run-tim
i A tk8.5 - Tk toolkit for Tcl and X11, v8.5 - run-tim
i A tk8.5-dev - Tk toolkit for Tcl and X11, v8.5 - develop
Maybe I should try each of the following:
a) installing Tk8.4 & Tk8.4-dev
b) removing Tk8.5 & Tk8.5-dev
c) removing Tk8.3
Will let you know what happens...
Although I realize that the mal-function of galternatives is not your area of responsibility, do have any clue why it does not list any tk alternatives?
In the meantime, if you come up with any other ideas to fix my problem, I am willing to try them. Thanks for your help and suggestions.
Regards, JMB
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Hi,
Forgot to mention that in galternatives, the two things to change are :
- tclsh
- wish (maybe not I don't remember and I'm not in front of my Linux box)
TdS
Offline
Error in startup script: invalid command name "lset"
lset exists in tcl 8.4 or 8.5... see www.tcl.tk !
Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers
Please do not forget to tag your first post as *SOLVED* when it is!
Offline
Error in startup script: invalid command name "lset"
lset exists in tcl 8.4 or 8.5... see www.tcl.tk !
Hello courtois,
I am not going to debate if "lset" exists in tcl 8.4 or 8.5. Here is what I found. After I remove the "tkpng" package at least I get something:
1. The "splash" screen and
2. A bunch of errors I posted earlier (about "lset" not being found etc.)
With tkpng installed ASTK does nothing. I am just ignominiously dumped back to a shell prompt.
Now there is a problem in Ubuntu 11.04 Natty (64bit)... Any suggestions for how I can debug it? I have even tried re-installing CodeAster, to no avail. Thanks!
Regards, JMB
PS: Maybe the EXIT_CODE=32512 gives clue?
<INFO> Optional module not found : tkpng
searched in /opt/aster/lib/astk/not_defined
<INFO> ASTK version 1.10.0
<ERROR 003> as_info : Exit code = 32512
EXIT_CODE=32512
====== end of message ======
<INFO> Ready
<INFO> Previous configuration file saved as config_serveurs.old
Error in startup script: invalid command name "lset"
while executing
"lset astk::ihm(l_opt) [expr $i * 3 + 2] $new"
(procedure "update_opt" line 20)
invoked from within
"update_opt classe {} "REINIT""
(procedure "check_config" line 3)
invoked from within
"check_config"
(procedure "init_env" line 24)
invoked from within
"init_env $splash"
Last edited by JMB365 (2011-09-29 02:12:07)
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Hello,
I think I found the fix for the EXIT_CODE=32512. I created a link to /opt/aster/bin/as_run in /usr/bin/as_run. I think the ASTK package that comes in the Ubuntu repos is causing some kind of a problem, even after I have completely removed it.
As yet I am not able to launch ASTK. I see the warning message about domain name being undefined (quite normal), then the windows that allows one to define a job and also the window that displays the jobs. Then they all disappear and the errors I posted earlier are shown in the terminal.
Regards, JMB
Last edited by JMB365 (2011-09-29 02:37:46)
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Hello all,
As an update, I have not been able to solve this problem. So I decided to install CodeAster Ver11.0 on a fresh install of Ubuntu 11.04 (64bit) Natty and now ASTK does launch. Perhaps installing the pre-made packages in the repos was causing problems.
So I do NOT recommend installing any of the pre-packaged software from Ubuntu repositories as far as CodeAster is concerned.
Regards, JMB
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Hi,
Thanks for the information. Have you tried purging the astk package ? That is running something like "sudo apt-get purge codeaster-gui" or in Synaptics selecting "Complete removal" ?
TdS
Offline
hello
So I do NOT recommend installing any of the pre-packaged software from Ubuntu repositories as far as CodeAster is concerned.
do you mean that there are Code_Aster versions available from the ubuntu repositories?
as the SuSE user i was not aware about that
jean pierre aubry
consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/
Offline
Hi,Thanks for the information. Have you tried purging the astk package ? That is running something like "sudo apt-get purge codeaster-gui" or in Synaptics selecting "Complete removal" ?
TdS
=> TdS,
I had tried many avenues, including "sudo aptitude remove ..." or the Synaptics "complete removal" I do not remember exactly which way I used for removal, but nothing had helped solve the problem, so regretfully, I have to offer the caveat I stated earlier.
=> jeanpierreaubry,
Yes the ASTK launcher and Eficas packages are available in the newer "Natty" 11.04 repositories, but they are older versions (I do not exactly remember which versions, and I have wiped clean the HD that I installed them in), but I do NOT recommend installing them as they apparently interfere with the launch of newer version of ASTK that comes with CA_11+.
Regards, JMB
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Yes the ASTK launcher and Eficas packages are available in the newer "Natty" 11.04 repositories, but they are older versions (I do not exactly remember which versions, and I have wiped clean the HD that I installed them in), but I do NOT recommend installing them as they apparently interfere with the launch of newer version of ASTK that comes with CA_11+.
wouldnt this explain many of the complains one can read on this forums regarding ubuntu issue???
consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/
Offline
wouldnt this explain many of the complains one can read on this forums regarding ubuntu issue???
I think the problem is limited to having installed ASTK & Eficas from the Ubuntu repositories, not necessarily in the broader sense of using Ubuntu itself. I am not sure it that was the implication of your posting. However I do not want to start (or get into) a comparison/critique of Linux flavours.
Regards, JMB
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
I am not sure it that was the implication of your posting.
it was not,
i was just wondering why there was so many posts about that, maybe it just reflects today's "market shares" of ubuntu
However I do not want to start (or get into) a comparison/critique of Linux flavours.
neither do i,
i sometimes get very angry about SuSE but i have been living with it for almost 15 years
i wonder wether it is wise idea to package such a high end sofware as Code_Aster in a general distribution
people who want to use Code_Aster must have to go the site and download it on their own, i think!
consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/
Offline
i wonder whether it is wise idea to package such a high end software as Code_Aster in a general distribution people who want to use Code_Aster must have to go the site and download it on their own, i think!
Hello jeanpierreaubry,
I think there is a "chicken-or-the-egg" quandary to the question. Software improves in quality if it is easy to install or already installed, which promotes its usage. On the other hand unless one knows what one is doing high end software can give totally misleading results fast too. I think one should strive to pre-package it. The CAELINUX series is an excellent example of such an endeavour and I admire Joel Cugnoni for valiantly packaging all that software, such that so much of it worked out of the box. I think the CodeAster - Salome community needs to strive for that as well, because the greater the number of users, the more bug free it can become and the wider its appeal. Where is the revenue stream from doing so? That is another question altogether!
BTW, I commend your using Linux (SUSE) for 15 years! That tells me you lived through some painful years of drivers not being available. GUI not being so slick, etc.! Having experimented with minix and Linux in the 90's I gave up on Linux as too 'geeky' for any practical use other than as a learning tool and for finessing my unix skills. Only picked it up again about 7/8 years ago.
Regards, JMB
SalomeMeca 2021
Ubuntu 20.04, 22.04
Offline
Pages: 1