Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbol: _ZTIN6mosqpp11mosquittoppE #5

Open
niaz925 opened this issue Dec 2, 2019 · 5 comments
Open

Undefined symbol: _ZTIN6mosqpp11mosquittoppE #5

niaz925 opened this issue Dec 2, 2019 · 5 comments

Comments

@niaz925
Copy link

niaz925 commented Dec 2, 2019

Hi,

I have followed the installation instructions on ubuntu 18.04 64-bit using R 3.6, all the dependencies have been installed but I am still getting this error:

Error: package or namespace load failed for ‘mqtt’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/niaz/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-mqtt/00new/mqtt/libs/mqtt.so':
/home/niaz/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-mqtt/00new/mqtt/libs/mqtt.so: undefined symbol: _ZTIN6mosqpp11mosquittoppE

Any idea why I am getting this error.
cheers

@victor2vy
Copy link

Hi Niaz,

I have the same issue, did you find any solutions?

thanks

@courtwarr
Copy link

courtwarr commented Jun 26, 2020

Same issue here. Would love to use this library to allow my shiny apps to control other devices.

My system: Debian 10, R 3.5.2

My error message:
Error: package or namespace load failed for ‘mqtt’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/usr/local/lib/R/site-library/mqtt/libs/mqtt.so':
/usr/local/lib/R/site-library/mqtt/libs/mqtt.so: undefined symbol: _ZTIN6mosqpp11mosquittoppE

Edit:
I've found a workaround by leveraging reticulate::source_python() and a python script that handles all the mqtt messaging. Not ideal but thought it might be worth sharing.

@victor2vy
Copy link

Ok, i have also found a solution which is to downgrade mosquitto to mosquitto 1.4.15

@damenta
Copy link

damenta commented Dec 13, 2021

victor2vy, could you explain the process to install the downgrade of mosquitto 1.4.15? , please, where do I find the version?, thanks in advance

@victor2vy
Copy link

@damenta You have to uninstall mosquitto and then download the 1.4.15 i think this link should do the job : https://launchpad.net/ubuntu/+source/mosquitto/1.4.15-1
I hope this will help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants