Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error on ubuntu 18.04 #2465

Closed
muralikodali opened this issue Mar 31, 2020 · 18 comments
Closed

build error on ubuntu 18.04 #2465

muralikodali opened this issue Mar 31, 2020 · 18 comments

Comments

@muralikodali
Copy link

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)'

@elextr
Copy link
Member

elextr commented Mar 31, 2020

Where did you get that configure from? The one in the source package on the geany download site does not contain that line.

@muralikodali
Copy link
Author

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

@elextr
Copy link
Member

elextr commented Mar 31, 2020

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.

@muralikodali
Copy link
Author

I have cloned the git repository and run autogen.sh

I have attached the log file showing build errors.

build_git.log

@elextr
Copy link
Member

elextr commented Mar 31, 2020

See the message after the libtoolize ones, google says this is because you don't have the gettext devel installed.

@muralikodali
Copy link
Author

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.

@codebrainz
Copy link
Member

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.

@muralikodali
Copy link
Author

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

@elextr
Copy link
Member

elextr commented Apr 1, 2020

apt-get build-deps needs access to the source package as the error message notes. Enable the source packages should fix it.

@muralikodali
Copy link
Author

enabled source code in software sources. running autogen.sh gave error.

checking for Git revision... f1de94b
./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)'

@elextr
Copy link
Member

elextr commented Apr 1, 2020

did you successfully install geany build-deps?

@muralikodali
Copy link
Author

yes. installed a package after running sudo apt-get build-dep geany.
Running again the same command gives no errors.

@elextr
Copy link
Member

elextr commented Apr 1, 2020

do you have pkg-config installed?

@muralikodali
Copy link
Author

pkg-config is already isntalled with version 0.29.1

@elextr
Copy link
Member

elextr commented Apr 1, 2020

Dunno then, like I said it works for me on Linux Mint which is Ubuntu 18.04 based, Autofools experts needed.

@codebrainz
Copy link
Member

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.

@muralikodali
Copy link
Author

I have deleted configure file and re-run autogen.sh.
I have again got the same errors.

@muralikodali
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants