I'm running the same architecture. Can you change the LIBS option "-L$(VDIR)/lib" to "-L/usr/lib64/"?
On 7/8/2015 5:36 PM, [email protected] wrote: > > > > > > Eric, > > still doesn't work. i installed the rpm but my a file shows under > /usr/lib64. difference in architecture a problem? > > i am running centos 6.6 64-bit. > > - Fabe > > > > On 2015-07-08 19:20, Eric Broch wrote: > >> Do you have this... >> >> http://mirrors.qmailtoaster.com/current/CentOS/6/x86_64/libvpopmail-devel-5.4.33-0.qt.el6.x86_64.rpm >> >> installed? >> >> On 7/8/2015 4:32 PM, [email protected] wrote: >>> >>> >>> >>> >>> >>> Eric, >>> >>> No dice: >>> >>> [root@mail vqregister-2.5]# make all >>> gcc -o vqregister main.o cgi.o template.o global.o misc.o config.o >>> register.o password.o vpopmail.o db.o field.o badhosts.o >>> -L/home/vpopmail/lib -lvpopmail -lcrypt -L/usr/lib64/mysql -lmysqlclient >>> /usr/bin/ld: cannot find -lvpopmail >>> collect2: ld returned 1 exit status >>> make: *** [vqregister] Error 1 >>> [root@mail vqregister-2.5]# >>> >>> >>> >>> what do you mean by >>> >>> "Why do you want a create vqregister with a partial install of >>> vpopmail and not the full install?" >>> >>> >>> >>> - Fabe >>> >>> >>> >>> On 2015-07-08 17:32, Eric Broch wrote: >>> >>> Fabe, >>> >>> I just compiled vqregister (make all), with no install or clean, >>> on CentOS6/QMT with the following settings ( minus the '-lz' at >>> the end of the LIBS line, which you had***): >>> >>> <begin Makefile> >>> >>> VDIR = /home/vpopmail >>> CC = gcc >>> BIN = vqregister >>> DEFS = -I$(VDIR)/include -I/usr/include/mysql >>> LINKDEFS = >>> LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt -L/usr/lib64/mysql >>> -lmysqlclient >>> OBJS = main.o cgi.o template.o global.o misc.o config.o >>> register.o password.o \ >>> vpopmail.o db.o field.o badhosts.o >>> >>> INSTALL_DIR = /usr/local/apache/cgi-bin/vqregister >>> INSTALL_BIN = vqregister.cgi >>> INSTALL_UID = vpopmail >>> INSTALL_GID = vchkpw >>> >>> <end Makefile> >>> >>> Why do you want a create vqregister with a partial install of >>> vpopmail and not the full install? >>> >>> *** >>> Your LIBS LINE: LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt >>> -L/usr/lib64/mysql -lmysqlclient -lz >>> My LIBS Line: LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt >>> -L/usr/lib64/mysql -lmysqlclient >>> >>> Eric >>> >>> >>> On 7/6/2015 9:22 AM, [email protected] wrote: >>> >>> I should add that the reason I ask is I'm trying to make us >>> of vqregister and at compile time I get this error: >>> >>> /usr/bin/ld: cannot find -lvpopmail >>> >>> I installed my QMT using the latest github scripted method. >>> >>> Will vqregister simply not work for me or is there a way to >>> tweak my Makefile to make it work? >>> >>> Makefile attached. Thanks. >>> >>> - Fabe >>> >>> >>> On 2015-07-06 11:09, [email protected] wrote: >>> >>> Hello, >>> >>> Is there a way for me to take the vpopmail srpm file and >>> run a >>> modified compilation / install sequence that will simply >>> place the >>> vpopmail include and lib files in the correct locations >>> for me but do >>> nothing else? or a manual way to do this correctly? >>> >>> - Fabe >>> >>> >>> >>> --------------------------------------------------------------------- >>> >>> To unsubscribe, e-mail: >>> [email protected] >>> For additional commands, e-mail: >>> [email protected] >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: >>> [email protected] >>> For additional commands, e-mail: >>> [email protected] >>> >>> >>>
