Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

OpenModelica compilation on ALT Linux

OpenModelica compilation on ALT Linux

Hi,

I try to compile from git OpenModelica (minimal and full).
I clone OpenModelica from git according git instructions:

Code:

[vserge@comp OpenModelica-minimal]$ git clone https://openmodelica.org/git-readonly/OpenModelica.git OpenModelica-minimal

[vserge@comp OpenModelica-minimal]$  cd OpenModelica-minimal/
[vserge@comp OpenModelica-minimal]$ git submodule update --init --recursive libraries testsuite OMCompiler common

and after that I try to compile, but get configure error:

Code:


[vserge@comp OpenModelica-minimal]$ autoconf
[vserge@comp OpenModelica-minimal]$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
configure: OpenModelica pre-commit hook has been installed
ln: failed to create symbolic link '.git/hooks/pre-commit': File exists
configure: OpenModelica commit-msg hook has been installed
configure: error: cannot run /bin/sh ./config.sub

I try to run command: "/bin/sh ./config.sub" and it's working.

What I do wrong?

Re: OpenModelica compilation on ALT Linux

I don't know the answer to that. For a minimal setup of OpenModelica  you can do something like

Code:


git clone --depth=1 https://github.com/OpenModelica/OMCompiler.git OMC
git clone --depth=1 https://github.com/OpenModelica/OpenModelica-common.git OMC/common
git clone --depth=1 https://github.com/OpenModelica/OMCompiler-3rdParty.git OMC/3rdParty
git clone --depth=1 https://github.com/OpenModelica/OMShell.git OMShell
git clone --depth=1 https://github.com/OpenModelica/OpenModelica-common.git OMShell/common

and then in  OMC and OMShell

Code:


autoconf
./configure
make
sudo make install

You might need to set LD_LIBRARY_PATH.

Re: OpenModelica compilation on ALT Linux

Hi, Tian

Thank you for your  advice.
I try it and got the same errors.
After that I start to find solutions, because on my linux desktop configure script working but on server didn't.

ALT Linux development team implement security enhancement for run /bin/sh from unprivileged users.
Description a security problem "Why not just use /bin/sh ?"

This problem can be solved by adding unprivileged user to group "wheel".

There are 0 guests and 0 other users also viewing this topic
You are here: