BOINC 7.0.25 Linux x86_64 can't find libnotify.so.4

Message boards : Questions and problems : BOINC 7.0.25 Linux x86_64 can't find libnotify.so.4
Message board moderation

To post messages, you must log in.

AuthorMessage
Jason Ash

Send message
Joined: 13 Apr 12
Posts: 5
United States
Message 43466 - Posted: 13 Apr 2012, 12:35:39 UTC

Last night I downloaded the most recent stable version of boinc 7.0.25 for 64bit Linux. I use 64bit Ubuntu 10.04. When I double click on the boincmgr icon, nothing happens. So, I tried running it in a terminal by typing ./run_manager and it gave me this error:

./boincmgr: error while loading shared libraries: libnotify.so.4: cannot open shared object file: No such file or directory

The output of whereis libnotify is
libnotify: /usr/lib/libnotify.la /usr/lib/libnotify.a /usr/lib/libnotify.so /usr/lib64/libnotify.la /usr/lib64/libnotify.a /usr/lib64/libnotify.so /usr/include/libnotify

The output of locate libnotify is
/usr/include/libnotify
/usr/include/libnotify/notification.h
/usr/include/libnotify/notify-enum-types.h
/usr/include/libnotify/notify.h
/usr/lib/libnotify.a
/usr/lib/libnotify.la
/usr/lib/libnotify.so
/usr/lib/libnotify.so.1
/usr/lib/libnotify.so.1.1.3
/usr/lib/pkgconfig/libnotify.pc
/usr/lib/vlc/misc/libnotify_plugin.so
/usr/share/doc/libnotify-bin
/usr/share/doc/libnotify-dev
/usr/share/doc/libnotify1
/usr/share/doc/libnotify-bin/AUTHORS
/usr/share/doc/libnotify-bin/NEWS.gz
/usr/share/doc/libnotify-bin/changelog.Debian.gz
/usr/share/doc/libnotify-bin/copyright
/usr/share/doc/libnotify-dev/AUTHORS
/usr/share/doc/libnotify-dev/NEWS.gz
/usr/share/doc/libnotify-dev/changelog.Debian.gz
/usr/share/doc/libnotify-dev/copyright
/usr/share/doc/libnotify1/AUTHORS
/usr/share/doc/libnotify1/NEWS.gz
/usr/share/doc/libnotify1/changelog.Debian.gz
/usr/share/doc/libnotify1/copyright
/usr/share/locale-langpack/en_AU/LC_MESSAGES/pidgin-libnotify.mo
/usr/share/locale-langpack/en_GB/LC_MESSAGES/pidgin-libnotify.mo
/var/lib/dpkg/info/libnotify-bin.list
/var/lib/dpkg/info/libnotify-bin.md5sums
/var/lib/dpkg/info/libnotify-dev.list
/var/lib/dpkg/info/libnotify-dev.md5sums
/var/lib/dpkg/info/libnotify1.list
/var/lib/dpkg/info/libnotify1.md5sums
/var/lib/dpkg/info/libnotify1.postinst
/var/lib/dpkg/info/libnotify1.postrm
/var/lib/dpkg/info/libnotify1.shlibs

So, I assume I have libnotify. I must need a simlink, but I don't know how to make simlinks in Linux. Also, I have been running the development version of boinc 7.0.3 for 64bit Linux that I compiled without receiving this error. The reason that I want 7.0.25 is that when I compiled boinc I only got boinc and not the GUI manager for some reason so I can only run it in the command line and I can't suspend the GPU without stopping all boinc computations. Also, I want 7.0.3 or greater so I can use openCL 1.1 with my ATI graphics card (HD5450) for poem@home protein folding.
ID: 43466 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 43473 - Posted: 13 Apr 2012, 17:30:48 UTC - in response to Message 43466.  

Last night I downloaded the most recent stable version of boinc 7.0.25 for 64bit Linux. I use 64bit Ubuntu 10.04. When I double click on the boincmgr icon, nothing happens. So, I tried running it in a terminal by typing ./run_manager and it gave me this error:

./boincmgr: error while loading shared libraries: libnotify.so.4: cannot open shared object file: No such file or directory

The output of whereis libnotify is
libnotify: /usr/lib/libnotify.la /usr/lib/libnotify.a /usr/lib/libnotify.so /usr/lib64/libnotify.la /usr/lib64/libnotify.a /usr/lib64/libnotify.so /usr/include/libnotify

[snip]

So, I assume I have libnotify. I must need a simlink, but I don't know how to make simlinks in Linux.


You don't need a symlink - the berekeley version you downloaded was compiled against different versions of the libraries than you have installed. The fix is compile against the libraries that you do have installed.

