LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 01-26-2013, 03:03 PM   #1
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Rep: Reputation: 70
Question 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
Code:
pacman -Syyu
to no avail. Any idea where I'm going wrong here?

CC.
 
Old 01-26-2013, 03:50 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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).
 
Old 01-26-2013, 04:19 PM   #3
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Quote:
Originally Posted by Snark1994 View Post
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!)
 
Old 01-27-2013, 06:43 AM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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,
 
Old 01-27-2013, 08:12 AM   #5
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Angry

Quote:
Originally Posted by Snark1994 View Post
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!
 
Old 01-28-2013, 03:21 AM   #6
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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.
Old 01-28-2013, 05:46 PM   #7
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Wink

Quote:
Originally Posted by Snark1994 View Post
....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....
 
Old 01-28-2013, 07:00 PM   #8
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
https://wiki.archlinux.org/index.php/Pacman_Rosetta

This page may help in you use of Arch.
 
Old 01-29-2013, 03:48 AM   #9
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by Completely Clueless View Post
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,
 
  


Reply



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
Why do we need pacman-key if pacman checks md5? Mr. Alex Arch 5 03-09-2012 05:05 PM
Anyone else 'pacman -Sy' instead of simply 'pacman -S'-ing packages? Kenny_Strawn Arch 15 03-23-2011 01:09 PM
[SOLVED] pacman database error MTK358 Arch 2 11-30-2010 09:22 AM
pacman Syu error..... anti.corp Arch 6 02-21-2006 01:33 PM
pacman error sharky Arch 3 11-08-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration