Motion - Support Question 2016x 01x 22x 144706

Installation Failing

Question

Hi, I'm a complete newbie, trying to install Motion, and it's failing. The output lines on the install messages are included below. It seems to be failing to create a file/folder? even though I have root permissions. I realise I probably haven't supplied enough information, but I'm not sure what else you'll need at this point. I'll help you help me as much as I can so if you need more info please let me know what... Thanks! Matt
root@madu:/usr/src/motion-master# ./configure --with-ffmpeg --with-ffmpeg-headers --with-ffmpeg-libs=" -lavformat -lavcodec -lavutil -lx264 -lvpx -lvorbis -lvorbisenc" --prefix=/usr -- sysconfdir=/etc make && make install
configure: WARNING: you should use --build, --host, --target
configure: WARNING: unrecognized options: --with-ffmpeg-headers, --with-ffmpeg-libs
checking for Darwin... no
checking for *BSD... no
checking for make-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking threads... yes
checking for libjpeg-mmx... skipping
checking for libjpeg... 
checking for jpeg_set_defaults in -ljpeg... yes
checking for ffmpeg autodetecting... found in /usr/local/lib
checking for ffmpeg headers in /usr/local... found /usr/local/include/libavformat/avformat.h
checking file_protocol is defined in ffmpeg ?... no
checking for mysql support... testing
checking autodect mysql headers... not found
Invalid MySQL directory - unable to find mysql.h.
checking for PostgreSQL... testing
checking autodect pgsql headers... not found
Invalid PostgreSQL directory - unable to find libpq-fe.h.
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking linux/videodev.h usability... no
checking linux/videodev.h presence... no
checking for linux/videodev.h... no
checking linux/videodev2.h usability... yes
checking linux/videodev2.h presence... yes
checking for linux/videodev2.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/types.h... (cached) yes
checking for get_current_dir_name... yes
checking for struct v4l2_buffer... no
checking for V42L support... no
checking for V42L *old* support... testing
checking for linux/videodev2.h... (cached) yes
checking size of short... 2
checking size of int... 4
checking size of long int... 4
checking size of long long... 8
checking size of int *... 4
checking size of void *... 4
checking for an ANSI C-conforming const... yes
Detected CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz
CPU optimization: -march=i686
checking for bswap instruction... yes
configure: creating ./config.status
config.status: creating thread1.conf
config.status: creating thread2.conf
config.status: creating thread3.conf
config.status: creating thread4.conf
config.status: creating motion-dist.conf
config.status: creating motion.init-FreeBSD.sh
config.status: creating motion.init-Debian
config.status: creating motion.init-Fedora
config.status: creating motion.spec
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
configure: WARNING: unrecognized options: --with-ffmpeg-headers, --with-ffmpeg-libs

   *******************************
      Configure status    
      motion 3.2.12
   *******************************

OS             :     Linux
pthread Support:     Yes
jpeg Support:        Yes
V4L included:        Yes
V4L2 supported:      Yes
FFmpeg Support:      Yes
MYSQL Support:       No
PostgreSQL Support:  No

CFLAGS:  -g -O2 -D_REENTRANT -DHAVE_FFMPEG -I/usr/local/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=i686
LIBS: -lm  -lpthread -ljpeg -L/usr/local/lib -lavformat -lavcodec -lavutil -lm -lz
LDFLAGS:   -L/usr/local/lib

Install prefix:       /usr

Installing files...
--------------------------------------------------------------------------------
mkdir -p /usr/bin
mkdir -p /usr/share/man/man1
mkdir -p /etc
mkdir -p /usr/share/doc/motion-3.2.12
mkdir -p /usr/share/motion-3.2.12/examples
install motion.1 /usr/share/man/man1
install CHANGELOG COPYING CREDITS INSTALL README motion_guide.html /usr/share/doc/motion-3.2.12
install *.conf motion.init-Debian motion.init-Fedora motion.init-FreeBSD.sh /usr/share/motion-3.2.12/examples
install motion-dist.conf /etc
for prog in motion; \
do \
(install $prog /usr/bin ); \
done
install: cannot stat â??motionâ??: No such file or directory
Makefile:134: recipe for target 'install' failed
make: *** [install] Error 1
root@madu:/usr/src/motion-master# 

Environment

Motion version: 3.2.12
ffmpeg version: ?
Libraries: ffmpeg, mysql, postgresql
Server OS: Ubuntu 15.10
-- MattDunn - 22 Jan 2016

Answer

Topic revision: r1 - 22 Jan 2016, MattDunn
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.