Installing FAAC on linux, getting errors - linux

I am trying to install FAAC on linux. I'm getting errors.
I use this to install.
cd /usr/src
wget http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac-1.28.tar.bz2/download
tar -xvjf faac-1.28.tar.bz2
cd faac-1.28
./configure
make
make install
Once I try to make it, I get the error
mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
/usr/include/string.h:369: error: ambiguates old declaration ‘const char* strcasestr(const char*, const char*)’
make[3]: *** [3gp.o] Error 1
make[3]: Leaving directory `/usr/src/faac-1.28/common/mp4v2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/faac-1.28/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/faac-1.28'
make: *** [all] Error 2
I read up online and it was saying it was interfearing with something, and I had to locate a file and edit it.
How do i fix this installation so it install properly.

Remove line 126 containing strcasestr from mpeg4ip.h found in the common/mp4v2 folder, as a temporary workaround. It seems it does not properly exclude its own prototype when it is already included by means of glibc's strcasestr (#define _GNU_SOURCE 1).
BTW: Isn't ffmpeg on the way to have its own AAC code such that faac/faad is no longer needed as a dependency...

Ubuntu 12.04 - kernel 3.5x to 3.8.0-32-generic
Step 1:
apt-get -y remove gstreamer0.10-plugins-bad
apt-get -y install libfaad-dev libfaac-dev faac faad
Step 2:
cd /var/tmp
wget http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.23.tar.gz
tar xvfz gst-plugins-bad-0.10.23.tar.gz
cd gst-plugins-bad-0.10.23/
./autogen.sh
./configure
configure: *** Plug-ins with dependencies that will be built:
decklink
dvb
faac
faad
fbdevsink
gsettings
linsys
shm
vcdsrc
vp8
make
Making all in faac
make[3]: Entering directory `/var/tmp/gst-plugins-bad-0.10.23/ext/faac'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/gst-plugins-bad-0.10.23/ext/faac'
Making all in faad
make[3]: Entering directory `/var/tmp/gst-plugins-bad-0.10.23/ext/faad'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/gst-plugins-bad-0.10.23/ext/faad'
Making all in gsettings
make install
Step 3: verify
gst-inspect-0.10 faac | grep Version
Version: 0.10.21
gst-inspect-0.10 faad | grep Version
  Version: 0.10.23
EDIT: deb packages
http://labkom.stikom.edu/ubuntu/pool/universe/g/gst-plugins-bad0.10/

Related

How to enable apache-http/2 in centos 7?

I have followed the below link for enabling http/2 in centos-7 apache.
https://www.tunetheweb.com/performance/http2/
My openssl version :
# openssl version
OpenSSL 1.1.0f 25 May 2017
While installing latest apr-util and apache(httpd-2.4.27)
below errors occurred on make command
Inside the apr-util folder :
# make
make[1]: Entering directory `/usr/local/src/apr-util-1.6.0'
/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/local/src/apr-util-1.6.0/incl
ude -I/usr/local/src/apr-util-1.6.0/include/private -I/usr/local/apr/include/apr-1 -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo
xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory
#include <expat.h>
^
compilation terminated.
make[1]: *** [xml/apr_xml.lo] Error 1
make[1]: Leaving directory `/usr/local/src/apr-util-1.6.0'
make: *** [all-recursive] Error 1
Inside the httpd folder :
#make
Making all in srclib
make[1]: Entering directory `/usr/local/src/httpd-2.4.27/srclib'
Making all in apr
make[2]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr'
make[3]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr'
make[2]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr'
Making all in apr-util
make[2]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'
make[3]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'
/bin/sh /usr/local/src/httpd-2.4.27/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/local/src/htt
pd-2.4.27/srclib/apr-util/include -I/usr/local/src/httpd-2.4.27/srclib/apr-util/include/private -I/usr/local/src/httpd-2.4.27/srclib/apr/include -o xml/apr_xml.lo -c xml/a
pr_xml.c && touch xml/apr_xml.lo
xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory
#include <expat.h>
^
compilation terminated.
make[3]: *** [xml/apr_xml.lo] Error 1
make[3]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib'
make: *** [all-recursive] Error 1
I would suggest to install ready to use package from https://codeit.guru/en_US/2017/10/apache-httpd-2-4-28-built-against-openssl-1-0-2l-with-http2-for-red-hat-enterprise-linux-and-centos/
Alternatively, you can recompile it from SRPM provided by Fedora or CodeIT (the same one with changed defaults and openssl paths):
rpmbuild -ba ~/rpmbuild/SPECS/httpd.spec
#nos was correct and this needed yum install expat-devel and a few other dependencies I already had installed.
I've updated the blog post now to reflect this. Feel free to reach out to me if you've any other issues on this.
Now is available repo from codeit.guru for CentOS 7, it can be enabled:
cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo
If apache is already installed, yum update will update apache, it even enables mod_http2.
Otherwise, fresh installation of apache can be done.
Put Protocols h2 http/1.1 within ssl.conf as Mozilla suggests
Restart apache, http/2 is ready.

