Title: How to install vanitygen on Centos 6.5 Linux
Post by: seoincorporation on June 06, 2014, 04:52:07 AM
Was really hard to make this installation, but now vanitygen works fine on my Centos linux server. About the server: [windows@localhost ~]$ uname -a Linux localhost.localdomain 2.6.32-431.17.1.el6.centos.plus.x86_64 #1 SMP Thu May 8 02:18:11 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux First error: [windows@localhost vanitygen]$ make cc -ggdb -O3 -Wall -I/usr/src/redhat/BUILD/openssl-1.0.1e/include -c -o pattern.o pattern.c pattern.c:32:18: error: pcre.h: No existe el fichero o el directorio pattern.c:1604: error: expected specifier-qualifier-list before ‘pcre’ pattern.c: En la función ‘vg_regex_context_add_patterns’: pattern.c:1623: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_nalloc’ pattern.c:1625: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_nalloc’ pattern.c:1626: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_nalloc’ pattern.c:1636: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1637: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1638: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_pat’ pattern.c:1641: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_nalloc’ pattern.c:1642: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1643: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1643: error: ‘pcre’ no se declaró aquí (primer uso en esta función) pattern.c:1643: error: (Cada identificador no declarado solamente se reporta una vez pattern.c:1643: error: para cada funcion en la que aparece.) pattern.c:1643: error: expected expression before ‘)’ token pattern.c:1644: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1644: error: ‘pcre_extra’ no se declaró aquí (primer uso en esta función) pattern.c:1644: error: expected expression before ‘)’ token pattern.c:1645: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_pat’ pattern.c:1646: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_nalloc’ pattern.c:1651: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1652: aviso: declaración implícita de la función ‘pcre_compile’ pattern.c:1654: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1667: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1668: aviso: declaración implícita de la función ‘pcre_study’ pattern.c:1668: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1671: aviso: declaración implícita de la función ‘pcre_free’ pattern.c:1671: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1674: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_pat’ pattern.c: En la función ‘vg_regex_context_clear_all_patterns’: pattern.c:1692: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1693: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1694: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c: En la función ‘vg_regex_context_free’: pattern.c:1706: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_nalloc’ pattern.c:1707: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c: En la función ‘vg_regex_test’: pattern.c:1723: error: ‘pcre’ no se declaró aquí (primer uso en esta función) pattern.c:1723: error: ‘re’ no se declaró aquí (primer uso en esta función) pattern.c:1764: aviso: declaración implícita de la función ‘pcre_exec’ pattern.c:1764: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1765: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1771: error: ‘PCRE_ERROR_NOMATCH’ no se declaró aquí (primer uso en esta función) pattern.c:1779: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1783: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1788: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_pat’ pattern.c:1797: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1798: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1799: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1806: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1806: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1807: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1808: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_extra’ pattern.c:1809: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_pat’ pattern.c:1809: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex_pat’ pattern.c: En la función ‘vg_regex_context_new’: pattern.c:1840: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_regex’ pattern.c:1841: error: ‘vg_regex_context_t’ no tiene un miembro llamado ‘vcr_nalloc’ make: *** [pattern.o] Error 1
that will be fixed with: [root@localhost vanitygen]# yum install pcre-devel Second error: [windows@localhost vanitygen]$ ./vanitygen 1BTC Difficulty: 77178 vanitygen: pattern.c:164: vg_exec_context_init: Assertion `vxcp->vxc_key' failed. Abortado that was a little bit hard to fix, but i fond the solution: mkdir ~/devel cd ~/devel
wget http://openssl.org/source/openssl-1.0.1g.tar.gz tar xfz openssl-1.0.1g.tar.gz cd openssl-1.0.1g
./config --prefix=/opt/openssl-1.0.1g zlib-dynamic shared make
sudo make install_sw Now we download vanitigen from: https://github.com/samr7/vanitygen/archive/master.zip And we need to edit the make file: export LD_RUN_PATH=/opt/openssl-1.0.1g/lib LIBS=-lpcre -lcrypto -lm -lpthread CFLAGS=-ggdb -O3 -Wall -L/opt/openssl-1.0.1g/lib OBJS=vanitygen.o oclvanitygen.o oclvanityminer.o oclengine.o keyconv.o pattern.o util.o PROGS=vanitygen keyconv oclvanitygen oclvanityminer
PLATFORM=$(shell uname -s) ifeq ($(PLATFORM),Darwin) OPENCL_LIBS=-framework OpenCL else OPENCL_LIBS=-lOpenCL endif
most: vanitygen keyconv
all: $(PROGS)
vanitygen: vanitygen.o pattern.o util.o $(CC) $^ -o $@ $(CFLAGS) $(LIBS)
oclvanitygen: oclvanitygen.o oclengine.o pattern.o util.o $(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(OPENCL_LIBS)
oclvanityminer: oclvanityminer.o oclengine.o pattern.o util.o $(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(OPENCL_LIBS) -lcurl
keyconv: keyconv.o util.o $(CC) $^ -o $@ $(CFLAGS) $(LIBS)
clean: rm -f $(OBJS) $(PROGS) $(TESTS) http://i61.tinypic.com/igkyfa.pngIt works to me and hope works for all the Centos users. If you like these info donations are wellcome ;) 1BtcBoSSnqe8mFJCUEyCNmo3EcF8Yzhpnc
Title: Re: How to install vanitygen on Centos 6.5 Linux
Post by: ganabb on June 06, 2014, 08:20:08 AM
My address wasn't found in 5 hours on my i5-2500K but using my friend's computer while he was away and using his graphics card, I found it in 15 - 20 minutes.
Title: Re: How to install vanitygen on Centos 6.5 Linux
Post by: unk1911 on December 27, 2014, 10:01:36 PM
thanks seoincorporation your guide helped me get the vanity generator compiled on: CentOS release 6.6 the only difference is i had to download a different openssl library. i used openssl-1.0.1j (https://www.openssl.org/source/openssl-1.0.1j.tar.gz)
Title: Re: How to install vanitygen on Centos 6.5 Linux
Post by: seoincorporation on December 29, 2014, 02:58:11 AM
thanks seoincorporation your guide helped me get the vanity generator compiled on: CentOS release 6.6 the only difference is i had to download a different openssl library. i used openssl-1.0.1j (https://www.openssl.org/source/openssl-1.0.1j.tar.gz)
Nice to know this tuto help some one, i do it witn that intention. :D Have a great day.
Title: Re: How to install vanitygen on Centos 6.5 Linux
Post by: btctousd81 on July 03, 2017, 05:56:34 AM
i know this is old thread , but i cam from google. Hi, i have been trying from 4 hours to get this vanitygen working on my linux box and could not so , i followed this https://bitcoin.stackexchange.com/questions/24364/how-do-i-use-vanitygen-on-fedora-20-openssl-restrictions
and https://syslint.com/blog/tutorial/how-to-upgrade-openssl-on-centos-7-or-rhel-7/
my only mistake was i couldnt lcoate the LD_RUN_PATH directory to use which was being used by openssl as did not specify ./config --prefix=/opt/openssl-1.0.2l zlib-dynamic shared
while compiling the openssl., above method worked perfectly., now the vanitygen is working., but you missed one step above .,after editinng Makefile, run thanks
|