tokask
Posts: 2
Joined: Sat Nov 03, 2012 1:21 pm

I can't install Cherokee

Sat Nov 03, 2012 2:40 pm

Hi, last Raspberry board with 512Mb.
I've installed raspbian but I can not install Cherokee web server :
$ sudo apt-get install cherokee
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package cherokee is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'cherokee' has no installation candidate
Thanks

User avatar
Sander
Posts: 174
Joined: Wed Aug 31, 2011 1:01 pm

Re: I can't install Cherokee

Sat Nov 03, 2012 7:37 pm

Raspbian is based on Wheezy (isn't it?), and Wheezy does not contain Cherokee: http://packages.debian.org/search?suite ... s=cherokee

Could that be the explanation?

User avatar
Sander
Posts: 174
Joined: Wed Aug 31, 2011 1:01 pm

Re: I can't install Cherokee

Sun Nov 04, 2012 10:56 am

I've created a cherokee package for you. You can install it like this:

Code: Select all

wget http://www.appelboor.com/dump/cherokee_1.2.99b-1_armhf.deb
sudo dpkg -i cherokee*deb
sudo ldconfig
If you prefer to create it yourself, here's how:

Code: Select all

sudo apt-get install checkinstall

wget http://www.cherokee-project.com/download/trunk/cherokee-latest-snapshot.tar.gz
tar xvzf cherokee-latest-snapshot.tar.gz 
cd cherokee-1.2.99b/
./configure 
make
sudo make install
sudo ldconfig

sudo checkinstall -D 
ls -al *deb
That last command should should the .deb package:

Code: Select all

-rw-r--r-- 1 root root 9326098 Nov  4 10:08 cherokee_1.2.99b-1_armhf.deb
HTH

candyman1976
Posts: 1
Joined: Fri Jan 11, 2013 4:19 am

Re: I can't install Cherokee

Fri Jan 11, 2013 4:21 am

Thank you thank you thank you! This is exactly what I was looking for. I appreciate the extra details as well.

wdtaylor
Posts: 1
Joined: Fri Jan 18, 2013 3:12 am

Re: I can't install Cherokee

Fri Jan 18, 2013 3:14 am

How can I make cherokee start when system boots using this install method?

JozzaTheWick
Posts: 1
Joined: Sun Feb 24, 2013 5:53 pm

Re: I can't install Cherokee

Sun Feb 24, 2013 6:24 pm

First up, thanks to Sander for the help on Cherokee. I ended up having to build it myself since I'm using the soft-float ABI, so both sets of instructions were helpful.

Secondly, setting Cherokee to start at boot.

There is a start / stop script in the contrib source directory. (I installed from source, so I had the source directory already. Not sure what happens with Sander's .deb package, but you can always download the source package just to get the script.)

It needs to be copied into the appropriate directory & registered. This should be done with root privileges, so either change to the root user or use sudo before each command:

Code: Select all

cd <whereever you extracted the Cherokee source code>
cp contrib/cherokee /etc/init.d/
chmod 755 /etc/init.d/cherokee
update-rc.d /etc/init.d/cherokee defaults
The last command will give a warning about 'script cherokee missing LSB tags and overrides', which is due to a change in the way Debian handles dependency-based booting. I don't know enough about Debian to suggest how to tweak the script, and it still worked for me, so I would just ignore the warning :)

When you restart your Pi, you should see a message during the boot sequence about Cherokee starting up, and you'll be able to access your web server immediately!

Finally, here's a link on how to get to the Cherokee admin interface:

http://www.cherokee-project.com/doc/oth ... admin.html

I have a mainly headless setup, so I use

Code: Select all

sudo cherokee-admin -b
and then browse to http://<my PI IP address>:9090 to get to the admin site. This is not the most secure way, but it works for me. See the link for full details. Also note that cherokee-admin must be run as root.


References:
Link to the startup script (scroll down to 'Autostart'): http://www.cherokee-project.com/doc/bas ... _unix.html
LSB: http://wiki.debian.org/LSBInitScripts/D ... yBasedBoot

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 34 guests