[NSWI004] Problems with installing msim
Petr Tuma
petr.tuma at d3s.mff.cuni.cz
Sat Oct 17 13:03:32 CEST 2020
Hi,
do not try to edit the `configure` script, that is almost certainly a wrong thing to do.
Line 16 in the `configure` script is empty, and there are only comment lines preceding that. If your system reports a "not found" error with an empty filename, it could be that you have checked out the files with a Windows git client that replaces the Linux line endings (LF) with Windows line endings (CRLF), and your Linux subsystem is then confused. Obviously, I'm just guessing, this is what you could try though:
- Check out a fresh copy of the repository and use a hex file viewer to determine whether line endings in the script are just LF or CRLF.
- Just check out the repository inside the Linux subsystem using a Linux git client.
Petr
On 16/10/2020 21:30, Katarína Dančejová wrote:
> Hello,
> I have some trouble with installing msim on my Windows. I cloned the repository from git and tried to use the "./configure && make install" on my Ubuntu subsystem and also Cygwin. However, the problems occurred in both cases:
>
> : not found: 16: ./configure:
> ./configure: 32: ./configure: Syntax error: newline unexpected (expecting ")")
>
> I was able to fix the problem on line 16 by typing a "#" at the beginning of the line, but I don't know how to fix line 32:
>
> ...
> ## -------------------- ##
>
> # Be more Bourne compatible
> DUALCASE=1; export DUALCASE # for MKS sh
> if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
> emulate sh
> NULLCMD=:
> # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
> # is contrary to our usage. Disable this feature.
> alias -g '${1+"$@"}'='"$@"'
> setopt NO_GLOB_SUBST
> else
> case `(set -o) 2>/dev/null` in #(
> *posix*) :
> set -o posix ;; #(
> *) :
> ;;
> esac <---- line 32
> fi
> ...
>
> Some of my classmates used linux subsystem to compile it, too, and the installation was OK. Can anyone help me, please?
>
> Best regards
> Katarína Dančejová
>
>
> _______________________________________________
> NSWI004 mailing list
> NSWI004 at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/nswi004
>
--
Petr Tuma
Distributed and Dependable Systems
Faculty of Mathematics and Physics
Charles University, Czech Republic
http://d3s.mff.cuni.cz
More information about the NSWI004
mailing list