torch / distro

Torch installation in a self-contained folder
BSD 3-Clause "New" or "Revised" License
556 stars 484 forks source link

Function dlopen() seems not to be supported on your platform. #266

Open JupyterJones opened 6 years ago

JupyterJones commented 6 years ago

Installing Lua version: LUAJIT21 CMake Error at exe/luajit-rocks/luajit-2.1/CMakeLists.txt:156 (MESSAGE): Cannot compile a useful lua.

Function dlopen() seems not to be supported on your platform.

Apparently you are not on a Windows platform as well.

So lua has no way to deal with shared libraries!


I discovered the reason so I thought I would explain it here. As I searched the web, this seems to be a very common problem: ' finding dlopen ' Although I can not answer it a 100% cure on all computers, I found the problem was when I updated to Ubuntu 18.04 bionic it also updated my gcc to version 8. No matter what I did I could not get version gcc:8.0.0 to find dlopen() when I was installing torch. I installed gcc-4.9.0 and everything worked fine. Torch was not the only program that could not compile because of the upgrade and gcc-8

sohamirian commented 4 years ago

It doesn't work for me :(