Also, I have been running the development version of boinc 7.0.3 for 64bit Linux that I compiled without receiving this error. The reason that I want 7.0.25 is that when I compiled boinc I only got boinc and not the GUI manager for some reason


Presuming when you ran the configure command you used
./configure --disable-server
which would cause the client and manager to build, the most likely cause of the manager failing to build is that you are missing one or more dev packages. During the configure stage the output would have paused for a number of seconds and briefly displayed one of the following messages before continuining with the rest of the build process.

================================================================================
WARNING: Development libraries and headers ("-dev") of {openGL, GLU, glut} needed!

The GL, GLU and glut libraries are required in order to build the graphical parts of the BOINC application API library.

==> only building non-graphical parts of the BOINC API Library for now.
HINT: on MacOS X/Darwin you might consider running configure with the option
      './configure --with-apple-opengl-framework'
      in order to use the Mac-native openGL framework
================================================================================

================================================================================
WARNING: libjpeg.a/jpeglib.h not found.

BOINC's openGL graphics-API needs libjpeg ! 
see http://www.ijg.org/

==> I will continue building the non-graphical parts of the BOINC API library.

HINT: on MacOSX/Darwin these libs/includes are sometimes found in '/sw/' (if using fink)
      or '/opt/local' (if using port).
================================================================================



CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 43473 · Report as offensive
Jason Ash

Send message
Joined: 13 Apr 12
Posts: 5
United States
Message 43477 - Posted: 14 Apr 2012, 1:19:20 UTC - in response to Message 43473.  

Hi, thanks for the quick reply. So, I downloaded the source for boinc 7.0.25 and here's the commands that I used to compile it. I got most of this information from http://www.pperry.f2s.com/boinc-compile.htm I have compiled other things on Linux as it's usually pretty easy 1,2,3 ./configure, make, sudo make install. I'm not sure if the aggressive optimizations are necessary or even desirable. After I compile it (the output text is scrolling by pretty fast so it's hard to tell if it's complaining) and install it, I only have boinc, boinccmd, and boinc_client available, but I don't know if I have the GUI manager. Please help me so I can do this correctly. Thanks.

export CFLAGS="-march=native -O3 -fomit-frame-pointer -funroll-loops -fforce-addr -ffast-math -ftracer"
export CXXFLAGS=$CFLAGS
./_autosetup
./configure --enable-optimize --enable-bitness=64 --disable-server
make
sudo make install
ID: 43477 · Report as offensive
Jason Ash

Send message
Joined: 13 Apr 12
Posts: 5
United States
Message 43478 - Posted: 14 Apr 2012, 1:59:09 UTC - in response to Message 43477.  
Last modified: 14 Apr 2012, 1:59:36 UTC

I also tried compiling after installing libwxgtk2.8-0, libsqlite3-dev, and libsqlite0-dev, and it compiles for a while, but it ends with this error. I'm not sure if trying this work around is relivant- maybe opengl is the way to go.

