[mesa-users] MESA installation
Robert Farmer
rjfarmer at asu.edu
Fri Jul 29 13:17:27 EDT 2016
Hi
Please keep replies on the mesa-users list.
You don't source ./install script, you need to source ~/.bashrc (but only
if you haven't close and reopened the terminal since you last edited the
~/.bashrc file)
>bash: /home/nwinsor/MESA/mesasdk/bin/mesasdk_init.csh: line 25: syntax
error: unexpected end of file
You are using bash you so don't want to source the csh version but instead
the sh version:
source $MESASDK_ROOT/bin/mesasdk_init.sh
When you are running the ./install script you can run:
./install | tee build.log
So the output is sent to your screen and to a file "build.log"
Rob
On Fri, Jul 29, 2016 at 8:22 AM, Winsor, Nathan W. <nwwinsor at grenfell.mun.ca
> wrote:
> Hi again,
>
>
> So I moved the path variables to ~./profile, went to the ~/mesa directory,
> executed the ./clean and then the source ./install. This shows a bunch of
> code then force closes my terminal before I can read it. So I instead tried
> ./clean then ./install, which gave me the same errors as before. But now
> the echo $MESADK_ROOT gives me the correct path.
>
>
> So I tried ~/.bashrc instead (~./bash_profile is empty) and gives the same
> results. Except now it gives me this warning when I open a new terminal:
>
>
> bash: /home/nwinsor/MESA/mesasdk/bin/mesasdk_init.csh: line 25: syntax
> error: unexpected end of file
>
>
> This error also popped up when I had restarted my computer when the path
> variables were in the ~./profile file.
>
>
> How do I resolve this?
>
>
> Regards,
>
> Nathan
> ------------------------------
> *From:* Robert Farmer <rjfarmer at asu.edu>
> *Sent:* July 27, 2016 8:39:24 PM
> *To:* Winsor, Nathan W.
> *Cc:* mesa-users at lists.sourceforge.net
> *Subject:* Re: [mesa-users] MESA installation
>
> Hi
>
> >COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
>
> So the problem is your not using the sdk compiler. Your path variables
> you probably don't want it in /etc/profile instead try them in ~/.profile
> (or ~/.bash_profile or ~/.bashrc i never remember which) but make sure you
> source the file afterwards before trying to compile mesa, as it looks like
> it hasn't read the variables (that is why echo $MESASDK_ROOT is empty). And
> also do a ./clean before trying again to remove old compilation files.
>
> Rob
>
> On Wed, Jul 27, 2016 at 2:08 PM, Winsor, Nathan W. <
> nwwinsor at grenfell.mun.ca> wrote:
>
>> Hi,
>>
>>
>> I'm having some problems installing MESA, can you help me with this?
>>
>>
>> I downloaded and unzipped the MESA SDK Jan. 29,2016 version.
>>
>>
>> I then went into the shell start up file (sudo emacs /etc/profile) and
>> added these lines to the end:
>>
>>
>> export MESA_DIR='/home/nwinsor/MESA/mesasdk/mesa'
>> export OMP_NUM_THREADS=4
>> export MESASDK_ROOT='/home/nwinsor/MESA/mesasdk'
>> source $MESASDK_ROOT/bin/mesasdk_init.csh
>>
>> Then I ran:
>>
>>
>> svn co -r 8845 svn://svn.code.sf.net/p/mesa/code/trunk mesa
>>
>>
>> and moved that directory to a better place (
>> /home/nwinsor/MESA/mesasdk/mesa).
>>
>>
>> When I go to that directory in terminal, and enter ./install, this is the
>> error I get:
>>
>>
>> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
>>
>> /home/nwinsor/MESA/mesasdk/mesa/const
>> building const package.
>>
>> gfortran -fopenmp -o ../tester test_const.o -L../../make -lconst
>> export
>> done
>>
>> mesa/const has been built, tested, and exported.
>>
>> ************************************************
>>
>> /home/nwinsor/MESA/mesasdk/mesa/utils
>> building utils package.
>>
>> gfortran -fno-range-check -fmax-errors=7 -fprotect-parens -fno-sign-zero
>> -fbacktrace -ggdb -finit-real=snan -fopenmp -I../public -I../private
>> -I../../include -Wunused-value -Werror -W -Wno-compare-reals
>> -Wno-unused-parameter -fimplicit-none -O2 -c -ffree-form -x f95-cpp-input
>> ../private/utils_nan_qp.f90
>> ../private/utils_nan_qp.f90:584.27:
>>
>> call C_F_POINTER(C_LOC(x), ix, [2,SHAPE(x)])
>> 1
>> Error: Assumed-shape array 'x' at (1) cannot be an argument to the
>> procedure 'c_loc' because it is not C interoperable
>> ../private/utils_nan_qp.f90:552.27:
>>
>> call C_F_POINTER(C_LOC(x), ix, [2,SHAPE(x)])
>> 1
>> Error: Assumed-shape array 'x' at (1) cannot be an argument to the
>> procedure 'c_loc' because it is not C interoperable
>> ../private/utils_nan_qp.f90:520.27:
>>
>> call C_F_POINTER(C_LOC(x), ix, [1,SHAPE(x)])
>> 1
>> Error: Assumed-shape array 'x' at (1) cannot be an argument to the
>> procedure 'c_loc' because it is not C interoperable
>> ../private/utils_nan_qp.f90:488.27:
>>
>> call C_F_POINTER(C_LOC(x), ix, [2,SHAPE(x)])
>> 1
>> Error: Assumed-shape array 'x' at (1) cannot be an argument to the
>> procedure 'c_loc' because it is not C interoperable
>> make: *** [utils_nan_qp.o] Error 1
>>
>> /home/nwinsor/MESA/mesasdk/mesa/utils/make
>> FAILED
>>
>>
>> /home/nwinsor/MESA/mesasdk/mesa/utils
>> ./build_and_test FAILED
>>
>>
>> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
>> I have tried to trouble shoot this, and I think it has something to do
>> with my gfortran? No luck changing the shell start up file in various ways.
>>
>> I'm running Ubuntu 14.04, and when I enter echo $MESASDK_ROOT it
>> gives me a blank.
>>
>> Also:
>> nwinsor at Nathan-HP:~/MESA/mesasdk/mesa$ uname -a
>> Linux Nathan-HP 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:42:26 UTC
>> 2016 x86_64 x86_64 x86_64 GNU/Linux
>>
>> and:
>> nwinsor at Nathan-HP:~/MESA/mesasdk/mesa$ gfortran -v
>> Using built-in specs.
>> COLLECT_GCC=gfortran
>> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
>> Target: x86_64-linux-gnu
>> Configured with: ../src/configure -v --with-pkgversion='Ubuntu
>> 4.8.4-2ubuntu1~14.04.3'
>> --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
>> --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
>> --program-suffix=-4.8 --enable-shared --enable-linker-build-id
>> --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
>> --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls
>> --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
>> --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap
>> --enable-plugin --with-system-zlib --disable-browser-plugin
>> --enable-java-awt=gtk --enable-gtk-cairo
>> --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre
>> --enable-java-home
>> --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64
>> --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64
>> --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
>> --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
>> --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic
>> --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
>> --target=x86_64-linux-gnu
>> Thread model: posix
>> gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
>>
>>
>>
>>
>> Thanks in advanced for any help you can provide!
>>
>> Regards,
>> Nathan
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20160729/60f7ff0e/attachment.html>
More information about the Mesa-users
mailing list