Author

Topic: Vanitygen: Vanity bitcoin address generator/miner [v0.22] - page 178. (Read 1153620 times)

hero member
Activity: 792
Merit: 1000
Bite me
pipped to the post ...  Smiley
donator
Activity: 392
Merit: 252
cd850efd221f8f18bd608c7f66de90fbdf77b607510bf08ed33eb35a4a229cb4

Thanks, JackJack!

8 Bitcoin sent!
donator
Activity: 392
Merit: 252
Bounty:

8 Bitcoins and some free rolls on Birtcoinduit to the first person to give basic documentation, and who is able to get oclvanity gen compiled and running on the rig.

If you're up for the challenge, you can PM me, and I'll give you the credentials. I'm not too concerned about security, as the worst that can happen is that someone messes with the miner scripts. You'd have access to 1.1 GH/s, but there's no private keys anywhere on the thing. It's just a persistent install.

Anyways, if someone is interested, I have a lot of other projects underway right now, but I really do think it's worth the cost to get this piece working, as I am NOT a linux guy at the core, and dependencies / syntax are not where I should be putting my headspace right now. Instead, let me pay back someone, or multiple people on this forum for their help and assistance.

Regards,
Jonathan

p.s. you can get in touch more directly by emailing me directly at [email protected]
hero member
Activity: 530
Merit: 500
root@linuxcoin:/home/user/vanitygen# ./vanitygen
./vanitygen: error while loading shared libraries: libpcre.so.0: cannot open sha          red object file: No such file or directory

Now solved. Sorry I can't help out with the Linux OpenCL specifics, but others seem to be on that Smiley

donator
Activity: 392
Merit: 252
Back to my original post..

I haven't been successful in implementing either vanitygen or oclvanitygen on my linux server. 2 Bitcoin reward for anyone who can.

Sad

As far as I could see your vanitygen should indeed have linked fine - the linking error you posted was for oclvanitygen alone and the library it didn't find is also used by oclvanitygen alone.

Sorry for asking again, but didn't you get a "vanitygen" executable? Do you, if you do:

Code:
make clean
make vanitygen

?

You should be able to do "./vanitygen -i 1bounty" after that ...




root@linuxcoin:/home/user/vanitygen# make clean
rm -f vanitygen.o oclvanitygen.o pattern.o util.o vanitygen
root@linuxcoin:/home/user/vanitygen# make vanitygen
cc -ggdb -O3 -Wall -I/opt/AMD-APP-SDK-v2.4-lnx64/include/CL/   -c -o vanitygen.o           vanitygen.c
cc -ggdb -O3 -Wall -I/opt/AMD-APP-SDK-v2.4-lnx64/include/CL/   -c -o pattern.o p          attern.c
cc -ggdb -O3 -Wall -I/opt/AMD-APP-SDK-v2.4-lnx64/include/CL/   -c -o util.o util          .c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -I/opt/AMD-APP-SDK-          v2.4-lnx64/include/CL/ -lpcre -lcrypto -lm -lpthread
root@linuxcoin:/home/user/vanitygen# vanitygen
bash: vanitygen: command not found
root@linuxcoin:/home/user/vanitygen# ./vanitygen
./vanitygen: error while loading shared libraries: libpcre.so.0: cannot open sha          red object file: No such file or directory
hero member
Activity: 530
Merit: 500
Back to my original post..

I haven't been successful in implementing either vanitygen or oclvanitygen on my linux server. 2 Bitcoin reward for anyone who can.

Sad

As far as I could see your vanitygen should indeed have linked fine - the linking error you posted was for oclvanitygen alone and the library it didn't find is also used by oclvanitygen alone.

Sorry for asking again, but didn't you get a "vanitygen" executable? Do you, if you do:

Code:
make clean
make vanitygen

?

You should be able to do "./vanitygen -i 1bounty" after that ...

hero member
Activity: 792
Merit: 1000
Bite me

cc oclvanitygen.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -I/opt/AMD-APP-SDK-v2.4-lnx64/include/CL/ -lpcre -lcrypto -lm -lpthread -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: ld returned 1 exit status
make: *** [oclvanitygen] Error 1

this is the linker failing you need