How do I install libSBML using Cygwin on a Windows machine?

I want to install libSBML using a Cygwin terminal on my Windows machine in order to run a bespoke statistical package in Python. The libSBML installation instructions have enabled me to successfully execute the following:
./configure --with-python=/cygdrive/c/cygwin64 --prefix=/cygdrive/c/cygwin64 --with-swig=/cygdrive/c/cygwin64
make
however,
make install
fails giving the following error:
/bindings/python/RyY1P1Dc/stage//usr/local/lib/_libsbml.a
ranlib /cygdrive/c/Users/esrnai/Downloads/libsbml-4.0.1-src/libsbml- 4.0.1/src/bindings/python/RyY1P1Dc/stage//usr/local/lib/_libsbml.a
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
mkdir -p build build/libsbml
echo "libsbml" > build/libsbml.pth
cp _libsbml.dll build/libsbml
cp: cannot stat ‘_libsbml.dll’: No such file or directory
Makefile:316: recipe for target 'create-build-dir' failed
make[3]: *** [create-build-dir] Error 1
make[3]: Leaving directory '/cygdrive/c/Users/esrnai/Downloads/libsbml- 4.0.1-src/libsbml-4.0.1/src/bindings/python'
../../config/makefile-common-actions.mk:359: recipe for target 'python- recurse' failed
make[2]: *** [python-recurse] Error 2
make[2]: Leaving directory '/cygdrive/c/Users/esrnai/Downloads/libsbml- 4.0.1-src/libsbml-4.0.1/src/bindings'
../config/makefile-common-actions.mk:359: recipe for target 'bindings- recurse' failed
make[1]: *** [bindings-recurse] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/esrnai/Downloads/libsbml- 4.0.1-src/libsbml-4.0.1/src'
config/makefile-common-actions.mk:361: recipe for target 'src-recurse' failed
make: *** [src-recurse] Error 2
I believe the problem is the same as the one reported here http://sourceforge.net/p/sbml/libsbml/314/#581b which has since been closed. Could someone help me interpret the message on this page or suggest any alternative solutions?
I have now overcome this problem through the following solution:
I downloaded libSBML as a standalone python package from https://pypi.python.org/packages/source/p/python-libsbml/python-libsbml-5.11.4.tar.gz
I then entered the appropriate directory and typed the following commands:
tar xzf python-libsbml-5.11.4.tar.gz
cd python-libsbml-5.11.4
python setup.py install
and libSBML was successfully installed. I am now able to run the statistical package without failure.

error encountered installing mono and monodevelop on centos 6