browser.cpp:(.text+0x1b88): undefined reference to `sqlite3_open'
browser.cpp:(.text+0x1b9a): undefined reference to `sqlite3_close'
browser.cpp:(.text+0x1c71): undefined reference to `sqlite3_exec'
browser.cpp:(.text+0x1c7f): undefined reference to `sqlite3_close'
browser.cpp:(.text+0x1cde): undefined reference to `sqlite3_free'
boincmgr-browser.o: In function `detect_cookie_mozilla_v3(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
browser.cpp:(.text+0x20c6): undefined reference to `sqlite3_free'
browser.cpp:(.text+0x20d0): undefined reference to `sqlite3_close'
browser.cpp:(.text+0x2171): undefined reference to `sqlite3_open'
browser.cpp:(.text+0x21c6): undefined reference to `sqlite3_exec'
browser.cpp:(.text+0x21e3): undefined reference to `sqlite3_close'
browser.cpp:(.text+0x22f6): undefined reference to `sqlite3_close'
collect2: ld returned 1 exit status
make[2]: *** [boincmgr] Error 1
make[2]: Leaving directory `/home/jason/Downloads/Utilities/boinc_core_release_7_0_25/clientgui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jason/Downloads/Utilities/boinc_core_release_7_0_25'
make: *** [all] Error 2
ID: 43478 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 43479 - Posted: 14 Apr 2012, 4:20:20 UTC

http://boinc.berkeley.edu/trac/wiki/BuildSystem should be more up to date than http://www.pperry.f2s.com/boinc-compile.htm.

The aggressive cflags were introduced quite some time ago when benchmarking was integral to the credit system - this is no longer the case. CFLAGS="-march=native -O2 -pipe" should be enough.

Checking through configure.ac "--enable-optimize --enable-bitness=64" seem to be redundant, FWIW the gentoo configure options are "--disable-server --enable-client --enable-dynamic-client-linkage --disable-static --enable-unicode --with-ssl" (I think the last 2 may be gentoo specific relating to wxGTK and CURL)

Again FWIW the gentoo dependencies are openssl, curl with ssl support but not gnutls, util-linux, zlib, sqlite:3, freeglut, glibc:2.2, jpeg, gtk+:2, > libnotify 0.7, < wxGTK 2.8.11.0

I've already brought this thread to Rom's attention, hopefully he is able to offer some assistance.
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 43479 · Report as offensive
Jason Ash

Send message
Joined: 13 Apr 12
Posts: 5
United States
Message 43480 - Posted: 14 Apr 2012, 5:24:57 UTC - in response to Message 43479.  

I got it to compile, but now I'm getting a run-time error. Based on the info in your posts, I discovered that I need the following as dependencies to get the manager GUI to compile:

libqt4-opengl-dev
freeglut3-dev
libglui-dev
libwxgtk2.8-0
libsqlite3-dev
libsqlite0-dev

After sudo make install, I get the following terminal output:
jason@jason-desktop:~/Downloads/Utilities/boinc_core_release_7_0_25$ boincmgr
execvp(/home/jason/Downloads/Utilities/boinc_core_release_7_0_25/boinc, --redirectio, --launched_by_manager) failed with error 2!

Every few seconds or menu operations in boinc manager, the terminal repeats the above error. Furthermore, in the boinc manager GUI, I get the following error message when I try to attach to a project:

BOINC Manger- Unexpected Exit
The BOINC client has exited unexpectedly 3 times within the last 2 minutes. Would you like to restart it again?
Buttons for "Help", "No", "Yes"

The boinc manager doesn't actually crash, it just doesn't work because it never actually shows the attach to project dialog box. If you need me to post additional info, just let me know where to find or generate/save it (e.g. logs, compiler output, etc).
ID: 43480 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15490
Netherlands
Message 43481 - Posted: 14 Apr 2012, 6:07:05 UTC

I'm more of a Windows person, but you may want to check http://boinc.berkeley.edu/trac/wiki/CompileClient#Linux. Not sure if the Linux build commands are the same throughout the distros.
ID: 43481 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 43486 - Posted: 14 Apr 2012, 7:09:27 UTC - in response to Message 43480.  

I got it to compile, but now I'm getting a run-time error. Based on the info in your posts, I discovered that I need the following as dependencies to get the manager GUI to compile:

libqt4-opengl-dev
freeglut3-dev
libglui-dev
libwxgtk2.8-0
libsqlite3-dev
libsqlite0-dev

After sudo make install, I get the following terminal output:
jason@jason-desktop:~/Downloads/Utilities/boinc_core_release_7_0_25$ boincmgr
execvp(/home/jason/Downloads/Utilities/boinc_core_release_7_0_25/boinc, --redirectio, --launched_by_manager) failed with error 2!


The client and manager are independent - you can start the client from a terminal (or as a service) and then stop and start the manager independently as you please. Does this make any difference?
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 43486 · Report as offensive
Profile Trog Dog
Avatar

Send message
Joined: 6 May 06
Posts: 287
Australia
Message 43487 - Posted: 14 Apr 2012, 7:12:40 UTC - in response to Message 43481.  

I'm more of a Windows person, but you may want to check http://boinc.berkeley.edu/trac/wiki/CompileClient#Linux. Not sure if the Linux build commands are the same throughout the distros.


This was (or at least a prior version of it) was the page I was actually looking to link to (instead of http://boinc.berkeley.edu/trac/wiki/BuildSystem. Thanks Jord
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
ID: 43487 · Report as offensive
Jason Ash

Send message
Joined: 13 Apr 12
Posts: 5
United States
Message 43512 - Posted: 15 Apr 2012, 0:25:16 UTC - in response to Message 43487.  

Heck yeah! It finally worked. Thanks Trog Dog, Ageless, and Jord. I guess if I would have bothered to read the link at http://boinc.berkeley.edu/trac/wiki/CompileClient#Linux it would have really helped me. So, here's what I wound up doing:

./_autosetup
./configure --disable-server --enable-client CXXFLAGS="-march=native -O3 -funroll-loops -fforce-addr -ffast-math" --enable-dynamic-client-linkage --disable-static
make
cd packages/generic/sea/
make
cd BOINC/

I'll just copy the BOINC folder that it made and run it from that folder; forget about installing it.
ID: 43512 · Report as offensive

Message boards : Questions and problems : BOINC 7.0.25 Linux x86_64 can't find libnotify.so.4

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.