Linux cannot find lib

Содержание
  1. Qt Недостает некоей библиотеки GL . cannot find -lGL
  2. Arch Linux
  3. #1 2012-08-11 20:09:33
  4. [solved] libc.so.6 version GLIBC_2.16 not found
  5. #2 2012-08-12 06:44:38
  6. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  7. #3 2012-08-14 01:02:31
  8. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  9. #4 2012-08-14 07:53:14
  10. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  11. #5 2012-08-14 21:58:51
  12. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  13. #6 2012-08-15 15:06:25
  14. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  15. #7 2012-08-15 17:16:12
  16. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  17. #8 2012-08-17 13:06:36
  18. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  19. #9 2012-08-19 01:00:24
  20. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  21. #10 2012-08-22 10:20:54
  22. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  23. #11 2012-08-23 15:13:36
  24. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  25. #12 2012-08-25 11:20:42
  26. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  27. #13 2012-09-04 06:59:24
  28. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  29. #14 2012-10-27 10:26:20
  30. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  31. #15 2012-10-27 10:42:47
  32. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  33. #16 2012-10-27 10:49:35
  34. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  35. #17 2012-10-27 10:52:57
  36. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  37. #18 2012-10-27 11:29:10
  38. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  39. #19 2012-10-27 11:47:03
  40. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  41. #20 2012-10-27 11:56:17
  42. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  43. #21 2012-10-27 12:12:08
  44. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  45. #22 2012-10-27 12:16:54
  46. Re: [solved] libc.so.6 version GLIBC_2.16 not found
  47. #23 2015-01-20 20:48:14
  48. Re: [solved] libc.so.6 version GLIBC_2.16 not found

Qt Недостает некоей библиотеки GL . cannot find -lGL

Решил поработать с QML и на Hello World уже возникла проблема — обнаружилось что линковщик не нашел -lGL . Что это за либа мне понять исключительно не легко.Т.к. в pro-файле нет такой зависимости, а лезть и докачивать библиотеки по первому найденному совету в тырнетах неохота.Может кто скажет как решал это дело или в чем моя криворукость?

:-1: ошибка: cannot find -lGL

:-1: ошибка: collect2: error: ld returned 1 exit status

Это либо mesa, либо проприетарный драйвер nvidia/fglrx.

Мне не понятно почему возникла проблема с libgl когда его и в помине нет в проекте. Да,все советуют «установи libgl-dev\libgl-mesa-dev\etc.»(хотелось бы еще узнать что именно мне теперь ставить) Я уже искал и находил такой ответ.Только пока не вкурил на кой чёрт мне качать дев-пак для сборки проекта в котором нет прямой зависимости с этой либой.А так же интересно теперь что надо учитывать чтобы подготовить приложение для развертки.

Пишу тут чтобы ,возможно, получить готовый ответ и совет как с этим жить дальше.

Мне не понятно почему возникла проблема с libgl когда его и в помине нет в проекте.

Возможно, Qt отрисовывает окошки с помощью gl backend. Мне это совершенно не кажется принципиальным — раз Qt требуется, значит ставим.

хотелось бы еще узнать что именно мне теперь ставить

Любой рабочий вариант на самом деле.

А так же интересно теперь что надо учитывать чтобы подготовить приложение для развертки.

readelf удобнее для поиска зависимостей 🙂

Пишу тут чтобы ,возможно, получить готовый ответ и совет как с этим жить дальше.

ЛОР — это не твоя личная армия.

Не понимаю к чему вы это.

Здесь же форум.При том явно не экспертов по цветоводству или ,например, археологов.

Так что логично написать там где ,возможно, имеются люди с необходимыми знаниями и желанием помочь.

Что это за либа мне понять исключительно не легко.

это либа opengl.

Т.к. в pro-файле нет такой зависимости

она есть у самого Qt. скорее всего, Qt автоматически подсовывает ее в твой проект, даже если она тебе не нужна.

Может кто скажет как решал это дело

я никак не решал, но в Ubuntu эта либа установлена искоробочно, не?

Читайте также:  Обновление для xbox 360 до windows 10

Нет. Логично нагуглить и применить решение. Как минимум потому, что это тупо быстрее, чем создавать тему.

Логичнее поискать самому. Быстрее, чем катать тему.

На еще не собранный экзешник?

На либы, которые нужно прилинковать.

-dev пакет не ставится по умолчанию, потому уже собранное будет работать, а линкер обломается.

точно, спасибо за поправку. всегда забываю про -dev пакеты.

ТС, если еще не разобрался: apt-get install libgl1-mesa-dev

Логичнее поискать самому. Быстрее, чем катать тему.
Нет. Логично нагуглить и применить решение. Как минимум потому, что это тупо быстрее, чем создавать тему.
Я уже искал и находил такой ответ.

Как уже писал выше — искал,находил почти один и тот же ответ.(для Qt 4 , 5 RC2 и 5.2 кажется) Не применял. Поскольку в одном из советов говорили что требуется 32х битная либа, а мне мучать систему возможными конфликтами неохота. Я уж больно неофит.

И не считаю что зря это сделал.

а это не принципиально к карточкам и их дровам?

Благодарю за предельную подробность.

Сейчас просто работаю в другой системе и не имел возможности проделать манипуляции по установке.

а это не принципиально к карточкам и их дровам?

Источник

Arch Linux

You are not logged in.

#1 2012-08-11 20:09:33

[solved] libc.so.6 version GLIBC_2.16 not found

i have tried to upgrade arch today, and i am getting too deep,
im stilll getting error message

pacman: /lib/libc.so.6 version GLIBC_2.16 not found (required by /usr/lib/libcurl.so.4)

i followed the instructions here https://wiki.archlinux.org/index.php/De … iki:usrlib and am not getting anywhere. i am following the instructions here https://bbs.archlinux.org/viewtopic.php?pid=1144268 and im also not getting anywhere with this.
i did untar the package curl-7.26.0-1-x86_64.pkg.tar.xz from cache and tried to overwrite teh curl libs in /usr/lib and im still getting this error. previously i ignored the unresolvable dependencies which i now feel is a mistake, the list is quite long, heres an example

and the actual ones i ignored that i still have to upgrade because they have been ignored are as follows

pacman -Sd binutils dbus dbus-core gcc gcc-libs ghostscript glib2 glibmm gnutls grep gtk2 icu initscripts libcups libgl linux mesa mkinitcpio pcre php php-apache php-gd php-mcrypt php-pear phpmyadmin samba systemd-tools

im going to stop here until i get some assistance if possible before i break anything. i do have my original curl libs backed up to /tmp/pacman_build/usr directory

where to go from here?

Last edited by wolfdogg (2012-08-12 06:45:49)

Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub | LinkedIn

#2 2012-08-12 06:44:38

Re: [solved] libc.so.6 version GLIBC_2.16 not found

ok, i was able to solve the error

libc.so.6 version GLIBC_2.16 not found

Curl needed to be downgraded because i did a pacman -Sd , and probably mistakenly upgraded curl without upgrading glibc. I know this is mostly mentioned in the other post linked above, however the instructions werent clear enough. note, i didnt have to use the LD_PRELOAD method.

this was how i was able to downgrage curl after enough messing around with it.

replace arch with either x86_64 or i686 depending on your architecture

Last edited by wolfdogg (2012-08-22 06:04:05)

Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub | LinkedIn

#3 2012-08-14 01:02:31

Re: [solved] libc.so.6 version GLIBC_2.16 not found

Hey worked great for me thanks.
I simply did this:

and it upgraded fine, then I tried to do another -Syu and it came up with your error. Annoying since there was no reason, I did not force dependency ignores or anything. Fixed now though!

#4 2012-08-14 07:53:14

Re: [solved] libc.so.6 version GLIBC_2.16 not found

I also had to move old stuff from

by hand before glibc would update.

#5 2012-08-14 21:58:51

Re: [solved] libc.so.6 version GLIBC_2.16 not found

Thanks @wolfdogg. Just a side note. If you are running a 32-bit machine you need to use this url for the curl package.

Читайте также:  Microsoft lifechat lx 3000 windows

#6 2012-08-15 15:06:25

Re: [solved] libc.so.6 version GLIBC_2.16 not found

glad i could help
@bostonvaulter, thanks, i updated the post to reflect the architecture changes, although the address is different than the one you used. they are both listed here http://arm.konnichi.com/2012/07/26/pool/packages/

Last edited by wolfdogg (2012-08-15 15:08:10)

Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub | LinkedIn

#7 2012-08-15 17:16:12

Re: [solved] libc.so.6 version GLIBC_2.16 not found

I tested your method.

Now I have an other error message.

I’m against internet totalitarians of any kind.
And like cheese’s humor.

#8 2012-08-17 13:06:36

Re: [solved] libc.so.6 version GLIBC_2.16 not found

I tested your method.

Now I have an other error message.

You probably needed to reinstall curl from your livecd environment as well.

#9 2012-08-19 01:00:24

Re: [solved] libc.so.6 version GLIBC_2.16 not found

@wolfdogg: here, take another bean from me! +1

Enjoying i3wm w/ lifebar + j4-dmenu-desktop + tab_windows / fish shell / Emacs / tmux / Konsole / KDE apps
Arch + Linux-libre kernel: ParabolaGNULinux.org

#10 2012-08-22 10:20:54

Re: [solved] libc.so.6 version GLIBC_2.16 not found

ok, i was able to solve the error

libc.so.6 version GLIBC_2.16 not found

Curl needed to be downgraded because i did a pacman -Sd , and probably mistakenly upgraded curl without upgrading glibc. I know this is mostly mentioned in the other post linked above, however the instructions werent clear enough. note, i didnt have to use the LD_PRELOAD method.

this was how i was able to downgrage curl after enough messing around with it.

replace arch with either x86_64 or i686 depending on your architecture

I followed this, and now I’m just getting the initial error again.

error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
Errors occurred, no packages were upgraded.

pacman -Syu —ignore glibc and pacman -Syu and pacman -Su fails with that error.

EDIT: I was a bit to quick it seems. i had to ignore curl in my initial upgrade. Now it works. Great guide. Very helpful

Last edited by Del Pede (2012-08-22 10:27:00)

#11 2012-08-23 15:13:36

Re: [solved] libc.so.6 version GLIBC_2.16 not found

tyvm, wish i could send some kisses to you!

#12 2012-08-25 11:20:42

Re: [solved] libc.so.6 version GLIBC_2.16 not found

Wewt, wasn’t home for a few months and accidentally only ignored glibc, not curl (shame on me). Thanks for the hint on switching around curl (I moved the backed up things back afterwards). Looks like it solved things for now (though I’m still going through pacnews before I get around to restarting).

Edit: Yup, solved it completely. Thanks!

Last edited by wardmuylaert (2012-08-25 18:06:50)

#13 2012-09-04 06:59:24

Re: [solved] libc.so.6 version GLIBC_2.16 not found

#14 2012-10-27 10:26:20

Re: [solved] libc.so.6 version GLIBC_2.16 not found

I followed this, and now I’m just getting the initial error again.

error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
Errors occurred, no packages were upgraded.

pacman -Syu —ignore glibc and pacman -Syu and pacman -Su fails with that error.

EDIT: I was a bit to quick it seems. i had to ignore curl in my initial upgrade. Now it works. Great guide. Very helpful

Hi have have the same problem that you had (first I did everything according to the original instructions (I think), then I got the same problem as the thread starter, I followed his instructions and got what you described) but ignoring curl when updating doesn’t help me, I’m still stuck here (actually I don’t think he even wants to update curl as iti is not listed in my update list).

I would very much appreciate some help here since I’m stuck with this problem for some time now.

Читайте также:  Virtualbox сеть между виртуальными машинами linux

Here’s what I get when I try to update now:

#15 2012-10-27 10:42:47

Re: [solved] libc.so.6 version GLIBC_2.16 not found

@Triver, you may have to check for unpackaged files under /lib:

To be sure, also have a look in /lib yourself if there are any leftover files or directories.

The wiki page mentioned in the first post of this thread should provide all the commands you need to find and fix any issues with the glibc update.

#16 2012-10-27 10:49:35

Re: [solved] libc.so.6 version GLIBC_2.16 not found

okay so here’s the output of the command:

if you say «have a look in /lib yourself if there are any leftover files or directories» then what files exactly do you mean? those who are still owned by glibc? and how do I move them properly (or is this already described in the wiki)?

#17 2012-10-27 10:52:57

Re: [solved] libc.so.6 version GLIBC_2.16 not found

Ok if you’re not using those old kernels anymore, just remove the modules directory:

Then, per the wiki, manually install glibc:

Then proceed as normal.

Last edited by litemotiv (2012-10-27 11:00:00)

#18 2012-10-27 11:29:10

Re: [solved] libc.so.6 version GLIBC_2.16 not found

Wow it actually worked, thank you so much (and to the threadstarter too)

A little sidenote here though, when I manually updated glibc as you suggested he showed me the messages

and he also showed me the first line when I did a pacman -Syu afterwards.

Should I worry or even do something about that?

Last edited by Triver (2012-10-27 11:35:15)

#19 2012-10-27 11:47:03

Re: [solved] libc.so.6 version GLIBC_2.16 not found

Wow it actually worked, thank you so much (and to the threadstarter too)

A little sidenote here though, when I manually updated glibc as you suggested he showed me the messages

and he also showed me the first line when I did a pacman -Syu afterwards.

Should I worry or even do something about that?

That’s probably because you manually restored curl before. They are supposed to be symlinked like this:

You can fix that manually, they are relative links so you should use the -r switch with ln.

#20 2012-10-27 11:56:17

Re: [solved] libc.so.6 version GLIBC_2.16 not found

So I have to do

and that’s it?
How can I check if the other links are correct?

#21 2012-10-27 12:12:08

Re: [solved] libc.so.6 version GLIBC_2.16 not found

So I have to do

and that’s it?
How can I check if the other links are correct?

#22 2012-10-27 12:16:54

Re: [solved] libc.so.6 version GLIBC_2.16 not found

excellent, thanks again for your fast reply

#23 2015-01-20 20:48:14

Re: [solved] libc.so.6 version GLIBC_2.16 not found

i ran into this problem again and wanted to update the url so one can find the old version of curl. the instructions on this page were flawless, and i remember was the only way i was able to get things to work, however i went back and looked everywhere and cant find the old curl version.

Can someone point me to a valid link of old curl versions, 7.26.xx to be exact. anybody?

the reason this is still an issue is because i have an older arch install cd (that needs updating) which i needed for rescue and after i ran pacman on it to install testdisk i ran into these problems.

EDIT: Disregard this anyhow, i realized i wasnt using my 2nd to newest arch iso, i was using my 3rd to newest, ouch. i threw them both away and made a fresh one. nice to see test disk is on these by default!

Last edited by wolfdogg (2015-01-20 23:54:54)

Источник

Оцените статью