Unable to install Openfst using 'make install' - amazon-ec2

I'm Trying to install openfst for a speech recognition project and after ./configure when
I try 'sudo make install' I get the following traceback
P -MF .deps/util.Tpo -c util.cc -fPIC -DPIC -o .libs/util.o
util.cc:23:10: fatal error: charconv: No such file or directory
#include <charconv>
^~~~~~~~~~
compilation terminated.
make[2]: *** [util.lo] Error 1
make[2]: Leaving directory `/home/ec2-user/openfst-1.8.2/src/lib'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/ec2-user/openfst-1.8.2/src'
make: *** [install-recursive] Error 1
I'm trying this in an ec2 instance or is there any other means to install openfst. As I require it to use montreal-forced-aligner

Related

Trying to compile erlang program using erlang.mk

am trying to compile erlang code using command 'make' on erlang.mk and getting the below error. i dont know where to go from here. am new to erlang.mk and erlang. am on ubuntu
Getting Xabber Web client .... done.
Copying Xabber Web files to 'priv' directory ........ done.
make[1]: Entering directory '/home/isachi2004/xabber-websocket
/deps/fast_xml'
cc -o priv/lib/fxml.so c_src/fxml.o -lexpat -L -lei -shared
/usr/bin/ld: cannot find -lexpat
collect2: error: ld returned 1 exit status
c_src/Makefile.erlang.mk:24: recipe for target 'priv/lib/fxml.so'
failed
make[2]: *** [priv/lib/fxml.so] Error 1
Makefile:25: recipe for target 'pre-app' failed
make[1]: *** [pre-app] Error 2
make[1]: Leaving directory '/home/isachi2004/xabber-websocket
/deps/fast_xml'
erlang.mk:4512: recipe for target 'deps' failed
make: *** [deps] Error 2
This error means that it cannot find the development files for the Expat library (an XML parser):
/usr/bin/ld: cannot find -lexpat
On Ubuntu, you could try installing it with:
sudo apt install libexpat1-dev

zlib not found but it already installed

I've installed zlib library but when I am compiling this project - https://github.com/mgbellemare/Arcade-Learning-Environment -
it gives me an error not found zlib.
When I run
gcc -o a a.c ; ./a
where a.c file uses "#include "
I've tried these flags
-DZLIB_LIBRARY:FILEPATH
-DZLIB_INCLUDE_DIR:PATH
-ZLIB_CFLAGS=" " ZLIB_LIBS="-lz"
-lz
and recompile the cmake package from source
/home/mostafa/Documents/temp/Arcade-Learning-Environment/src/common/ScreenExporter.cpp:18:10: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ale-bin.dir/build.make:183: CMakeFiles/ale-bin.dir/src/common/ScreenExporter.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/ale-bin.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
I just figured it out, I had to create a new user and things worked

CMake errors installing eigen 3.3.4

I am trying to install eigen with CMake. Following the CMake command, bottom of the output shows:
-- Configuring incomplete, errors occurred!
The highlights of the CMakeError.log are below.
Normally, google gets me an answer pretty quick but I having trouble with this one.
Anyone have any ideas?
c++: error: unrecognized command line option '-Wshorten-64-to-32'
make[1]: Leaving directory `/home/localadmin/apps/eigen/eigen-eigen-5a0156e40feb/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec4154354821.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec4154354821/fast] Error 2
c++: error: unrecognized command line option '-Wenum-conversion'
make[1]: Leaving directory `/home/localadmin/apps/eigen/eigen-eigen-
5a0156e40feb/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec362406516.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec362406516/fast] Error 2
c++: error: unrecognized command line option '-Wc++11-extensions'
make[1]: *** [CMakeFiles/cmTryCompileExec2110565347.dir/src.cxx.o] Error 1
make[1]: Leaving directory `/home/localadmin/apps/eigen/eigen-eigen-5a0156e40feb/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2110565347/fast] Error 2
c++: error: unrecognized command line option '-wd981'
make[1]: Leaving directory `/home/localadmin/apps/eigen/eigen-eigen-
5a0156e40feb/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec1208176884.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec1208176884/fast] Error 2
c++: error: unrecognized command line option '-wd2304'
make[1]: Leaving directory `/home/localadmin/apps/eigen/eigen-eigen-
5a0156e40feb/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec853725866.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec853725866/fast] Error 2
c++: error: unrecognized command line option '-strict-ansi'
make[1]: Leaving directory `/home/localadmin/apps/eigen/eigen-eigen-
5a0156e40feb/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec2089588030.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec2089588030/fast] Error 2
c++: error: unrecognized command line option '-Qunused-arguments'
make[1]: Leaving directory `/home/localadmin/apps/eigen/eigen-eigen-
5a0156e40feb/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec226858210.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec226858210/fast] Error 2
Compiling the Fortran compiler identification source file
"CMakeFortranCompilerId.F" failed.
Compiler: CMAKE_Fortran_COMPILER-NOTFOUND
Build flags:
Id flags: -c
sudo apt-get install gfortran, as valiano suggested in the comments, fixed the issue.

