Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-14-2011, 02:51 PM   #1
LQ Newbie
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
Question how to install or add avr library on suse

hi try to compile code where start line is

#include <avr/io.h>
#include <util/delay.h>
#define DS_PIN 0

and it gives me
fatal error: avr/io.h: No such file or directory
compilation terminated.

so i need avr/io.h library so please help how to add libraries in opensuse
Old 01-14-2011, 03:06 PM   #2
Registered: Dec 2010
Posts: 277

Rep: Reputation: 24

Here is the official AVR libc homepage ::

You can download the tarball or binaries there. And compile the library yourself...

Or with OpenSUSE you open run, ALT-F2, and type yast. Then you can search for avr. It seems the only package in the official repository is avrdude, and my guess is it will also load the avrlibc as I assume avrdude would have an avrlibc dependency, and so load avrlibc, but I don't know.

Or you can look for a build of avr-libc ::
$ yast -i /dir/to/file.rpm
...or try
$ yast -i avr
$ zypper se avr
| avr-libc           | The C Runtime Library for AVR Microcontroll-> | package
| avrdude            | Upload tool for AVR microcontrollers          | package
| cross-avr-binutils | GNU Binutils                                  | package
| cross-avr-gcc      | The GNU C Compiler and Support Files          | package
| cross-avr-gcc44    | The GNU C Compiler and Support Files          | package
You may also need the cross-avr-binutils, and cross-avr-gcc

Last edited by cin_; 01-14-2011 at 03:12 PM.


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
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 09:00 PM
MPlayer install problem (Suse 10)- library conflict fjd Linux - General 11 09-18-2006 10:31 PM
Can I install SUSE 10.0 CD1 and add CD2-CD5 later? augu2000 SUSE / openSUSE 3 10-24-2005 12:36 PM
How do I add library path? scc28y Linux - Newbie 5 03-18-2005 10:56 PM
I want to add UMFPACK Library aranfitz Programming 1 01-07-2005 08:18 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 PM.

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