LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 04-18-2008, 01:16 AM   #1
spaceageliving
Member
 
Registered: Aug 2007
Distribution: CentOS
Posts: 48
Thanked: 1
How to get netatalk installed on CentOS 5.1?


[Log in to get rid of this advertisement]
I'm working on a new, freshly installed CentOS 5.1 system. Yum isn't showing any netatalk package available. What is the recommended way to get netatalk working on CentOS 5.1?
spaceageliving is offline  
Tag This Post ,
Reply With Quote
Old 04-18-2008, 07:29 PM   #2
spaceageliving
Member
 
Registered: Aug 2007
Distribution: CentOS
Posts: 48
Thanked: 1

Original Poster
Required steps

OK, here's how I did it for all future Apple lovers:

1) You will need the CentOS Plus kernel, which has AppleTalk enabled. If you just want to run the AFP daemon over TCP only, I'm not sure if you need to do this...

You can enable the CentOS Plus repo in your /etc/repos.d/*-Base file. Upgrading the kernel can be done with a #yum update kernel.i386 and rebooting

2) You need to install gcc latest, glibc latest, db4 and db4 headers ('db4-devel' ?), probably some other stuff depending on your config...

3) netatalk 2.0.3 doesn't play nice with latest db4 due to a minor change in the db4 api. See here for two patches to make to the netatalk source:

http://forum.java.sun.com/thread.jsp...sageID=9834728

(its a solaris thread, but the two changes worked like a champ for me...)

4) use ./configure -enable-redhat

This will get you a shiny new startup script in /etc/init.d that seems to work fine on CentOS 5.1

5) make/make install and you're ready to go...follow docs for configuration info.
spaceageliving is offline  
Tag This Post , , ,
Reply With Quote
Old 04-19-2008, 10:07 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 3,599
Blog Entries: 9
Thanked: 45
  • A belated welcome to LQ.
  • Cool -- you found your own solution.
  • Better -- you posted it for the benefit of others.
    Thank you.
archtoad6 is offline     Reply With Quote
Old 06-05-2009, 06:33 PM   #4
cosmicmonkey
LQ Newbie
 
Registered: Jun 2009
Posts: 1
Thanked: 0
Netatalk 2.04

The edit to source for db4 compatibility is no longer necessary. This is a great howto and got me going on Centos 5.3
cosmicmonkey is offline     Reply With Quote
Old 07-30-2009, 06:07 AM   #5
r00tb00t
LQ Newbie
 
Registered: Jul 2008
Location: Narrrrrrrrrfolk!
Distribution: CentOS, Debian
Posts: 8
Thanked: 0
Just my two pence;

I found it easier to just download and compile the source as trying to rebuild the rpm's was giving me a few errors which are above my n00by sk1llZ;

Code:
# Download Berkeley DB source (most up2date at time or writting)
wget http://download.oracle.com/berkeley-db/db-4.7.25.NC.zip

# Download Netatalk source (most up2date at time or writting)
wget http://downloads.sourceforge.net/pro...se_mirror=kent

# unpkack BerkeleyDB
unzip -d db-4.7.25.NC

# Change to the unpacked source dir
cd db-4.7.25.NC/build_unix

# Install some pre-reqs (you may not need these?) these are for both BerkeleyDB and netatalk
sudo yum install cracklib2 openssl.x86_64 libssl-dev

# and compile and install the BerkeleyDB
../dist/configure
make
sudo make install

# go up directories and unpack netatalk
cd ../../
gunzip -d netatalk-2.0.4.tar.gz
tar -xf netatalk-2.0.4.tar
cd netatalk-2.0.4

# compile with the red hat options and then install
./compile --enable-redhat
make
sudo make install

# all done!

Last edited by r00tb00t; 07-30-2009 at 06:37 AM..
r00tb00t is offline     Reply With Quote
Old 09-21-2009, 12:09 PM   #6
ptmixer
LQ Newbie
 
Registered: Sep 2009
Posts: 1
Thanked: 0
Quote:
Code:
# Download Berkeley DB source (most up2date at time or writting)
/db-4.7.25.NC.zip

# Download Netatalk source (most up2date at time or writting)
/2.0.4/netatalk-2.0.4.tar.gz?use_mirror=kent

# unpkack BerkeleyDB
unzip -d db-4.7.25.NC

# Change to the unpacked source dir
cd db-4.7.25.NC/build_unix

# Install some pre-reqs (you may not need these?) these are for both BerkeleyDB and netatalk
sudo yum install cracklib2 openssl.x86_64 libssl-dev

# and compile and install the BerkeleyDB
../dist/configure
make
sudo make install

# go up directories and unpack netatalk
cd ../../
gunzip -d netatalk-2.0.4.tar.gz
tar -xf netatalk-2.0.4.tar
cd netatalk-2.0.4

# compile with the red hat options and then install
./compile --enable-redhat
make
sudo make install

# all done!
Hello - I tried to get this going on Centos 5.3, 64-bit. I basically followed r00tb00t's instructions, not exactly, but I did fail. Can anyone help?

What I did: used latest version of BerkeleyDB from Oracle, which was 4.8.24.NC and latest Netatalk, 2.0.4. Following the guide from the Netatalk site, I configured bdb:

Code:
# ../dist/configure --prefix=/usr/bdb --disable-shared --with-mutex=x86_64/gcc-assembly
That completed without error. Then I configured Netatalk:

Code:
# ./configure --enable-redhat --with-bdb=/usr/bdb
which produced the error below.

Code:
checking for Berkeley DB headers in /usr/bdb/include/... yes
checking /usr/bdb/include//db.h version >= 4.1.0... yes
checking Berkeley DB library (-ldb48)... no
checking Berkeley DB library (-ldb4.8)... no
checking Berkeley DB library (-ldb-48)... no
checking Berkeley DB library (-ldb-4.8)... no
checking for Berkeley DB headers in /usr/bdb/include/db4.7... no
checking for Berkeley DB headers in /usr/bdb/include/db47... no
checking for Berkeley DB headers in /usr/bdb/include/db4.6... no
checking for Berkeley DB headers in /usr/bdb/include/db46... no
checking for Berkeley DB headers in /usr/bdb/include/db4.5... no
checking for Berkeley DB headers in /usr/bdb/include/db45... no
checking for Berkeley DB headers in /usr/bdb/include/db4.4... no
checking for Berkeley DB headers in /usr/bdb/include/db44... no
checking for Berkeley DB headers in /usr/bdb/include/db4.3... no
checking for Berkeley DB headers in /usr/bdb/include/db43... no
checking for Berkeley DB headers in /usr/bdb/include/db4.2... no
checking for Berkeley DB headers in /usr/bdb/include/db42... no
checking for Berkeley DB headers in /usr/bdb/include/db4.1... no
checking for Berkeley DB headers in /usr/bdb/include/db41... no
checking for Berkeley DB headers in /usr/bdb/include/db4... no

Make sure you have the required Berkeley DB libraries AND headers installed.
You can download the latest version from -sleepycat
If you have installed BDB in a non standard location use the
--with-bdb=/path/to/bdb configure option and make sure
your linker is configured to check for libraries there.
configure: error: Berkeley DB library required but not found!
I feel it is close to working, or at least close to throwing up some even more problematic errors.. When I go to /usr/bdb/include this is what's there:

Code:
db_cxx.h  db.h
If I look in /use/bdb/lib there is:

Code:
libdb-4.8.a  libdb.a
Perhaps those clues are enough for someone more experienced than me to pick out the problem and suggest a solution!

Oh, I do have openssl.x86_64 installed, but my stock YUM would not let me get cracklib2 or libssl-dev.

Thank you.
macos ptmixer is offline  
Tag This Post , ,
Reply With Quote

Reply

Bookmarks


Thread Tools

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
installed centos 5 sivaraman Linux - Newbie 1 03-03-2008 03:26 AM
I installed webmin with usermin on centos 5 JACOBKELL Linux - Server 6 01-10-2008 04:40 PM
Samba installed on centos or not? Heba Ezzat Red Hat 8 02-12-2007 09:53 AM
Just Installed centOS and startx gets error Darrelzz Linux - Newbie 1 08-04-2006 10:47 AM
Installed CentOS, but cant resolve DNS abcampa Red Hat 1 04-27-2005 12:10 PM


All times are GMT -5. The time now is 11:03 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration