Building Cardano Node - Cabal Fails in version 1.20.0

Hi there,

I’ve updated my AWS instance for a more robust one and now when I want to install version 1.20.0 I’m getting this error after ‘cabal build all’:

/usr/bin/ error: cannot find -lgmp
collect2: error: ld returned 1 exit status
'gcc' failed in phase 'Linker'. (Exit code: 1)
cabal: Failed to build Only-0.1 (which is required by exe:db-converter from ouroboros-consensus-byron- See the build log above for details.
Failed to build StateVar-1.2 (which is required by test:cardano-node-test from cardano-node-1.20.0, test:cardano-api-test from cardano-api-1.20.0 and others). See the build log above for details.
Failed to build Win32-network- (which is required by exe:demo-ping-pong from ouroboros-network-framework-, lib:ouroboros-protocol-tests from ouroboros-network- and others).

Does anybody know what it could be?

Thanks in advance!


This worked for me:

Just because I’m curious and not into AWS: What is a ‘more robust’ instance over there?

Hi @hanswurst,

I wanted to say that I changed to a t2.medium instance (it has 2 CPU, 4 GB RAM and it is prepared to process more load of work). Before I was running on the free tier instance, just to see if I could make it throughout the Stakepool Installation Guide.



Sorry for derailing, but your initial problem was already solved :-).

Am I right when I calculate, that a t2.medium instance costs you between 33,9 USD/Month (on demand) and 15.3 USD/Month (3 year contract, no upfront payment) for 2 Cores/4 GB RAM with 20% CPU utilization on average and 1 GB included traffic? Outbound traffic seems to be about 0.02 to 0.09 USD/GB.

Just wondering… I thought, these AWS offers would be so damn cheap and, apart from being scalable, attracting that much clients because of that.

No worries, mate. We are here to learn.

I really don’t know where you checked that, could you please let me know? I would be interested in getting the 3 years contract on my account.



EC2 on demand prices overview: here
The three year contract is selectable in the pricing calculator after adding your t2.medium intance. (would not advise to do that - who knows what’s going to be the hardware requirements if the network really takes off at sometime)

But… was my calculation correct? I was surprised how expensive AWS actually seems to be. And I didn’t even account for storage. I mean, it surely offers benefits in terms of hosting locations all around the world. And I am sure they will have a super-refined user interface. But other than that… scratching-my-head :wink:

On the other hand, one might choose any company offering KVM hosting, which usually includes using your paid CPUs as much as you want, storage and some terabytes of traffic. This traffic alone would cost you 20-50 USD/Month at amazon. Often times you’re allowed to upload an ISO-image to install the OS of your choice. For very cheap ones the guaranteed availability may not be as high as AWS, but its also a third of the price with way better specifications…

I am absolutely not advertising the example link above. I would just like to encourage people to have a look around themselves, look for smaller local hosting companies. I’m sure you will be able to find some nice reputable ones.

Thanks, this is great information for me. May I know which one do you use?

I have not done much research for your area (as stated in your profile). From a quick search: (seems quite reasonable priced, I don’t know them!) (NZ based, I don’t know them, more expensive)

Just take some hours, build up a comparison table for local KVM vservers. I am not a specialist for your area. I am actually using one of those netcup-servers (see above) as one of my relays. Maybe that is an option for you as well, if you want a european one. Latency is 3-5 ms more than in Frankfurt buts it’s way cheaper.