10gic / vanitygen-plusplus

A vanity address generator for BTC, ETH, LTC, TRX and 100+ more crypto currencies.
GNU Affero General Public License v3.0
248 stars 90 forks source link

Issues running on Raspbian #41

Closed ceemoneyx closed 1 year ago

ceemoneyx commented 1 year ago

Is there a way to compile this on Raspbian? I'm having issues despite (i think?) installing the correct prerequisite libraries. I managed to get it compiled on CentOS but am still having issues running the compiled program on my Raspbian OS.

It returns the following error "./vanitygen++: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory"

I tried in stalling the library with: sudo apt install libpcre3 libpcre3-dev

but still no luck. I'm new here so any help would be greatly appreciated!

10gic commented 1 year ago

The version of pcre does not match. Your binary needs version 1, but you installed version 3. You can try to install a lower version of pcre in the runtime environment, or install a higher version of pcre in the build environment.

ceemoneyx commented 1 year ago

Would you have any idea why I'm getting this error when installing PCRE-1?

make[2]: Entering directory '/home/cee/pcre-8.45' /usr/bin/mkdir -p '/usr/local/lib' /bin/bash ./libtool --mode=install /usr/bin/install -c libpcre.la libpcreposix.la libpcrecpp.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libpcre.so.1.2.13 /usr/local/lib/libpcre.so.1.2.13 /usr/bin/install: cannot create regular file '/usr/local/lib/libpcre.so.1.2.13': Permission denied make[2]: *** [Makefile:1537: install-libLTLIBRARIES] Error 1 make[2]: Leaving directory '/home/cee/pcre-8.45' make[1]: *** [Makefile:3076: install-am] Error 2 make[1]: Leaving directory '/home/cee/pcre-8.45' make: *** [Makefile:3069: install] Error 2

10gic commented 1 year ago

There is error message: /usr/bin/install: cannot create regular file '/usr/local/lib/libpcre.so.1.2.13': Permission denied. No permission to create file, maybe you need to use sudo to execute your command.

ceemoneyx commented 1 year ago

hmm, I ran sudo ./configure && make && make install

and same issue

ceemoneyx commented 1 year ago

is there perhaps a way to compile it on CentOS so that it's standalone?

10gic commented 1 year ago

hmm, I ran sudo ./configure && make && make install

and same issue

Try this ./configure && make && sudo make install.

Ref: https://askubuntu.com/questions/634620/when-using-and-sudo-on-the-first-command-is-the-second-command-run-as-sudo-t

ceemoneyx commented 1 year ago

hmmm one step forward two steps back LOL, so that time it didn't give me an error and looks like it ran all the way through the make and install functions, however after a reboot it still doesn't look like any pcre installed.

I'm just getting bash: pcre: command not found when i run pcre -version,

and i still get the ./vanitygen++: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory when trying to run the compiled vanitygen from the desktop

However it DOES show the file there in /usr/local/lib... vanitygen is still spitting out the same error however /usr/local/lib $ ls libpcre.a libpcrecpp.so libpcre.la libpcreposix.so libpcre.so pkgconfig libpcrecpp.a libpcrecpp.so.0 libpcreposix.a libpcreposix.so.0 libpcre.so.1 pypy2.7 libpcrecpp.la libpcrecpp.so.0.0.2 libpcreposix.la libpcreposix.so.0.0.7 libpcre.so.1.2.13 python3.9

Am I missing something else here perhaps?

10gic commented 1 year ago

Try run export LD_LIBRARY_PATH=/usr/local/lib before running the command ./vanitygen++ If it works, put export LD_LIBRARY_PATH=/usr/local/lib into file ~/.bashrc

ceemoneyx commented 1 year ago

This worked thank you!!!