johguse / profanity

Vanity address generator for Ethereum
834 stars 324 forks source link

missing INSTALL.md or packages needed to compile #48

Open SmartLayer opened 3 years ago

SmartLayer commented 3 years ago

On a Ubuntu set up, I can tell that opencl-c-headers are needed but not sure what other packages are required for compiling. Thanks.

GillesJ commented 3 years ago

These are the steps on Ubuntu 20.04:

  1. Install opencl dependencies: apt-get install ocl-icd-opencl1 ocl-icd-opencl-dev opencl-headers
  2. Compile binary using Makefile: cd ./profanity && make
  3. Make 'profanity.x64' executable: chmod +x profanity.x64
  4. Run: ./profanity.x64 or bash profanity.x64 if you're using an alternative shell.

Funnily enough the executable throws errors when I invoke bash ./profanity.x64 from zsh, so I had to drop to bash first.

SmartLayer commented 3 years ago

In step 1 I got this (Yes I am on Ubuntu 20.04)

$ LANG=en sudo apt-get install ocl-icd-opencl1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ocl-icd-opencl1

After struggling for a while I got compilation working using

$ sudo apt install nvidia-opencl-dev  ocl-icd-opencl-dev opencl-headers

But the resulting file doesn't work. See issue #51