# Installation of node smartmeter fails on linux mint

**URL:** https://discourse.nodered.org/t/installation-of-node-smartmeter-fails-on-linux-mint/88560
**Category:** General
**Created:** [8 June 2024 14:23 UTC](https://discourse.nodered.org/t/installation-of-node-smartmeter-fails-on-linux-mint/88560 "2024-06-08T14:23:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)
#### Post date: [8 June 2024 14:23 UTC](https://discourse.nodered.org/t/installation-of-node-smartmeter-fails-on-linux-mint/88560/1 "2024-06-08T14:23:03Z")

</div>

Hi,  
i tried to install the smartmeter node on a linux mint 21.3 system, failed with the following messages:  
024-06-08T12:39:21.829Z Installieren : node-red-contrib-smartmeter 0.6.3

```auto
`Preformatted text`2024-06-08T12:39:21.845Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-smartmeter@0.6.3

2024-06-08T12:39:21.945Z [err] npm warn config production Use `--omit=dev` instead.

2024-06-08T12:39:31.412Z [err] npm warn deprecated har-validator@5.1.5: this library is no longer supported

2024-06-08T12:39:31.434Z [err] npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

2024-06-08T12:39:31.441Z [err] npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

2024-06-08T12:39:32.197Z [err] npm error code 1

2024-06-08T12:39:32.197Z [err] npm error path /home/alex/.node-red/node_modules/@serialport/bindings

2024-06-08T12:39:32.198Z [err] npm error command failed

2024-06-08T12:39:32.198Z [err] npm error command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

2024-06-08T12:39:32.198Z [err] npm error make: Verzeichnis „/home/alex/.node-red/node_modules/@serialport/bindings/build“ wird betreten

2024-06-08T12:39:32.198Z [err] npm error CXX(target) Release/obj.target/bindings/src/serialport.o

2024-06-08T12:39:32.198Z [err] npm error make: Verzeichnis „/home/alex/.node-red/node_modules/@serialport/bindings/build“ wird verlassen

2024-06-08T12:39:32.198Z [err] npm error prebuild-install warn install No prebuilt binaries found (target=18.20.3 runtime=node arch=x64 libc= platform=linux)

2024-06-08T12:39:32.198Z [err] npm error gyp info it worked if it ends with ok

2024-06-08T12:39:32.198Z [err] npm error gyp info using node-gyp@10.1.0

2024-06-08T12:39:32.198Z [err] npm error gyp info using node@18.20.3 | linux | x64

2024-06-08T12:39:32.198Z [err] npm error gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn /usr/bin/python3

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args [

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args 'binding.gyp',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-f',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args 'make',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-I',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '/home/alex/.node-red/node_modules/@serialport/bindings/build/config.gypi',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-I',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-I',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '/home/alex/.cache/node-gyp/18.20.3/include/node/common.gypi',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dlibrary=shared_library',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dvisibility=default',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dnode_root_dir=/home/alex/.cache/node-gyp/18.20.3',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dnode_lib_file=/home/alex/.cache/node-gyp/18.20.3/<(target_arch)/node.lib',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dmodule_root_dir=/home/alex/.node-red/node_modules/@serialport/bindings',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Dnode_engine=v8',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '--depth=.',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '--no-parallel',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '--generator-output',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args 'build',

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args '-Goutput_dir=.'

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args ]

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn make

2024-06-08T12:39:32.198Z [err] npm error gyp info spawn args ['BUILDTYPE=Release', '-C', 'build']

2024-06-08T12:39:32.198Z [err] npm error make: g++: Datei oder Verzeichnis nicht gefunden

```

Then i took a 2 years old raspi installation, installation works. I made a brand new raspi installation, it works also.

So what is wrong on my linux system? All updates installed.

Any help is welcomed!

---

<div class="post-metadata">

### Author: ![m-schaeffler](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/m-schaeffler/32/55123_2.png) [@m-schaeffler](https://discourse.nodered.org/u/m-schaeffler)
#### Post date: [8 June 2024 14:45 UTC](https://discourse.nodered.org/t/installation-of-node-smartmeter-fails-on-linux-mint/88560/2 "2024-06-08T14:45:36Z")

</div>

You have to install the GCC compiler; try to install `build-essential`.

---

<div class="post-metadata">

### Author: ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)
#### Post date: [8 June 2024 16:21 UTC](https://discourse.nodered.org/t/installation-of-node-smartmeter-fails-on-linux-mint/88560/3 "2024-06-08T16:21:52Z")

</div>

Thank you, this did the trick!  
Smartmeter install without problems!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [22 June 2024 16:22 UTC](https://discourse.nodered.org/t/installation-of-node-smartmeter-fails-on-linux-mint/88560/4 "2024-06-22T16:22:31Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
