| Arch This Forum is for the discussion of Arch Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-26-2013, 03:03 PM
|
#1
|
|
Member
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 712
Rep:
|
pacman -S command error
Hi all,
Never ever used Arch before, but have got myself a Raspberry Pi and needed a cut down OS to run on it. I've been installing packages on it without difficulty until I get to this part where I'm trying to install a library:
Code:
pacman -S libi2c-dev
which for some reason generates a 'target not found' error.
I've tried to no avail. Any idea where I'm going wrong here?
CC.
|
|
|
|
01-26-2013, 03:50 PM
|
#2
|
|
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,624
|
Yes - as it tells you, the package doesn't exist. (why did you think it did?)
Code:
$ pacman -Ss i2c
community/i2c-tools 3.1.0-3
Heterogeneous set of I2C tools for Linux that used to be part of lm-sensors
It could be in the package above, or you might have misspelt the name (or the package has been removed).
|
|
|
|
01-26-2013, 04:19 PM
|
#3
|
|
Member
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 712
Original Poster
Rep:
|
Quote:
Originally Posted by Snark1994
Yes - as it tells you, the package doesn't exist. (why did you think it did?
|
Thank you, Snark.
This page: https://projects.drogon.net/raspberr...i/i2c-library/ is supposed to be current and that's why I assumed the package to be available. Being totally unfamiliar with pacman, I thought perhaps I might have expected it to do something with libraries that it did not in fact do. Sorry for the crap explanation, but you get my drift (hopefully!)
|
|
|
|
01-27-2013, 06:43 AM
|
#4
|
|
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,624
|
Ah, I see - they are using the Ubuntu repositories (they use the command 'apt-get'). In general, it's the distro's job to name and add packages - so the same package might have different names using different package managers (apt-get, yum, pacman, etc.) or even not exist at all!
I would try installing i2c-tools, and see if that works the same as in Ubuntu. If not, then you may just have to switch to Ubuntu, or find the source code for whatever library Ubuntu have packaged.
Regards,
|
|
|
|
01-27-2013, 08:12 AM
|
#5
|
|
Member
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 712
Original Poster
Rep:
|
Quote:
Originally Posted by Snark1994
Ah, I see - they are using the Ubuntu repositories (they use the command 'apt-get'). In general, it's the distro's job to name and add packages - so the same package might have different names using different package managers (apt-get, yum, pacman, etc.) or even not exist at all!
I would try installing i2c-tools, and see if that works the same as in Ubuntu. If not, then you may just have to switch to Ubuntu, or find the source code for whatever library Ubuntu have packaged.
Regards,
|
Oh. I was under the impression that one merely substituted the name of the appropriate packet manager and its associated options when installing software on a different distro. What a blasted nuisance!
|
|
|
|
01-28-2013, 03:21 AM
|
#6
|
|
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,624
|
Sorry, sadly not. However, you've made a good choice with Arch - I've never before found a package that I wanted that wasn't in either the main repositories or the AUR, and the software they have is much more up-to-date than in Ubuntu (and, dare I say it, stable, despite Arch being a rolling release).
Having said that, look here: http://www.raspberrypi.org/phpBB3/vi...29953&p=262230
It gives you instructions on how to get the git version of the package i2c-tools, which does contain the header you're looking for. However, the package itself has been updated since the discussion in which they said it was out of date, so I would seriously recommend trying to install i2c-tools first and seeing if that solves your problem.
|
|
|
1 members found this post helpful.
|
01-28-2013, 05:46 PM
|
#7
|
|
Member
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 712
Original Poster
Rep:
|
Quote:
Originally Posted by Snark1994
....I would seriously recommend trying to install i2c-tools first and seeing if that solves your problem.
|
Yes, it has, thanks. All sorted.
Now I just need to find out which revision this Pi board is....
|
|
|
|
01-28-2013, 07:00 PM
|
#8
|
|
Member
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 689
Rep: 
|
|
|
|
|
01-29-2013, 03:48 AM
|
#9
|
|
Senior Member
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,624
|
Quote:
Originally Posted by Completely Clueless
Yes, it has, thanks. All sorted.
Now I just need to find out which revision this Pi board is....
|
Glad to hear it - could you mark the thread as 'SOLVED' please?
Regarding the revision, http://www.raspberrypi.org/phpBB3/vi...p?f=31&t=20594 seems to be of help.
Regards,
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:46 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|