Problem with the source command

Hello,
to install the freesurfer software I need to execute the two commands:
setenv FREESURFER_HOME usr/local/freesurfer
source $FREESURFER_HOME/SetUpFreeSurfer.csh
but I get an error message for the second one telling me that the file SetUpFreeSurfer.csh does not exist even though it is in freesurfer.
Thank you for sending me your responses.

<config>Linux Firefox 3.6.10</config>

26 answers

  1. Good evening,
    thank you very much for your help, you were right, I installed Ubuntu 64 bit and I successfully installed FreeSurfer.
    1. Contributor
      64-bit executables on a 32-bit system won't work.
      You need to download the 32-bit version.
      1. root@nas:~# uname -a
        Linux nas2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux
        root@nas:~# getconf LONG_BIT
        32

        1. /usr/local/freesurfer/bin/qdec.bin: exécutable ELF 64 bits LSB, x86-64, version 1 (GNU/Linux), statiquement lié, épuré

          :~# ls -l /usr/local/freesurfer/bin/qdec.bin
          -rwxr-xr-x 1 root root 3834580 2011-05-22 15:59 /usr/local/freesurfer/bin/qdec.bin
          1. Contributor
            `file /usr/local/freesurfer/bin/qdec.bin` returns information about the file type of `qdec.bin`, and `ls -l /usr/local/freesurfer/bin/qdec.bin` provides detailed information including permissions, number of links, owner, group, size, and last modified date.
            1. Thank you, it worked, but I have another issue if you can help me because I now need to execute the command qdec
              it shows me this error:
              /usr/local/freesurfer/bin/qdec.bin: Format error for exec(). Binary file not executable.
              1. Contributor
                and in bash?
                bash export FREESURFER_HOME=/usr/local/freesurfer source $FREESURFER_HOME//SetUpFreeSurfer.sh 
                1. Hello,

                  the command limit descriptors 2048 worked, but when executing the command: source $FREESURFER_HOME/SetUpFreeSurfer.csh I still get the same error too many open files.
                  1. :/root> descriptors 1024
                    descriptors: Command not found.
                    nassima:/root> limit descriptors
                    descriptors 1024
                    :/root> limit descriptors 2048
                    limit: descriptors: Can't set limit (Operation not permitted)
                    1. Contributor
                      ~/tmp/a# limit descriptors descriptors 1024 ~/tmp/a# limit descriptors 2048 ~/tmp/a# limit descriptors descriptors 2048 ~/tmp/a# 
                      1. the response: limit: descriptors: Can't set limit (Operation not permitted)
                        1. When I run the limit command as root, it gives this:
                          /root> limit
                          cputime unlimited
                          filesize unlimited
                          datasize unlimited
                          stacksize 8192 kbytes
                          coredumpsize 0 kbytes
                          memoryuse unlimited
                          vmemoryuse unlimited
                          descriptors 1024
                          memorylocked 64 kbytes
                          maxproc unlimited

                          And when I execute the command: limit openfiles 2048
                          the result: no such limit.
                          1. % limit
                            cputime illimité
                            filesize illimité
                            datasize illimité
                            stacksize 8192 ko
                            coredumpsize 0 ko
                            memoryuse illimité
                            memorylocked 64 ko
                            maxproc illimité
                            openfiles 1024
                            • 1
                            • 2