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

Problem with installing compiled geany #2044

Closed
CheckB opened this issue Jan 11, 2019 · 22 comments
Closed

Problem with installing compiled geany #2044

CheckB opened this issue Jan 11, 2019 · 22 comments

Comments

@CheckB
Copy link

CheckB commented Jan 11, 2019

Ubuntu 18.04.
Package assembled through checkinstall.

dpkg: dependency problems prevent configuration of geany:
 geany depends on glib2; however:
  Package glib2 is not installed.
 geany depends on gtk2; however:
  Package gtk2 is not installed.
 geany depends on pango; however:
  Package pango is not installed.

build:

./autogen.sh --disable-html-docs
./configure --disable-html-docs
checkinstall
@CheckB CheckB changed the title Help with setting up compilation in geany Problem with installing compiled geany Jan 11, 2019
@codebrainz
Copy link
Member

What does this have to do with setting up build commands on Windows?

@CheckB
Copy link
Author

CheckB commented Jan 11, 2019

I have postponed the decision for later and not to create another issue, renamed this one.

@codebrainz
Copy link
Member

For the future, it's better to create a separate issue for separate topics as to not confuse the comments archive and people who read/respond to Github mails, which only show the original issue.

For the new issue, you probably need to install the development packages for those listed in the error message. I'm not in Linux at the moment, but they should end with -dev. Installing the GTK+2 development package will probably pull in the others, and IIRC it's called libgtk2.0-dev.

@elextr
Copy link
Member

elextr commented Jan 12, 2019

@CheckB since edits are not disseminated what you have done is confuse anyone watching by email. All replies will seem completely off topic.

If you are no longer interested in an issue close with a polite note.

@CheckB
Copy link
Author

CheckB commented Jan 12, 2019

@codebrainz

I now have libgtk2.0-dev, libgtk2.0-common, libgtk2.0-bin, libgtk2.0-0, but for some reason it still requires a library ...

@elextr @codebrainz

Excuse me! Did not know...

@elextr
Copy link
Member

elextr commented Jan 12, 2019

@CheckB you need to install the -dev versions of all the packages configure asks for.

@codebrainz
Copy link
Member

@CheckB maybe try without checkinstall, just replace the command with make and see if it compiles. If it does, you'll know it's an issue with checkinstall and can troubleshoot that issue separately. As long as you don't run sudo make install it won't mess with your system.

@CheckB
Copy link
Author

CheckB commented Jan 12, 2019

geany compiled, but I already put .deb and .deb itself requests the missing libraries for geany :)

@codebrainz
Copy link
Member

According to the checkinstall man page you need to specify which packages are required using the --requires option. Probably just specifying the libgtk2.0-dev package will be enough to pull in the others.

@lpaulsen93
Copy link
Contributor

@CheckB: I also develop on Ubuntu. In my private wiki I have got the following note about libs which need to be installed (this might not be a minimal list):

sudo apt-get install autoconf
sudo apt-get install intltool
sudo apt-get install libglib2.0-dev
sudo apt-get install gtk+2.0
sudo apt-get install libgtk-3-dev
sudo apt-get install libtool

Optionally for some tasks (but not required) the following libs and tools can be installed:

# For rst2html
sudo apt-get install python3-docutils

# For Source-Code-Check
sudo apt-get install cppcheck

# For generating the source-sode documentation
sudo apt-get install doxygen doxygen-doc doxygen-gui graphviz 

@CheckB
Copy link
Author

CheckB commented Jan 14, 2019

@LarsGit223
The problem is the same. geany still requires:

dpkg: dependency configuration of geany:
  geany depends on glib2; however:
   Package glib2 is not installed.
  geany depends on gtk2; however:
   Package gtk2 is not installed.
  geany depends on pango; however:
   Package pango is not installed.

@elextr
Copy link
Member

elextr commented Jan 14, 2019

@CheckB what is that message from, please always post the command, not just the output?

Geany requires a Glib2, but the package name is not "glib2" similarly GTK2. You can see likely real names of the packages in the post from @LarsGit223.

@CheckB
Copy link
Author

CheckB commented Jan 14, 2019

@elextr
Compile using checkinstall.
checkinstall builds .deb and installs it. Accordingly, after installation, the message appears...

Although all packages are installed

@elextr
Copy link
Member

elextr commented Jan 14, 2019

@CheckB I said show the command you used, checkinstall has many options, its important to know what you actually ran.

@CheckB
Copy link
Author

CheckB commented Jan 16, 2019

@elextr
No options. checkinstall and all

@eht16
Copy link
Member

eht16 commented Jan 17, 2019

What do you want to achieve after all?

Geany packages exist already in Ubuntu.
And if you still want to compile yourself, apt-get build-dep geany will install anything for you which is necessary to build Geany yourself.

@CheckB
Copy link
Author

CheckB commented Jan 19, 2019

@eht16

I just need the latest version package.
How will build-dep help me if I have geany compiled? I have problems installing the package, because geany requires a dependency.
I built a lot of packages using checkinstall, without any options and stuck it only with geany.

@b4n
Copy link
Member

b4n commented Jan 19, 2019

OK, trying it myself made me find the problem: Geany's sources include a .spec file that was probably designed to build a package for Fedora. Unfortunately checkinstall is reading this, which contains incorrect informations like dependencies when building on Ubuntu.

You should pass the correct flags for checkinstall, or remove the spec file before running it.
Something like this might possibly do it: checkinstall --type=debian --pkgversion="1.35" --provides="geany-abi-72, geany-api-239" --requires="libglib2.0-0, libgtk3.0-0, libgdk-pixbuf2.0-0" --spec=geany_checkinstall.spec --exclude='*.la'. Not tested though ⚠️

@elextr
Copy link
Member

elextr commented Jan 19, 2019

@b4n if the .spec is a distro specific thingy it probably should be removed, especially if it confuses other tools. After consulting the fedora packager (@dmaphy?) of course :)

@CheckB
Copy link
Author

CheckB commented Jan 19, 2019

@b4n

Geany's sources include a .spec file that was probably designed to build a package for Fedora.

Thx. It works )

@codebrainz
Copy link
Member

if the .spec is a distro specific thingy it probably should be removed, especially if it confuses other tools

It didn't confuse checkinstall, a tool for generating several kinds of packages, it confused a user of checkinstall who happened to be using it for Debian instead of Fedora packages. That said, if nobody is using or maintaining this .spec file, opting to maintain their own downstream instead, then removing it would make sense.

eht16 added a commit to eht16/geany that referenced this issue Jan 20, 2019
The original intention was to easily build RPM packages by
users and developers. Nowadays, there are professional
Fedora, Suse and whatever RPM spec files available
for the according distributions.
So we can remove this unmaintained file to reduce confusions.

Fixes geany#2044.
@eht16
Copy link
Member

eht16 commented Jan 20, 2019

See #2064 for removing the spec file.
I guess I added it in the very early days of Geany development to have it or just for playing with it, can't say for sure but I agree that it is most probably not necessary any longer today as many distros already have their own package files.

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

6 participants