Linux Mint 20.3 segmentation fault when attempting to create a new project using Dfinity's dfx SDK

262 Views Asked by At

Please be gentle, I'm very inexperienced with this stuff!
I have a lenovo x200 thinkpad running Linux Mint 20.3; I've had no issues orientating myself with linux mint so far, although I am still very new to linux in general.

I have been attempting to install and run Dfinity foundation's SDK kit on this laptop. I've used this SDK before on this laptop before, back when it was running win10 with no issue. It seems I can install the shared library using the command

sh -ci "$(curl -fsSL https://smartcontracts.org/install.sh)"

this generates the dfx library in /home/doolb/bin. Running the command

dfx --version

Initially was not recognised as a command, until I ran

export PATH=$PATH:/home/doolb/bin

After exporting this path, "dfx --version" correctly returns "dfx 0.11.1", so I'm sure I've installed dfx correctly at this point.
The problem occurs when I attempt to use the "new" command to create a new project. For example, running

dfx new DApp

returns the following:

Fetching manifest https://sdk.dfinity.org/manifest.json
⠚ Checking for latest dfx version...
Segmentation fault (core dumped)

The little ⠚ rotates for a second before returning the Segmentation Fault.

I can't for the life of me figure out why this is happening. I've run memtest, reinstalled mint, reinstalled dfx, and the problem persists. Can somebody help me troubleshoot what might be causing this segmentation fault? I have a suspicion this could be caused by write permissions, but I'm not sure how to diagnose this. For reference, I've been loosely following this tutorial: https://internetcomputer.org/docs/current/developer-docs/quickstart/hello10mins/

Any help would be much appreciated!
Kind Regards,
Doolb

0

There are 0 best solutions below