What can cause dlopen: no suitable image found (can't map)?

走远了吗. 提交于 2019-12-06 19:56:26

问题


What can cause the following error when loading an additional bundle using dlopen:

dlopen($(OBJ_DIR)/Test-20091217211256.ob, 6): no suitable image found.  Did find:
    $(OBJ_DIR)/Test-20091217211256.ob: can't map

Before this error, the process allocates large amounts of memory.

(Substituted $(OBJ_DIR) in the error for the actual path to make it more legible).


回答1:


One possibility is that the shared library you're trying to open isn't actually a shared library. Run the file(1) program on your library to make sure it's actually a shared library. It should report something like Mach-O 64-bit dynamically linked shared library x86_64 on a 64-bit system or Mach-O dynamically linked shared library i386 on a 32-bit system.




回答2:


  1. 32 bit shared object on 64-bit operating system?

  2. missing dependencies?




回答3:


the solution is just running npm rebuild node-sass

credit from: https://github.com/dlmanning/gulp-sass/issues/454



来源:https://stackoverflow.com/questions/1924452/what-can-cause-dlopen-no-suitable-image-found-cant-map

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!