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

Install openSUSE goes to wrong directory #26

Open
wimrijnders opened this issue Nov 26, 2014 · 0 comments
Open

Install openSUSE goes to wrong directory #26

wimrijnders opened this issue Nov 26, 2014 · 0 comments

Comments

@wimrijnders
Copy link
Contributor

Hi,

I've just installed beanstalk-client on a 64-bit openSUSE system. Doing 'sudo make install' puts the created library files into /usr/lib. It should go into /usr/lib64 instead, otherwise the libraries will not be found.

I looked in the makefile, the target lib directories are used in this part:

install: $(SHAREDLIB) $(STATICLIB)
  mkdir -p $(DESTDIR)/usr/include $(DESTDIR)/usr/lib $(DESTDIR)/usr/lib/pkgconfig
  cp beanstalk.h $(DESTDIR)/usr/include
  cp beanstalk.hpp $(DESTDIR)/usr/include
  cp $(SHAREDLIB) $(DESTDIR)/usr/lib/$(SHAREDLIB).$(VERSION)
  cd $(DESTDIR)/usr/lib && ln $(LNOPTS) $(SHAREDLIB).$(VERSION) $(SHAREDLIB).1
  cd $(DESTDIR)/usr/lib && ln $(LNOPTS) $(SHAREDLIB).$(VERSION) $(SHAREDLIB)
  cp $(STATICLIB) $(DESTDIR)/usr/lib/$(STATICLIB).$(VERSION)
  cd $(DESTDIR)/usr/lib && ln $(LNOPTS) $(STATICLIB).$(VERSION) $(STATICLIB).1
  cd $(DESTDIR)/usr/lib && ln $(LNOPTS) $(STATICLIB).$(VERSION) $(STATICLIB)
  cp beanstalk-client.pc $(DESTDIR)/usr/lib/pkgconfig/libbeanstalk.pc
  sed -i -e 's/@VERSION@/$(VERSION)/' $(DESTDIR)/usr/lib/pkgconfig/libbeanstalk.pc

For my specific install, the lib directory should be /usr/lib64 instead.

Please adjust the makefile so that this path is defined automatically for the platforms that need it. Also, please make it so that the lib path can be easily adjusted in one place, eg in a variable - this as a fallback for previous request.

Apart from this, the compile and install goes fine (after I changed the lib path).

Thanks,

Wim.

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

1 participant