LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-04-2012, 09:40 PM   #1
lghizoni
Member
 
Registered: Dec 2011
Location: Brazil
Distribution: Ubuntu
Posts: 94

Rep: Reputation: Disabled
Problem installing Bumblebee-3.0 on Mageia 2


Hello,

I'm trying to install Bumblebee from source on Mageia 2. I've already installed all the dependencies, untar the source tarball from: https://github.com/Bumblebee-Project...ebee/downloads

I ran './configure' and all went fine. But when I run 'make' I get the errors:


/home/lghizoni/Downloads/bumblebee-3.0/src/bumblebeed.c:468: undefined reference to `pidfile_write'
/home/lghizoni/Downloads/bumblebee-3.0/src/bumblebeed.c:486: undefined reference to `pidfile_remove'
/home/lghizoni/Downloads/bumblebee-3.0/src/bumblebeed.c:427: undefined reference to `pidfile_open'
/home/lghizoni/Downloads/bumblebee-3.0/src/bumblebeed.c:460: undefined reference to `pidfile_remove'
collect2: ld returned 1 exit status
make: *** [bin/bumblebeed] Error 1

I don't know how to correct this...

Can anyone help me?

Thanks a lot!
 
Old 07-05-2012, 03:14 PM   #2
paziulek
Member
 
Registered: Mar 2009
Location: N.C.
Distribution: "gentoo|debian|arch"
Posts: 77

Rep: Reputation: 11
pidfile_write and the rest of the listed functions are part of libbsd.
the configure script looks for libbsd >= 0.2.0 ( minimal version )
you probably have libbsd 0.3.0 which is still causing this problems on some systems .
I would suggest you to

1> get rid of current version of libbsd you got ( probably 0.3.0 - make sure you can get it reinstalled if needed )
2> download/compile and install ( sudo of course ) the 0.2.0 version of libbsd from here:
http://repository.timesys.com/builds.../libbsd-0.2.0/

make sure you do:
sudo make install
and than
sudo ldconfig

than make clean on bumblebee src tree, and try again,

good luck

ps: if you cannot uninstall libbsd in step 1
locate these files in /usr/lib || /usr/lib64 and rename them: ( some of them are symbolic links )

libbsd.a
libbsd.so
libbsd.so.0
libbsd.so.0.3.0

if you have other than 0.3.0 version just look for libbsd* in the /usr/lib

Last edited by paziulek; 07-05-2012 at 07:29 PM. Reason: test
 
Old 07-05-2012, 03:50 PM   #3
lghizoni
Member
 
Registered: Dec 2011
Location: Brazil
Distribution: Ubuntu
Posts: 94

Original Poster
Rep: Reputation: Disabled
Thank you for your attention!

I installed it, but now when I run './configure' in bumblebee/ I get:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for help2man... /usr/bin/help2man
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x11... yes
checking for glib... yes
checking for libbsd... no
configure: error: Package requirements (libbsd >= 0.2.0) were not met:

No package 'libbsd' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libbsd_CFLAGS
and libbsd_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

It's like libbsd isn't installed! So I ran 'export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig', and then worked.

So I ran 'make' and 'make install', which worked fine too. The next step was to add myself to bumblebee, like:

# groupadd bumblebee
# usermod -a -G bumblebee $USER

which was ok. Then I re-login and ran '# bumblebeed --daemon', but now I get the message: 'FATAL: Module bbswitch not found.'

But I did install bbswitch! I don't know what's wrong...

Thanks.
 
Old 07-05-2012, 05:01 PM   #4
paziulek
Member
 
Registered: Mar 2009
Location: N.C.
Distribution: "gentoo|debian|arch"
Posts: 77

Rep: Reputation: 11
did you insmod / modprobe the bbswitch kernel module?
 
Old 07-05-2012, 05:03 PM   #5
lghizoni
Member
 
Registered: Dec 2011
Location: Brazil
Distribution: Ubuntu
Posts: 94

Original Poster
Rep: Reputation: Disabled
Could you explain it easier? I didn't understand...sorry
 
Old 07-05-2012, 07:28 PM   #6
paziulek
Member
 
Registered: Mar 2009
Location: N.C.
Distribution: "gentoo|debian|arch"
Posts: 77

Rep: Reputation: 11
https://github.com/Bumblebee-Project/bbswitch/
 
Old 07-06-2012, 04:08 PM   #7
lghizoni
Member
 
Registered: Dec 2011
Location: Brazil
Distribution: Ubuntu
Posts: 94

Original Poster
Rep: Reputation: Disabled
Hello paziulek!!

It works now!! Thank you very much for your attention.

Best regards.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bumblebee in Mageia 2 lghizoni Mageia 4 07-18-2012 08:17 AM
[SOLVED] Can't Boot Mageia 2 after Upgrading from Mageia 1 gdawg Mageia 3 06-24-2012 11:20 AM
Problem Nvidia Optimus Technology linux Support (bumblebee apps) jao_madn Linux - Laptop and Netbook 4 05-27-2012 07:26 AM
LXer: Open Source: Mageia 1 to Mageia 2 Upgrade LXer Syndicated Linux News 0 05-22-2012 05:30 PM
[SOLVED] Grub error 17 after installing Mageia nigelc Mandriva 2 08-29-2011 01:29 AM


All times are GMT -5. The time now is 10:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration