简体   繁体   中英

GLBCX not found when importing TVM

I am really new to compilers. I have installed the TVM following the instructions on the site . However, when I type the command:

python -c "import tvm"

I see this error:

OSError: /home/maryam/anaconda3/envs/tvm-build/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/maryam/tvm/python/tvm/libtvm.so)

I have tried installing libgcc, but it didn't help. Also, I have checked pythonpath, and the version in the apache-tvm folder is already included.

I would appreciate it if anyone helps me. Thanks.

I have solved my problem by entering

export LD_PRELOAD="/lib/x86_64-linux-gnu/libstdc++.so.6"

after installation in the terminal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM