beanstalk-client icon indicating copy to clipboard operation
beanstalk-client copied to clipboard

Install openSUSE goes to wrong directory

Open wimrijnders opened this issue 10 years ago • 0 comments

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.

wimrijnders avatar Nov 26 '14 10:11 wimrijnders