I have been following sintructions for installing mono and monodevelop
on centos 6 found in this web page :
Install Mono and Monodevelop on CentOS 5.x/6.x
I have stalled on one of the steps explained below
yum install pango-devel atk-devel libgnome-devel libgnomecanvas-devel libgnomeui-devel git svn libtool
cd /usr/src
git clone git://github.com/mono/gnome-sharp
cd gnome-sharp
./bootstrap-2.24 --prefix=/usr
make && make install
When I run the make command in gnome-sharp I get this error :-
make all-recursive
make[1]: Entering directory `/usr/src/gnome-sharp'
Making all in sources
make[2]: Entering directory `/usr/src/gnome-sharp/sources'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/gnome-sharp/sources'
Making all in art
make[2]: Entering directory `/usr/src/gnome-sharp/art'
/usr/bin/mcs -debug -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20 -define:GNOME_SHARP_2_24 -nowarn:0169,0612,0618 -unsafe -out:art-sharp.dll -target:library /usr/lib -r:Mono.Cairo generated/*.cs AssemblyInfo.cs
error CS2001: Source file `/usr/lib' could not be found
Compilation failed: 1 error(s), 0 warnings
make[2]: *** [art-sharp.dll] Error 1
make[2]: Leaving directory `/usr/src/gnome-sharp/art'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gnome-sharp'
make: *** [all] Error 2
It looks as if the Makefile process is broken at least to me. Any help gratefully received.
-roddy
You don't need to install Mono from source anymore, there are now official packages: http://www.mono-project.com/docs/getting-started/install/linux/#centos-fedora-and-derivatives

Debian install TP-LINK TL-WN723N Wireless usb

i'm downloading rtl8188eu-master file from github for install this driver on debian. after extract it and run make command in get this error.
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/3.11-2-486/build M=/home/tux-world/Desktop/Home/rtl8188eu-master modules
make[1]: Entering directory `/usr/src/linux-headers-3.11-2-486'
CC [M] /home/tux-world/Desktop/Home/rtl8188eu-master/core/rtw_cmd.o
In file included from /home/tux-world/Desktop/Home/rtl8188eu-master/core/rtw_cmd.c:23:0:
/home/tux-world/Desktop/Home/rtl8188eu-master/include/osdep_service.h: In function ‘thread_enter’:
/home/tux-world/Desktop/Home/rtl8188eu-master/include/osdep_service.h:1406:2: error: implicit declaration of function ‘daemonize’ [-Werror=implicit-function-declaration]
daemonize("%s", name);
^
cc1: some warnings being treated as errors
make[4]: *** [/home/tux-world/Desktop/Home/rtl8188eu-master/core/rtw_cmd.o] Error 1
make[3]: *** [_module_/home/tux-world/Desktop/Home/rtl8188eu-master] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.11-2-486'
make: *** [modules] Error 2
linux-headers-3.11-2-486 and build-essential packages are installed and i do not have problem for those.
Although this has little to do with programming, I will answer this in case somebody comes here with a similar issue.
I had no trouble compiling the driver with these commands (make sure you have the headers installed):
wget https://codeload.github.com/lwfinger/rtl8188eu/zip/master
unzip master
cd rtl8188eu-master
sudo make
sudo make install

Unable to compile GCC, but no specific error given

I'm attempting to compile gcc 4.7.1 on Mint Linux with gcc 4.7.2 and get the following output:
[snip]
ar rc .libs/libgmp.a assert.o compat.o errno.o [snip]
rm -fr .libs/libgmp.lax
creating libgmp.la
(cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
make[5]: Leaving directory `/home/justin/projects/os/linux/src/gcc-4.7.0/build/gmp'
make[4]: Leaving directory `/home/justin/projects/os/linux/src/gcc-4.7.0/build/gmp'
make[3]: Leaving directory `/home/justin/projects/os/linux/src/gcc-4.7.0/build/gmp'
make[2]: Leaving directory `/home/justin/projects/os/linux/src/gcc-4.7.0/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/justin/projects/os/linux/src/gcc-4.7.0/build'
make: *** [all] Error 2
I don't even know where to start looking since I don't get a descriptive error! It looks like it compiles GMP successfully and then fails after that, unable to complete whatever the next step should be.
The question is answered in its comments above. To sum up: The error was due to an improper global (presumably environment) variable, much earlier in the scrollback; that because OP was using a -j flag and other currently active branches did continue building.

Resources