DanyalC1995
Posts: 2
Joined: Wed May 22, 2013 1:31 pm

Problem with Raspberry Pi Camera

Wed May 22, 2013 1:58 pm

I am having a problem with my camera or so the commands. When I type in raspistill -o image.jpg I get -bash: raspistill: command not found. I have updated wheezy and enabled the camera also.

Heater
Posts: 13873
Joined: Tue Jul 17, 2012 3:02 pm

Re: Problem with Raspberry Pi Camera

Wed May 22, 2013 2:22 pm

Odd, I just did an "apt-get update" and "apt-get upgrade" on my raspian which had not been updated for the last half a year. For sure I now have the raspistill command available. And raspivid. Only problem is I don't have a camera:(
Memory in C++ is a leaky abstraction .

User avatar
leol
Posts: 147
Joined: Fri Jan 13, 2012 4:27 pm
Location: Haute-Vienne, France

Re: Problem with Raspberry Pi Camera

Wed May 22, 2013 4:27 pm

is raspistill in /opt/vc/bin?
is raspistill in /usr/bin ?
if so, is it a link to /opt/vc/bin/raspistill?
Does your PATH include /usr/bin?

DanyalC1995
Posts: 2
Joined: Wed May 22, 2013 1:31 pm

Re: Problem with Raspberry Pi Camera

Wed May 22, 2013 6:07 pm

I cannot find that raspistill in any of those dircetories

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24129
Joined: Sat Jul 30, 2011 7:41 pm

Re: Problem with Raspberry Pi Camera

Wed May 22, 2013 6:25 pm

DanyalC1995 wrote:I cannot find that raspistill in any of those dircetories
Then your update/upgrade has failed in some way. Try them again.

sudo apt-get update
sudo apt-get upgrade
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Problem with Raspberry Pi Camera

Sun May 26, 2013 10:23 am

leol wrote:is raspistill in /opt/vc/bin?
is raspistill in /usr/bin ?
if so, is it a link to /opt/vc/bin/raspistill?
Does your PATH include /usr/bin?
I have a question about PATH as I have a new image whereby I must use /opt/vc/bin/raspistill instead of just raspistill, ie my PATH does not include /opt/vc/bin
What is the best method to change this to either just user pi, or all users?
Thanks,
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Problem with Raspberry Pi Camera

Sun May 26, 2013 10:58 am

To answer my own question :

Code: Select all

[email protected] ~ $ echo 'export PATH=$PATH:/opt/vc/bin' >> ~/.bashrc
and a reboot will add the path and make it permanent. The example above will only modify the PATH for user pi - log in as root (or whoever) and repeat as neccessary.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “General discussion”