how to create multichain using ubuntu 20.4 LTS app.

+6 votes
I have installed UBUNTU 20.04 LTS app in windows 10. I am unable to create chain.

error: anju@DESKTOP-FFAFKFO:~/multichain-2.3.1-enterprise-demo$ multichain-utilcreate chain1
multichain-utilcreate: command not found.

Can anyone help me to identify the reason.

When i tried the same steps with windows version of multichain. I was able to create chain, But can't run multichain CLI

MESSAGE:

C:\Users\RAM\MULTICHAIN> multichain-cli chain_name help
error: Could not connect to the server 127.0.0.1:9554 (error code 1 - "EOF reached")

Make sure the multichaind server is running and that you are connecting to the correct RPC port.
asked Jan 5, 2023 by anju

3 Answers

+1 vote

You need to run the command with a space before create, i.e.:

multichain-util create chain1

 

answered Jan 5, 2023 by MultiChain
i have included space, by mistake space was left during typing  in the above question.

for windows version, the problem is resolved. i am working on connecting nodes now. but for ubuntu app, i can't identify the problem, when other linux commands are running on same app in windows OS.
Did you install the MultiChain executables in a directory which Linux can find automatically, by following the instructions on our website?

If not, you need to run the files in Linux like this:

./multichain-util
./multichaind
./multichain-cli
yes,
wget https://www.multichain.com/download/enterprise/multichain-2.3.1-enterprise-demo.tar.gz
tar -xvzf multichain-2.3.1-enterprise-demo.tar.gz

// folder is available in C:\Users\RAM\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04LTS_79rhkp1fndgsc\LocalState\rootfs\home\anju
// I didn't even move to /usr/local/bin......also the mv command didn't work
then,
cd multichain-2.3.1-enterprise-demo
multichain-utilcreate chain1

error: multichain-util create: command not found
You need to use the mv command as root. And if you can't do that, run the commands using:

./multichain-util
./multichaind
./multichain-cli

The ./ before the command name tells Linux to look in the current directory.
0 votes

To create a Multichain blockchain using Ubuntu 20.04 LTS, you can follow these steps:

1. Update the System:
   ```
   sudo apt update
   sudo apt upgrade
   ```

2. Install Dependencies:
   ```
   sudo apt install build-essential libssl-dev libevent-dev libboost-all-dev
   ```

3. Download Multichain:
   Visit the Multichain website (https://www.multichain.com/download-install/) and download the appropriate version of Multichain for Ubuntu.

4. Extract the downloaded file:
   ```
   tar -xvzf multichain-x.x.x.tar.gz
   ```

5. Change to the extracted directory:
   ```
   cd multichain-x.x.x
   ```

6. Build Multichain:
   ```
   sudo make
   ```

7. Install Multichain:
   ```
   sudo make install
   ```

8. Create a New Blockchain:
   ```
   multichain-util create <chain-name>
   ```

   Replace `<chain-name>` with the desired name for your blockchain.

9. Configure the Blockchain:
   Open the `params.dat` file in a text editor:
   ```
   nano ~/.multichain/<chain-name>/params.dat
   ```

   Customize the parameters according to your requirements, such as the chain name, network port, mining parameters, permissions, etc. Save and exit the file.

10. Start the Blockchain:
    ```
    multichaind <chain-name> -daemon
    ```

    This command will start the Multichain blockchain daemon.

11. Access the Blockchain:
    You can now interact with the blockchain using the Multichain command-line interface (CLI) or the available APIs. For example, you can use the following command to get information about your blockchain:
    ```
    multichain-cli <chain-name> getinfo
    ```

These steps should help you create a Multichain blockchain on Ubuntu 20.04 LTS. Remember to replace `<chain-name>` with your desired name for the blockchain. You can further explore the Multichain documentation (https://www.multichain.com/developers/) for more information on using and customizing your blockchain.

answered Jul 7, 2023 by marketingegnoto
0 votes
For Ubuntu, the "multichain-utilcreate: command not found" error might be due to the MultiChain utility not being installed or in the system's PATH.

For Windows, the "Could not connect to the server 127.0.0.1:9554" error indicates that the MultiChain server (multichaind) might not be running on the specified RPC port or is not running at all.
answered Jul 26, 2023 by nathandiaz
...