Building F# on a mac... mcs: No such file or directory - macos

I am building F# from source on my mac (yosemite).
I followed these steps.
git clone https://github.com/mono/mono
cd mono
./autogen.sh --prefix=/mono64 --enable-nls=no
make
During make I get an error
cd /Users/abhishek.srivastava/mono/mcs && /Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14 ' CC='gcc' all-profiles
mkdir -p -- build/deps
make[6]: mcs: No such file or directory
make[6]: *** [build/deps/basic-profile-check.exe] Error 1
*** The compiler 'mcs' doesn't appear to be usable.
*** You need Mono version 3.8 or better installed to build MCS
*** Check mono README for information on how to bootstrap a Mono installation.
/bin/sh: mcs: command not found
*** The version of 'mcs' is: .
make[5]: *** [do-profile-check] Error 1
make[4]: *** [profile-do--basic--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
LBURMAC603TG8WM:mono (master *=)$

Do make get-monolite-latest after autogen.sh and before making the rest.
Alternatively, any recent binary mono release can be installed and used for bootstrapping.

Related

how to install gdb 9.1 on debian from source code

I like to compile and use gdb 9.1. the source is here https://ftp.gnu.org/gnu/gdb/
Plus when I type make in config directory make says make: *** No targets specified and no makefile found. Stop. because there is not make file. on root folder there are Makefile.in and Makefile.tpl and Makefile.def. what are these files. and how can I install gdb 9 from source code.
Update
After the comment changes I made in command by G.M I am getting this error I think almost at the end of compiling process
mv GDBvn.new GDBvn.texi
/home/fawad/Desktop/gdb/gdb/gdb-9.1.1/missing makeinfo --split-size=5000000 --split-size=5000000 -I /home/fawad/Desktop/gdb/gdb
/gdb-9.1.1/gdb/doc/../../readline/readline/doc -I /home/fawad/Desktop
/gdb/gdb/gdb-9.1.1/gdb/doc/../mi -I /home/fawad/Desktop/gdb/gdb/gdb-9.1.1/gdb/doc
-o gdb.info /home/fawad/Desktop/gdb/gdb/gdb-9.1.1/gdb/doc/gdb.texinfo
/home/fawad/Desktop/gdb/gdb/gdb-9.1.1/missing: 81: makeinfo: not found
WARNING: 'makeinfo' is missing on your system.
You should only need it if you modified a '.texi' file, or
any other file indirectly affecting the aspect of the manual.
You might want to install the Texinfo package:
http://www.gnu.org/software/texinfo/
The spurious makeinfo call might also be the consequence of
using a buggy 'make' (AIX, DU, IRIX), in which case you might
want to install GNU make:
http://www.gnu.org/software/make/
make[4]: *** [Makefile:490: gdb.info] Error 127
make[4]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build/gdb/doc'
make[3]: *** [Makefile:2010: subdir_do] Error 1
make[3]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build/gdb'
make[2]: *** [Makefile:1655: all] Error 2
make[2]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build/gdb'
make[1]: *** [Makefile:9564: all-gdb] Error 2
make[1]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build'
make: *** [Makefile:852: all] Error 2

JModelica fails at compiling (make install)

I tried to install JModelica on my Ubunute 18.04 but I always get a make error.
(I've installed both the required pakages for python and python3)
I followed the installation guide from its userGuide.pdf (https://jmodelica.org/downloads/UsersGuide.pdf) to the point i had to make install it.
$ sudo make install
I get the following error output (last few line):
Makefile:1127: recipe for target 'install-python-packages' failed
make[2]: *** [install-python-packages] Error 1
make[2]: Verzeichnis „/home/user/FMU/jmodelica/JModelica.org/build“ wird verlassen
Makefile:757: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Verzeichnis „/home/user/FMU/jmodelica/JModelica.org/build“ wird verlassen
Makefile:443: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
EDIT:
pretty much erverything is building but the target:
build-python-packages
$ sudo make install-python-packages
this throws the error from above. But I can't identify the wrong lines.
maybe you can try
https://gitlab.com/christiankral/install_jmodelica/blob/master/install_jmodelica.sh
for more information see discussion:
JModelica on Ubuntu 18.04

trying to building on OSX but got "No rule to make target antlr4_static" error

trying to build on OSX, got the following antlr error. Need to install antlr-runtime?
[ 43%] Built target antlr4_runtime
[ 43%] Built target csv_infer
[ 45%] Performing build_static step for 'antlr4_runtime'
make[4]: *** No rule to make target `antlr4_static'. Stop.
make[3]: *** [antlr4_runtime/src/antlr4_runtime-stamp/antlr4_runtime-build_static] Error 2
make[2]: *** [CMakeFiles/antlr4_runtime-build_static.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [dev] Error 2
This has now been fixed.
CMake 3.14 changed where the ExternalProject module builds the source. It was unable to find ANTLR's own CMake files, necessitating a change to the WORKING_DIRECTORY.

Compiling Freeswitch source from master branch with mod_opus on debian jessie failed

make freeswitch master failed with below output:
making all mod_opus
make[4]: Entering directory '/usr/local/src/freeswitch/src/mod/codecs/mod_opus'
Makefile:884: *** You must install libopus-dev to build mod_opus. Stop.
make[4]: Leaving directory '/usr/local/src/freeswitch/src/mod/codecs/mod_opus'
Makefile:645: recipe for target 'mod_opus-all' failed
make[3]: *** [mod_opus-all] Error 1
make[3]: Leaving directory '/usr/local/src/freeswitch/src/mod'
Makefile:555: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/usr/local/src/freeswitch/src'
Makefile:2948: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/freeswitch'
Makefile:1346: recipe for target 'all' failed
make: *** [all] Error 2
If I understand it correctly is asking for libopus-dev which already have installed.
This is apt-cache output:
root#wecall:/usr/local/src/freeswitch# apt-cache policy libopus-dev
libopus-dev:
Installed: 1.1-18~1-jessie+1
Candidate: 1.1-18~1-jessie+1
Version table:
*** 1.1-18~1-jessie+1 0
500 http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
1.1-2 0
500 ftp://mir2.ovh.net/debian/ jessie/main amd64 Packages
This is locations where libopus-dev installed:
root#wecall:/usr/local/src/freeswitch# dpkg --listfiles libopus-dev
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/opus.pc
/usr/lib/x86_64-linux-gnu/libopus.a
/usr/include
/usr/include/opus
/usr/include/opus/opus_defines.h
/usr/include/opus/opus_types.h
/usr/include/opus/opus_multistream.h
/usr/include/opus/opus.h
/usr/share
/usr/share/doc
/usr/share/doc/libopus-dev
/usr/share/doc/libopus-dev/copyright
/usr/share/doc/libopus-dev/changelog.Debian.gz
/usr/lib/x86_64-linux-gnu/libopus.so
After you install the libopus, please make clean and re-call the script ./configure. Then make it again.
Willen
You need to comment following lines in source and then recompile again:
vi freeswitch/src/mod/codecs/mod_opus/Makefile
# Comment line 889 & 890
#install: error
#all: error

Debian "make" error

I'm trying to install ufasoft miner on my Debian machine, but after entering make it shows this message:
make[1]: Entering directory `/root/ufasoft_coin-0.75'
CXX el/libext/bignum.o
In file included from el/libext/bignum.cpp:18:0:
./el/bignum.h: In member function ?void Ext::BigInteger::swap(Ext::BigInteger&)?:
./el/bignum.h:310:8: error: ?mpz_class? has no member named ?swap?
make[1]: *** [el/libext/bignum.o] Error 1
make[1]: Leaving directory `/root/ufasoft_coin-0.75'
make: *** [all] Error 2
Check your installed GMP version.
For me, ufasoft_coin-0.75 compiles fine against the latest gmp-5.1.3 (With --enable-cxx)

Resources