export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:/opt/ati-stream-sdk-v2.4-lnx64/lib/x86_64/:
in either your
.bashrc file [relog the terminal afterwards]
or
to test
on a command line
export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:/opt/ati-stream-sdk-v2.4-lnx64/lib/x86_64/:
then try the make

donator
Activity: 392
Merit: 252
Back to my original post..

I haven't been successful in implementing either vanitygen or oclvanitygen on my linux server. 2 Bitcoin reward for anyone who can.

PM me for login details.

Regards,
Jonathan
hero member
Activity: 530
Merit: 500
make: *** [oclvanitygen] Error 1

Did you get vanitygen working at least? For your usage that'll work just fine until you can sort oclvanitygen out.

legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
oclvanitygen.c:37:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
make: *** [oclvanitygen.o] Error 1


If RaTTuS' solution doesn't work (which was the case for me), put that in a sh file, make it executable and run it with arguments (1:the folder containing the CL directory, 2: the folder containing libOpenCL.so):
Code:
#!/bin/sh
if [ $# -lt 2 ]
then
echo 'arg1 = sdk/include'
echo 'arg2 = sdk/lib/x86(_64?)'
exit
fi
mkdir CL -p
cp $1'/CL/cl.h' CL
sed -i 's##"CL/cl.h"#' oclvanitygen.c
cp $1'/CL/cl_platform.h' CL
sed -i 's##"cl_platform.h"#' CL/cl.h
sed -i 's#$(LIBS) -L.* -lOpenCL.*#$(LIBS) -L'$2' -lOpenCL#' Makefile
sed -i 's#$(LIBS) -lOpenCL.*#$(LIBS) -L'$2' -lOpenCL#' Makefile
make oclvanitygen
sed -i 's#"CL/cl.h"##' oclvanitygen.c
sed -i 's#$(LIBS) -L.* -lOpenCL.*#$(LIBS) -lOpenCL#' Makefile
rm CL -R
echo "Run: \n   export LD_LIBRARY_PATH=$2:\$LD_LIBRARY_PATH"


cc oclvanitygen.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -I/opt/AMD-APP-SDK-v2.4-lnx64/include/CL/ -lpcre -lcrypto -lm -lpthread -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: ld returned 1 exit status
make: *** [oclvanitygen] Error 1

Are you sure libOpenCL.so is in the second directory you provided?
donator
Activity: 392
Merit: 252
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
oclvanitygen.c:37:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
make: *** [oclvanitygen.o] Error 1


If RaTTuS' solution doesn't work (which was the case for me), put that in a sh file, make it executable and run it with arguments (1:the folder containing the CL directory, 2: the folder containing libOpenCL.so):
Code:
#!/bin/sh
if [ $# -lt 2 ]
then
echo 'arg1 = sdk/include'
echo 'arg2 = sdk/lib/x86(_64?)'
exit
fi
mkdir CL -p
cp $1'/CL/cl.h' CL
sed -i 's##"CL/cl.h"#' oclvanitygen.c
cp $1'/CL/cl_platform.h' CL
sed -i 's##"cl_platform.h"#' CL/cl.h
sed -i 's#$(LIBS) -L.* -lOpenCL.*#$(LIBS) -L'$2' -lOpenCL#' Makefile
sed -i 's#$(LIBS) -lOpenCL.*#$(LIBS) -L'$2' -lOpenCL#' Makefile
make oclvanitygen
sed -i 's#"CL/cl.h"##' oclvanitygen.c
sed -i 's#$(LIBS) -L.* -lOpenCL.*#$(LIBS) -lOpenCL#' Makefile
rm CL -R
echo "Run: \n   export LD_LIBRARY_PATH=$2:\$LD_LIBRARY_PATH"


cc oclvanitygen.o pattern.o util.o -o oclvanitygen -ggdb -O3 -Wall -I/opt/AMD-APP-SDK-v2.4-lnx64/include/CL/ -lpcre -lcrypto -lm -lpthread -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: ld returned 1 exit status
make: *** [oclvanitygen] Error 1
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
oclvanitygen.c:37:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
make: *** [oclvanitygen.o] Error 1


If RaTTuS' solution doesn't work (which was the case for me), put that in a sh file, make it executable and run it with arguments (1:the folder containing the CL directory, 2: the folder containing libOpenCL.so):
Code:
#!/bin/sh
if [ $# -lt 2 ]
then
echo 'arg1 = sdk/include'
echo 'arg2 = sdk/lib/x86(_64?)'
exit
fi
mkdir CL -p
cp $1'/CL/cl.h' CL
sed -i 's##"CL/cl.h"#' oclvanitygen.c
cp $1'/CL/cl_platform.h' CL
sed -i 's##"cl_platform.h"#' CL/cl.h
sed -i 's#$(LIBS) -L.* -lOpenCL.*#$(LIBS) -L'$2' -lOpenCL#' Makefile
sed -i 's#$(LIBS) -lOpenCL.*#$(LIBS) -L'$2' -lOpenCL#' Makefile
make oclvanitygen
sed -i 's#"CL/cl.h"##' oclvanitygen.c
sed -i 's#$(LIBS) -L.* -lOpenCL.*#$(LIBS) -lOpenCL#' Makefile
rm CL -R
echo "Run: \n   export LD_LIBRARY_PATH=$2:\$LD_LIBRARY_PATH"
hero member
Activity: 792
Merit: 1000
Bite me

root@linuxcoin:/home/user/vanitygen# make vanitygen oclvanitygen
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
oclvanitygen.c:37:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
make: *** [oclvanitygen.o] Error 1


edit Makefile and change the line
CFLAGS to be like
CFLAGS=-ggdb -O3 -Wall -I/opt/ati-stream-sdk-v2.1-lnx64/include/
^ or where ever your included path is for opencl
see 2.3 or if using nvidia then somewhere else
to find where try
locate /cl.h

legendary
Activity: 1680
Merit: 1035
Safe mode does the same ting (never finds anything)
Running oclvanitygen -d0 1 finds something instantly
Running oclvanitygen -d0 -vkr -w128 "^1B" returns
...
followed by more GPU idles. Not sure if that CPU matcher is right. Maybe that -r isn't working for me?  Undecided

Ah!  Perhaps it's repeating the same address indefinitely, or maybe for all results of a particular batch.  Try:

-d0 -vkr -w128 "^1"

Interesting. "^1" comes back with a whole slew of adresses instantly, but as soon as I add a B, or anything else after that 1, it just sits there :/
legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
user@linuxcoin:~/vanitygen$ make vanitygen oclvanitygen
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
pattern.c:32:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [pattern.o] Error 1


Right, you need the PCRE lib installed. Download from http://pcre.org/

Code:
./configure; make; make install




root@linuxcoin:/home/user/vanitygen# make vanitygen oclvanitygen
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
oclvanitygen.c:37:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
make: *** [oclvanitygen.o] Error 1

Nvidia or Amd?
sr. member
Activity: 350
Merit: 251
hero member
Activity: 530
Merit: 500
root@linuxcoin:/home/user/vanitygen# make vanitygen oclvanitygen
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
oclvanitygen.c:37:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
make: *** [oclvanitygen.o] Error 1


Ok, so while I could probably guess as to what you need to do (install OpenCL) I'm on a Mac and it's better if someone on Linux helps you. On the other hand, that's only needed for oclvanitygen (the one that runs on your GPU). For the addresses you want you could probably find them in a short enough amount of time on your CPUs (50% in 1 hour on my laptop), and vanitygen compiles fine without OpenCL.

Either it's already there (try "./vanitygen") or you need to do "make vanitygen" without oclvanitygen.

If so;

Code:
./vanitygen -i 1bounty
donator
Activity: 392
Merit: 252
user@linuxcoin:~/vanitygen$ make vanitygen oclvanitygen
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
pattern.c:32:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [pattern.o] Error 1


Right, you need the PCRE lib installed. Download from http://pcre.org/

Code:
./configure; make; make install




root@linuxcoin:/home/user/vanitygen# make vanitygen oclvanitygen
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
oclvanitygen.c:37:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
make: *** [oclvanitygen.o] Error 1
hero member
Activity: 530
Merit: 500
user@linuxcoin:~/vanitygen$ make vanitygen oclvanitygen
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
pattern.c:32:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [pattern.o] Error 1


Right, you need the PCRE lib installed. Download from http://pcre.org/

Code:
./configure; make; make install

donator
Activity: 392
Merit: 252
user@linuxcoin:~/vanitygen$ make vanitygen oclvanitygen
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
pattern.c:32:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [pattern.o] Error 1
Jump to: