./configure $'\r': command not found
Opened this issue · 10 comments
I've tried for hours now. I cant get it to work, or am I missing something? some extra lib?
Irsim is cloned into C:\cygwin64\usr\local\src
from there i do ./configure
./configure --disable-usersubckt
gives the same error as well
I have Magic working from the same method so i really don't understand this :)
I'm on Windows 8.1
I'm a bit weirded out by the comment about the dollar sign followed by the carriage return. It sounds like the "configure" script has got a break after the $ that shouldn't be there. Line 7 of "configure" should be
( CFLAGS="-g" ; export CFLAGS ; cd scripts ; ./configure "$@" )
all on one line.
Note that the only thing that this "configure" script in the top level source directory does is to invoke the configure script in the scripts/ directory, so you could just as easily cd to the scripts directory and run the configure script there. It will accomplish the same thing.
Seems like some kind of issue with DOS-style vs. UNIX-style carriage-return/linefeed characters?
I haven't used cygwin for a very long time. It was basically made obsolete by WSL. But on Windows 8.1 you don't have that choice.
hmm, that might be it.
i came a bit further when i converted configure to UNIX style in notepad++
maybe i should just convert all those files in scripts
converted config.sub also
converted all the files in scripts
4
adding the logfile also
config.log
i see im missing a few -maybe- essential gcc libs, im adding them and see if its works
EDIT: damn that didnt help...
The question here is whether there is such a file "/usr/local/lib/irsim/tcl/tclirsim.dll". The "make" process should have created the DLL file, and "(sudo) make install" should have installed it.
I would expect issues with just using magic's "configure" script, although they are very similar. You might want to try doing "cd scripts ; aclocal ; autoconf " to generate a new configure script, if nothing else seems to be working.
had to do the following
git clone git://opencircuitdesign.com/irsim
dos2unix the whole dir with:
find . -type f -print0 | xargs -0 dos2unix
create a new configure file with (thanks)
aclocal ; autoconf
and finally cd to: usr\local\src\irsim
./configure --disable-usersubckt
make
make install
and i think its correct now, it looks like it at least?
(now i just need to learn how to combine it with magic etc)
Yes, that looks good. Also good do know that the build process still works with Cygwin. Thanks for writing down the instructions that get it all to work right.
more exact install note for win 8.1 requires 'wget' and 'dos2unix' from cygwin package install, if you want you can put these instaructions on the homepage.
launch the Xserver with startxwin
place the file in C:\cygwin64
wget http://opencircuitdesign.com/cygwin/archive/irsim_9_7_92.tgz
tar xfz netgen_1_5_46.tgz
place the git clone in C:\cygwin64\usr\local\src
git clone git://opencircuitdesign.com/irsim
cd irsim
find . -type f -print0 | xargs -0 dos2unix
cd scripts
rename configure.in to configure.ac and remove the 'configure' file
aclocal ; autoconf
cd ..
./configure --disable-usersubckt
make
make install
irsim
FTR, using git config --global core.autocrlf input
might prevent the need for dos2unix.