gonzalo / gphoto2-updater

Gphoto2 compiler and installer script. This script was initially created for Raspbian and Raspberry Pi but it is also tested for Ubuntu and Debian Jessie & Wheezy.
http://github.com/gonzalo/gphoto2-updater
292 stars 71 forks source link

Gphoto2 not updating to latest version in Ubuntu 18.04 #80

Closed BeebBenjamin closed 3 years ago

BeebBenjamin commented 3 years ago

Tried running this on Ubuntu 18.04

It stays on my current version after executing.

Here is the following output for gphoto2:


Cloning into 'gphoto2'...
remote: Enumerating objects: 66, done.
remote: Counting objects: 100% (66/66), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 5650 (delta 29), reused 38 (delta 17), pack-reused 5584
Receiving objects: 100% (5650/5650), 3.58 MiB | 4.08 MiB/s, done.
Resolving deltas: 100% (4230/4230), done.
Note: checking out 'ccd63c74732fab2092efe768f307bdbe2146185c'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

--------------------------------
Compiling and installing gphoto2
--------------------------------

Copying file ABOUT-NLS
Creating directory auto-aux
Copying file auto-aux/config.rpath
Creating directory auto-m4
Copying file auto-m4/codeset.m4
Copying file auto-m4/gettext.m4
Copying file auto-m4/glibc21.m4
Copying file auto-m4/iconv.m4
Copying file auto-m4/intdiv0.m4
Copying file auto-m4/intmax.m4
Copying file auto-m4/inttypes-pri.m4
Copying file auto-m4/inttypes.m4
Copying file auto-m4/inttypes_h.m4
Copying file auto-m4/isc-posix.m4
Copying file auto-m4/lcmessage.m4
Copying file auto-m4/lib-ld.m4
Copying file auto-m4/lib-link.m4
Copying file auto-m4/lib-prefix.m4
Copying file auto-m4/longdouble.m4
Copying file auto-m4/longlong.m4
Copying file auto-m4/nls.m4
Copying file auto-m4/po.m4
Copying file auto-m4/printf-posix.m4
Copying file auto-m4/progtest.m4
Copying file auto-m4/signed.m4
Copying file auto-m4/size_max.m4
Copying file auto-m4/stdint_h.m4
Copying file auto-m4/uintmax_t.m4
Copying file auto-m4/ulonglong.m4
Copying file auto-m4/wchar_t.m4
Copying file auto-m4/wint_t.m4
Copying file auto-m4/xsize.m4
Copying file auto-aux/mkinstalldirs
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'auto-aux'.
libtoolize: linking file 'auto-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'auto-m4'.
libtoolize: linking file 'auto-m4/libtool.m4'
libtoolize: linking file 'auto-m4/ltoptions.m4'
libtoolize: linking file 'auto-m4/ltsugar.m4'
libtoolize: linking file 'auto-m4/ltversion.m4'
libtoolize: linking file 'auto-m4/lt~obsolete.m4'
configure.ac:31: installing 'auto-aux/compile'
configure.ac:35: installing 'auto-aux/config.guess'
configure.ac:35: installing 'auto-aux/config.sub'
configure.ac:8: installing 'auto-aux/install-sh'
configure.ac:8: installing 'auto-aux/missing'
Makefile.am: installing './INSTALL'
gphoto2/Makefile.am: installing 'auto-aux/depcomp'
parallel-tests: installing 'auto-aux/test-driver'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for POSIX sh $() command substitution... yes
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 whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for po/Makevars requiring hack... yes, done.
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dynamic library extension... .so
checking for libgphoto2 to use... autodetect
checking for LIBGPHOTO2... yes
checking libgphoto2 library flags... "-L/usr/local/lib -lgphoto2 -lm -lgphoto2_port -lm"
checking libgphoto2 cpp flags... "-I/usr/local/include/gphoto2"
checking for strptime... yes
checking for signal... yes
checking for pause... yes
checking for sleep... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for spawnve... no
checking for floor in -lm... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_exit in -lpthread... yes
checking cdk/cdk.h usability... no
checking cdk/cdk.h presence... no
checking for cdk/cdk.h... no
checking whether SIGHUP is declared... yes
checking whether SIGINT is declared... yes
checking whether SIGUSR1 is declared... yes
checking whether SIGUSR2 is declared... yes
checking whether SIGTERM is declared... yes
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking for libexif to use... autodetect
checking for LIBEXIF... no
checking libexif config program... none
checking for none... no
checking aalib.h usability... no
checking aalib.h presence... no
checking for aalib.h... no
checking whether popt is required... yes
checking popt.h usability... no
checking popt.h presence... no
checking for popt.h... no
checking popt.h usability... no
checking popt.h presence... no
checking for popt.h... no
configure: error: 
* Cannot autodetect popt.h
*
* Set POPT_CFLAGS and POPT_LIBS correctly.

make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
BeebBenjamin commented 3 years ago

My package installer was stuck in a broken state. It now works. Closing because this was my fault. Interestingly there is no error handler for deleting the temp directory, so because it exited the script prematurely I had to go manually delete the temp folder so the process could begin again.