libvorbis.so error adding symbols: DSO missing from command line

I have a next error when do make on zaz game on a linux mint 17.1 (Rebecca) with a drivers NVIDIA G98 GeForce 8400
make all-recursive
make[1]: Entering directory `/home/miguel/tmp/zaz-1.0.0'
Making all in po
make[2]: Entering directory `/home/miguel/tmp/zaz-1.0.0/po'
make[2]: Leaving directory `/home/miguel/tmp/zaz-1.0.0/po'
Making all in src
make[2]: Entering directory `/home/miguel/tmp/zaz-1.0.0/src'
g++ -g -O2 -o zaz main.o audiobuffer.o mixer.o oggsample.o scene.o settings.o wavesample.o streamingoggsample.o frame_events.o ogvexport.o bezier.o textureloader.o player.o level.o ballpath.o game.o editor.o mainmenu.o menu.o gameloop.o hiscores.o lineeditor.o tests.o profile.o directorylister.o levelset.o splash.o -lSDL -lvorbisfile -ltheoraenc -ltheoradec -logg -lftgl -lGL -lvorbisenc -lSDL_image
/usr/bin/ld: ogvexport.o: undefined reference to symbol 'vorbis_bitrate_addblock'
//usr/lib/i386-linux-gnu/libvorbis.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [zaz] Error 1
make[2]: Leaving directory `/home/miguel/tmp/zaz-1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/miguel/tmp/zaz-1.0.0'
make: *** [all] Error 2
I Have installed lib vorbis
libvorbis-dbg:i386 install
libvorbis-dev:i386 install
libvorbis-ocaml install
libvorbis-ocaml-dev install
libvorbis0a:i386 install
libvorbisenc2:i386 install
libvorbisfile3:i386 install
libvorbisidec1 install
With other computer like same features not have a same problem, but the other computer don't have a nvidia card.
Thank for your help.
Tanks, I have resolv the problem change Makefile.ini after read this page:
https://www.mail-archive.com/debian-bugs-dist#lists.debian.org/msg1278320.html

trouble while making install monetdb5

I've the following error when running make while installing monetdb5
make[9]: Entering directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql/parser'
/bin/bash ../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. - I../../../.. -I. -I../ -I./../ -I../../../mal -I./../../../mal -I../../../optimizer -I./../../../optimizer -I../../../../common/options -I./../../../../common/options -I../../../../common/stream -I./../../../../common/stream -I../../../../gdk -I./../../../../gdk -DLIBJAQLP -g -O2 -c -o libjaqlp_la-jaql.tab.lo `test -f 'jaql.tab.c' || echo './'`jaql.tab.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I. -I../ -I./../ -I../../../mal -I./../../../mal -I../../../optimizer -I./../../../optimizer -I../../../../common/options -I./../../../../common/options -I../../../../common/stream -I./../../../../common/stream -I../../../../gdk -I./../../../../gdk -DLIBJAQLP -g -O2 -c jaql.tab.c -fPIC -DPIC -o .libs/libjaqlp_la-jaql.tab.o
y.tab.c: In function 'jaqlparse':
y.tab.c:1684:32: error: 'scanner' undeclared (first use in this function)
y.tab.c:1684:32: note: each undeclared identifier is reported only once for each function it appears in
make[9]: *** [libjaqlp_la-jaql.tab.lo] Error 1
make[9]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql/parser'
make[8]: *** [all] Error 2
make[8]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql/parser'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras/jaql'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5/extras'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/lfopa/opt/monetdb/monetdb5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lfopa/opt/monetdb'
make: *** [all] Error 2
The configuration was good according to the readme file here are last line of the configuration
* Enabled/disabled build options:
strict is disabled (by default)
assert is disabled (by default)
debug is disabled (by default)
optimize is disabled (by default)
developer is disabled (by default)
instrument is disabled (by default)
profile is disabled (by default)
* Enabled/disabled components:
gdk is enabled
monetdb5 is enabled
sql is enabled
jaql is enabled
geom is disabled (geos library required for geom module)
gsl is enabled
fits is disabled (cfitsio library not found)
rdf is disabled (by default)
datacell is disabled (by default)
odbc is enabled
jdbc is enabled
control is enabled
testing is enabled
According to the error message. The trouble occurs when compiling jaqlparse which is a function needed to install the extension jaql. Since I'm not interesting by this extension, I solved the problem by disablingjaql` extension when configuring monetdb
./configure --diseable-jaql
sudo make
sudo make install

Resources