Начало работы с Mujoco: Отсутствие общих библиотек в Simulate.cpp

Я пытаюсь установить Mujoco (безуспешно) из Ubuntu 17.04 (последний выпуск).

Сайт с инструкциями: Начиная

Версия: mjpro150 linux и / или mjpro140 linux

У меня уже есть лицензия.

Следуя шагам:

Поместите mjkey.txt с ключом активации на bin = ok

запустить simulate.cpp = ошибка

Ситуация:

каталог

wil@Ophelia:~/Documents/mjpro150/bin$ ls
basic       libglewegl.so     libglfw.so.3         mjkey.txt  test
compile     libglewosmesa.so  libmujoco150nogl.so  record
derivative  libglew.so        libmujoco150.so      simulate

Дорожка

wil@Ophelia:~/Documents/mjpro150/bin$ pwd
/home/wil/Documents/mjpro150/bin
wil@Ophelia:~/Documents/mjpro150/bin$ LD_LIBRARY_PATH=/home/wil/Documents/mjpro150/bin
wil@Ophelia:~/Documents/mjpro150/bin$ echo $LD_LIBRARY_PATH
/home/wil/Documents/mjpro150/bin

Командный шаг и ОШИБКА Муджоко

wil@Ophelia:~/Documents/mjpro150/bin$ ./simulate
./simulate: error while loading shared libraries: libmujoco150.so: cannot open shared object file: No such file or directory
wil@Ophelia:~/Documents/mjpro150/bin$ ./simulate.cpp
bash: ./simulate.cpp: No such file or directory
wil@Ophelia:~/Documents/mjpro150/bin$ ./simulate ../model/humanoid.xml
./simulate: error while loading shared libraries: libmujoco150.so: cannot open shared object file: No such file or directory

Пытаетесь скомпилировать ?! (из начала)

wil@Ophelia:~/Documents/mjpro150/bin$ gcc simulate -o -prog
simulate:(.rodata+0x0): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o:(.rodata.cst4+0x0): first defined here
simulate: In function `data_start':
(.data+0x8): multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o:(.data.rel.local+0x0): first defined here
simulate: In function `_fini':
(.fini+0x0): multiple definition of `_fini'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o:(.fini+0x0): first defined here
simulate: In function `_start':
(.text+0x235): multiple definition of `_start'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o:(.text+0x0): first defined here
simulate: In function `_init':
(.init+0x0): multiple definition of `_init'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o:(.init+0x0): first defined here
simulate: In function `data_start':
(.data+0x0): multiple definition of `__data_start'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o:(.data+0x0): first defined here
/usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o:(.tm_clone_table+0x0): multiple definition of `__TMC_END__'
simulate:(.data+0x28): first defined here
/usr/bin/ld: error in simulate(.eh_frame); no .eh_frame_hdr table will be created.
collect2: error: ld returned 1 exit status

Вопрос: Кто-нибудь знает, как мне поступить?

1

Решение

Попробуй запустить

LD_LIBRARY_PATH=. ./simulate ../model/humanoid.xml

в целом (т.е. вставьте все эти символы в одну строку перед нажатием Enter в оболочке) в bin как pwd, или же по крайней мере

export LD_LIBRARY_PATH=/home/wil/Documents/mjpro150/bin

перед звонком ./simulate, Вы должны экспортировать переменную среды, чтобы сделать ее видимой для другой программы, запущенной из (той же) оболочки.

1

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector