I need a command line compiler in order to make an expert system that automatically builds, tests, and deploys systems of smart contracts based only on metadata. I have tried for several days to install solc without success. I will admit that I only have average intelligence but I thought the point of Ethereum was to empower regular people. It shouldn't be this complicated unless the point of the complexity is to limit the amount of people who can solve the puzzle in a given amount of time. It feels like I am doing a proof of work.
Everything I have tried so far (NPM) is documented but before I post everything here I want to know if there are alternative compilers that can be used in an automated process or if there is another way to install solc or perhaps build it from source. If building from source is an option I will need a tutorial because I have no experience with C++. I do have Visual Studio installed on my machine if that will help.
Very briefly I have tried installing from NPM both locally and globally and I have tried
geth --solc path and
admin.setSolc('path'). In any case, I don't think defining the path is my problem because after NPM installs there is no solc.exe installed anywhere on my computer that I can find - only a solc directory populated with solcjs files.
Any ideas would be greatly appreciated Thanks, John
As a side note I had a lot of difficulty making a local blockchain and I had difficulty finding learning resources. To that end I made a tutorial found here on GitHub which should get another noob like me up and running in short order. One can cut and paste code from the tutorial to start a local block chain and the most helpful resources are indexed. I will continue to work on the index to make it more clear and to add new resources as they are found. If I can find out how to install solc I will write something similar so that the next person coming along can have an easier time.
Thanks again, John
Hi All, it's a day later now and I have some of this problem solved.
Neither the command
npm install solc nor
Check out the The NPM page for solc. It is very misleading- it says solc in big letters at the top. But right below are two links where I think solc and be found.
The problem is that I don't know how to install solc from either of those two GitHub pages and so I didn't even recognize them as places where solc could be acquired. I still don't know what to do with those pages.
Not to worry, after googling for a few hours more I found the this page with a big picture entitled Village Idiot. I hope this is some kind of inside joke and not and insult to average people like myself looking for help. Anyway, on this page is a release of of an executable that installs solc along with the Mix IDE, AlethZero, geth and eth.
Now if I start Geth with the following option
--solc "C:\Program Files\cpp-ethereum\solc", I can then type
eth.getCompilers() into the console and I will see [solidity] as the result returned.
I haven't actually tried to compile anything yet. I will report back if there is trouble.
In the mean time I would be grateful if someone would tell me how to install solc from the following pages here and here. I need to know because the version on the Village Idiot page is from June and I don't think the page is supported anymore.
Thanks again, John