Bitcoin Forum
May 02, 2024, 04:48:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to install vanitygen on Centos 6.5 Linux  (Read 1767 times)
seoincorporation (OP)
Legendary
*
Offline Offline

Activity: 3150
Merit: 2922


Top Crypto Casino


View Profile
June 06, 2014, 04:52:07 AM
Last edit: April 26, 2015, 04:11:00 PM by seoincorporation
 #1

Was really hard to make this installation, but now vanitygen works fine on my Centos linux server.

About the server:

Code:
[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:
Code:
[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:

Code:
[root@localhost vanitygen]# yum install pcre-devel

Second error:

Code:
[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:

Code:
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:

Code:
https://github.com/samr7/vanitygen/archive/master.zip

And we need to edit the make file:

Code:
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)



It works to me and hope works for all the Centos users.

If you like these info donations are wellcome  Wink  1BtcBoSSnqe8mFJCUEyCNmo3EcF8Yzhpnc

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
1714625319
Hero Member
*
Offline Offline

Posts: 1714625319

View Profile Personal Message (Offline)

Ignore
1714625319
Reply with quote  #2

1714625319
Report to moderator
1714625319
Hero Member
*
Offline Offline

Posts: 1714625319

View Profile Personal Message (Offline)

Ignore
1714625319
Reply with quote  #2

1714625319
Report to moderator
1714625319
Hero Member
*
Offline Offline

Posts: 1714625319

View Profile Personal Message (Offline)

Ignore
1714625319
Reply with quote  #2

1714625319
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714625319
Hero Member
*
Offline Offline

Posts: 1714625319

View Profile Personal Message (Offline)

Ignore
1714625319
Reply with quote  #2

1714625319
Report to moderator
1714625319
Hero Member
*
Offline Offline

Posts: 1714625319

View Profile Personal Message (Offline)

Ignore
1714625319
Reply with quote  #2

1714625319
Report to moderator
1714625319
Hero Member
*
Offline Offline

Posts: 1714625319

View Profile Personal Message (Offline)

Ignore
1714625319
Reply with quote  #2

1714625319
Report to moderator
ganabb
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
June 06, 2014, 08:20:08 AM
 #2

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.

unk1911
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 27, 2014, 10:01:36 PM
 #3

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)
seoincorporation (OP)
Legendary
*
Offline Offline

Activity: 3150
Merit: 2922


Top Crypto Casino


View Profile
December 29, 2014, 02:58:11 AM
 #4

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.  Cheesy

Have a great day.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
btctousd81
Sr. Member
****
Offline Offline

Activity: 434
Merit: 270


View Profile WWW
July 03, 2017, 05:56:34 AM
 #5

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
Code:
https://bitcoin.stackexchange.com/questions/24364/how-do-i-use-vanitygen-on-fedora-20-openssl-restrictions
and
Code:
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
Code:
./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

Code:
make 


thanks

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!