Gphoto2 installation help

I'm trying to use an actual digital camera so that's why need to use gphoto2.
However, I can't install the latest version of gphoto2, which supports the camera I have.

with apt-get install & apt-get upgrade, I can't install the latest version of gphoto2, probably due to the repository doesn't have the latest version...

So I was trying to install from the github source following the instruction (https://github.com/gphoto/gphoto2), then hit another error message. I'm a linux newbie so I can't figure out why, appreciate any help you might be able to offer!

Below is the error message:

pi@octopi:~/gphoto2 $ autoconf -i
configure.ac:2: error: possibly undefined macro: dnl
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:8: error: possibly undefined macro: AM_INIT_AUTOMAKE
configure.ac:11: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:33: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:35: error: possibly undefined macro: AM_PROG_LIBTOOL
configure.ac:60: error: possibly undefined macro: AM_PO_SUBDIRS
configure.ac:61: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
configure.ac:62: error: possibly undefined macro: AM_GNU_GETTEXT
configure.ac:63: error: possibly undefined macro: AM_ICONV
configure.ac:108: error: possibly undefined macro: AC_DEFINE
configure.ac:168: error: possibly undefined macro: AM_CONDITIONAL

Try sudo apt-get install pkg-config and then running autoconf again.

1 Like

Thanks for your input!
It says that pkg-config is already on the latest version

pi@octopi:~ $ sudo apt-get install pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
pkg-config is already the newest version (0.29-6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

You can also try

sudo apt-get install autoconf-archive

I managed to install with autoreconf -i -f. However, there was problem with the installation and gphoto2 still can't detect my camera... not sure what to do...

You could ask over at the gphoto repository instead. They're bound to have more knowledge of gphoto than the octoprint community here. If you do, be sure to include any error messages you get, because like us they cannot read your mind when you say "there was a problem with the installation".