building from source code failed with the following error on ubuntu mate 18.04.03
./configure: line 17692: syntax error near unexpected token `$gtk2_package' ./configure: line 17692: `PKG_CHECK_EXISTS($gtk2_package >= $gtk2_min_version, have_gtk2=yes, have_gtk2=no)'
Where did you get that configure from? The one in the source package on the geany download site does not contain that line.
I have downloaded the source code file from https://download.geany.org/geany-1.36.tar.gz. please check the log file for detailed information.
[build.log](https://github.com/geany/geany/files/4408938/build.log)
So the error occurs when running autogen.sh, not the configure that is provided by the project. What happens when you run that?
Autogen.sh is only meant to be run on git downloads to create configure. Works for me with a git clone on Linux mint which is based on Ubuntu 18.04.
I have cloned the git repository and run autogen.sh
I have attached the log file showing build errors.
[build_git.log](https://github.com/geany/geany/files/4409210/build_git.log)
See the message after the libtoolize ones, google says this is because you don't have the gettext devel installed.
there is no package like gettext devel in ubuntu. I have compiled and installed gettext version 0.20 from gnu. yet running autogen.sh failed with same error.
You probably haven't installed the dependencies needed to build. In this case it's probably `libglib2.0-dev` which contains the GLib gettextize macros that appear to be missing, I believe.
Even easier though, just run `sudo apt-get build-dep geany` which should install all the packages and development files required to build Geany from source.
libglib2.0-dev is already installed and running sudo apt-get build-dep geany giving error:
sudo apt-get build-dep geany Reading package lists... Done E: Unable to find a source package for geany
`apt-get build-deps` needs access to the source package as the error message notes. Enable the source packages should fix it.
enabled source code in software sources. running autogen.sh gave error.
checking for Git revision... f1de94bb ./configure: line 17692: syntax error near unexpected token `$gtk2_package' ./configure: line 17692: `PKG_CHECK_EXISTS($gtk2_package >= $gtk2_min_version, have_gtk2=yes, have_gtk2=no)'
did you successfully install geany build-deps?
yes. installed a package after running sudo apt-get build-dep geany. Running again the same command gives no errors.
do you have pkg-config installed?
pkg-config is already isntalled with version 0.29.1
Dunno then, like I said it works for me on Linux Mint which is Ubuntu 18.04 based, Autofools experts needed.
You could delete the file `configure` in the root source directory and re-run `autogen.sh` to regenerate it, maybe it got messed up due to the previously missing Autoconf/M4 dependencies.
I have deleted configure file and re-run autogen.sh. I have again got the same errors.
I have compiled geany successfully along with geany plugins. Actual problem is from my side due to compilation errors from autotools. After reinstalling autotools compilation went without errors.
Closed #2465.
github-comments@lists.geany.org