Personal tools
You are here: Home Forum Install & build Install on Debian testing (etch)

Install on Debian testing (etch)

Up to Install & build
  • Install on Debian testing (etch)

    Posted by Gianluca Meneghello at September 20. 2006
    Hi!
    I'm a linux and Salome newby, but I'd like to use both for the developement of my engineer thesis.
    I tried to install Salome on Debian Testing (etch) from the salome3_2_1_DS.tar.gz.
    after unpacking in, I run

        python runInstall -b -d /usr/local/salome -f config_Debian_3.1.xml

    no errors seems to be reported during the installation process (the gui installation seems to be ok too).
    as in the instruction, I then run

        source salome.sh

    from /usr/local/salome/KERNEL_3.2.1/
    the terminal reports the following

        awk: program limits exceeded: sprintf buffer size=1020
                                      FILENAME="-" FNR=1 NR=1
        awk: program limits exceeded: sprintf buffer size=1020
                                      FILENAME="-" FNR=1 NR=1
        -bash printenv: No such file or directory
        -bash awk: No such file or directory

    12 of the last two line are printed

    trying to run salome with

        ./runSalome

    from
    /usr/local/salome/KERNEL_3.2.1/bin/salome/
    the following is reported

        Searching for a free port for naming service: 2810 - Ok
        Traceback (most recent call last):
           File "", line 1 in ?
        ImportError: No module named CORBA
        python: can't open file '/bin/salome/runSalome.py': [Errno 2] No such file or directory

    I tryed to solve the last line creating a link in the bin directory (don't know if it may be the right thing yo do)

        debian:/bin# ln -s  /usr/local/salome/KERNEL_3.2.1/bin/salome

    restarting salome

        ./runSalome

    the output is

        Searching for a free port for naming service: 2810 - Ok
        Traceback (most recent call last):
           File "", line 1 in ?
        ImportError: No module named CORBA
        Traceback (most recent call last):
           File "/bin/salome/runSalome.py", line 23, in?
              import orbmodule
           File "/usr/local/salome/KERNEL_3.2.1/bin/salome/orbmodule.py", line 21, in ?
              from omniORB import CORBA
        ImportError: No module named omniORB

    Now I don't know want to do more!!! :-p
    the same output is reported installing on Debian Sarge.

    thanks...

    Gianluca

    • Re: Install on Debian testing (etch)

      Posted by Vadim SANDLER at September 20. 2006
      Hello Gianluca,

      Try to follow the advise given on the page by this link:
      http://www.salome-platform.org/forum/forum_9/thread_393

      Regards,
      Vadim.
      • Re: Install on Debian testing (etch)

        Posted by Vadim SANDLER at September 20. 2006
        Sorry but the link in previous post is generated incorrectly by the forum engine.
        Please use link text to follow to the page instead of link itself.

        Regards,
        Vadim.
      • Re: Install on Debian testing (etch)

        Posted by Gianluca Meneghello at September 20. 2006
        Hi Vadim

        many thanks for your answer... I did it already, but the output of salome.sh is:

            bash: salome.sh: line 22: syntax error near unexpected token '('
            bash salome.sh: line 22: '      na = split(%2,a,":";);             \'

        one modified, my salome.sh file turns out to be (i attach just the first lines):


        -----------------------------------------------
        cleandup() {
        out_var='echo $1 $2 |  awk -W sprintf=3060 -v dir=$3 '{  \
           na = split($2,a,":";);                                    \
            if ( $1 == "";) nb = split("",b,":";);          \
            else nb = split($1,b,":";);                           \
            s = "" ;                                             \

        --------------------------------------------
        NB: line 22 is the 3rd line of these

        the only difference with the instruction given at your link, is that I used Salome 3.2.1 instead of 2.2.8 and I used the Debian configuration file instead of the red hat one.
        I haven't got the redhat one!
        maybe this can be the problem?

        many thanks

        gianluca
        • Re: Install on Debian testing (etch)

          Posted by Gianluca Meneghello at September 20. 2006
          I've tried to install salome 2.2.8 with the instruction in the post... the problem is the same.

              ./salome.sh: line 20: sintax error near unexpected token '('
              ./salome.sh: line 20: '    na = split($2,a,":";);            \'


          • Re: Install on Debian testing (etch)

            Posted by Vadim SANDLER at September 20. 2006
            Dear Gianluca,

            Could you please provide the version of awk utility at your PC:
            >> awk -W version

            Thanks in advance,
            Vadim.
            • Re: Install on Debian testing (etch)

              Posted by Gianluca Meneghello at September 20. 2006
              Hi vadim

              it works! 2 minutes ago!

              substituting this line
                  out_var='echo $1 $2 |  awk -W sprintf=5060 -v dir=$3 '{       \

              instead the one in the previous post
                  out_var='echo $1 $2 |  awk -W sprintf=3060 -v dir=$3 '{       \

              (something to do with memory size?)

                  source salome.sh

              gives no errors.
              I'm not sure, but I also think it is to be installed by the gui and not in batch mode... can it make some difference?

              I find the new line to copy at this post

              http://www.salome-platform.org/forum/forum_10/thread_449

              I also run the salome test and seems to be ok... no red caracters at least!

              how can we inform the developer to modify that (if it's correct to!)?

              Once more thanks... now I have to test out Salome and install OpenFOAM.. any hint about it?

              gianluca

              ps: I do think this is my first program I manage to install in only one day... besides the debian packaged ones! :)
              • Re: Install on Debian testing (etch)

                Posted by Vadim SANDLER at September 20. 2006
                Hello again,

                >> substituting this line
                >>     out_var='echo $1 $2 |  awk -W sprintf=5060 -v dir=$3 '{       \
                >>
                >> instead the one in the previous post
                >>     out_var='echo $1 $2 |  awk -W sprintf=3060 -v dir=$3 '{       \
                >>
                >> (something to do with memory size?)
                >>
                >>    source salome.sh
                >>
                >> gives no errors.

                The problem that awk utility has limited buffer size for sprintf function. On Debian there is also mawk (which is used on your PC as substitution of GNU awk) which allows to change buffer size for the sprintf function as it is done by the fix above.

                >> I'm not sure, but I also think it is to be installed by the gui and not in batch mode... can it make some difference?

                No, in GUI installation mode the same environment scripts are generated, so the behaviour will be the same :)

                >> how can we inform the developer to modify that (if it's correct to!)?

                I'm the SALOME platform developer and I am already informed :) Thanks!
                The bug will be fixed in the future SALOME releases.

                Regards,
                Vadim.
                • Re: Install on Debian testing (etch)

                  Posted by Gianluca Meneghello at September 20. 2006
                  Wow! talking to really important people then!

                  ok, then another question for you:
                  1) I start salome
                  2) I shut it down
                  3) If I start it again from the same console I started it before it works
                      If I close the console and start again salome, it does not... I have to "source salome.sh" again, and then it starts.

                  what's about?

                  gianluca

                  ps: I installed on debian testing, not sarge, at the end
                  • Re: Install on Debian testing (etch)

                    Posted by Sergey Mozokhin at September 20. 2006

                    Hello,

                    It's really so - you must "source" environment script in each new console, because it sets all path where 3-thd party products are.

                    It is a Linux ...

                    Cheers,

                    Sergey.

                    • Re: Install on Debian testing (etch)

                      Posted by Gianluca Meneghello at September 20. 2006
                      thanks for the information... I'll do that!

                      I'm crowling around in the program... looks really nice!



                    • Re: Install on Debian testing (etch)

                      Posted by Yann Basly at November 18. 2006
                      Hi everyone,
                      My distrib is a debian etch and I can't set my environment variables. I had non error during the install (I presume).
                      When I tried source salome.sh I got the errors about awk and printenv, so I changed it as in the previous post.
                      But I still get the same error like some of you, but I don't know why :

                      cosmo@Etch:/usr/local/salome/KERNEL_3.2.2$ source salome.sh
                      bash: salome.sh: line 21: syntax error near unexpected token `('
                      bash: salome.sh: line 21: `    na = split($2,a,":";);     \'

                      I changed the value of the buffer (with (m)awk -W sprintf=NUM) from 1020 to 5060 without any result.

                      and that's why I get when I type :

                      cosmo@Etch:~$ mawk -W version
                      mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
                      compiled limits:
                      max NF             32767
                      sprintf buffer      1020

                      I hope this will help because I very like my debian :) , and I don't want to install CAElinux...
                      • Re: Install on Debian testing (etch)

                        Posted by Gianluca Meneghello at November 19. 2006
                        Hi Yann
                        Did you copy and paste the correction from the forum? The last time I spent a couple of days or so to get aware that the ' in the forum turns out to be different from what salome wants.
                        If so, try to use the original salome.sh file changing BY HAND just the values that has to be changed.

                        Next, if you are installing salome 2.2, you will get another error about a library or something like that. That is because the sarge release uses a different version of the library required. I actually don't remembre well, but I read somewhere in the forum you can make a symbolic link in the library folder having the name required by salome and pointing to the library that corrispond. The file searched and the file you have installed are different just in the version, that is included in the filename.

                        I don't know any more correct way to do it... if someone has a hint, it's welcome

                        Hope  all this to be helpful


                        Gianluca
                        • Re: Install on Debian testing (etch)

                          Posted by Gianluca Meneghello at November 19. 2006
                          This should be the post about the second error you may get

                          http://www.salome-platform.org/forum/forum_10/thread_499

                          • Re: Install on Debian testing (etch)

                            Posted by Yann Basly at November 20. 2006

                            Thanks very much for the tip, I'll try to change what needed only without copy/past the entire line (I'm at school now).

                            I'm trying to run the 3.2 version of salome.

                            • Re: Install on Debian testing (etch)

                              Posted by Yann Basly at November 22. 2006
                              Ok so here are the news about my problem !
                              I still can't set my environment variables...

                              I modified salome.sh by hand to avoid problems due to ' instead of ` etc, and I don't have this kind of error anymore :

                              cosmo@Etch:/usr/local/salome/KERNEL_3.2.2$ source salome.sh
                              bash: salome.sh: line 21: syntax error near unexpected token `('
                              bash: salome.sh: line 21: `    na = split($2,a,":";);     \'

                              But I still have this this one :

                              cosmo@Etch:/usr/local/salome/KERNEL_3.2.2$ source salome.sh
                              bash: printenv: Aucun fichier ou répertoire de ce type
                              bash: awk: Aucun fichier ou répertoire de ce type

                              whiche means it can't find this 2 programs. For sure, beacause my PATH is empty !
                              Before running the "source saloem.sh" :
                              cosmo@Etch:/usr/local/salome/KERNEL_3.2.2$ echo $PATH
                              /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

                              After
                              cosmo@Etch:/usr/local/salome/KERNEL_3.2.2$ echo $PATH


                              Some ideas ?
                              • Re: Install on Debian testing (etch)

                                Posted by Gianluca Meneghello at November 26. 2006
                                Sorry, don't know more... I'll maybe try to install it myself on Debian sid. If I'll find out something I'll tell you.
                                Anyway, le 3.2.1 should work.. I installed it once on etch (while it was testing) and, besides the first problem we had already solved, it had run.

                                Gianlu
                              • Re: Install on Debian testing (etch)

                                Posted by Gianluca Meneghello at November 26. 2006
                                Sorry, don't know more... I'll maybe try to install it myself on Debian sid. If I'll find out something I'll tell you.
                                Anyway, le 3.2.1 should work.. I installed it once on etch (while it was testing) and, besides the first problem we had already solved, it had run.

                                Gianlu
Powered by Ploneboard
Document Actions