Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Ohjelmointi, palvelimet ja muu edistyneempi käyttö => Aiheen aloitti: muikku_muikku - 03.04.10 - klo:16.52
-
Yritän saada LDAP-palvelimen toimimaan 9.04 Ubuntussa. Latasin 2.4.21 stable United States mirrorin täältä: openldap.org/software/download. Laitoin sen etc-kansioon. Latasin Berkeley tietokannan 4.7.25 usr/local-kansioon täältä:http://www.oracle.com/technology/software/products/berkeley-db/index.html.
./configure ilmoittaa:
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
configure: error: BDB/HDB: BerkeleyDB not available
Kokeilin seuraavaa:
CPPFLAGS="-I/usr/local/BerkeleyDB.4.7/include"
export CPPFLAGS
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.7/lib -R/usr/local/BerkeleyDB.4.7/lib"
export LDFLAGS
LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.7/lib"
export LD_LIBRARY_PATH
tästä seurasi joku c compiler error.
Kirjoitin
CPPFLAGS="-I/usr/local/include"
export CPPFLAGS
LDFLAGS="-L/usr/local/lib"
export LDFLAGS
ja pääsin taas takaisin BDB/HDB: BerkeleyDB not available-ilmoitukseen.
Sitten kokeilin
apt-get update
apt-get install build-essential
tämä ei muuttanut mitään.
db.h pitäisi kai saada tällä komennolla:
sudo apt-get install libdb4.7-dev
mutta sitä ei löydy:
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu
Luetaan tilatiedot... Valmis
E: Pakettia libdb4.7-dev ei löytynyt
Miten voisin edetä tässä että saisin ldapin asennettua? Kokeilin eri versioita tuosta tietokannasta, mutta samat virheilmoitukset tulee.
-
Miksi et käytä Ubuntun arkistosta löytyvää valmiiksi käännettyä OpenLDAP-pakettia?
sudo apt-get update
sudo apt-get install slapd
En nyt muista mikä versio OpenLDAP:sta tulee Ubuntu 9.04-version mukana. Pahimmassa tapauksessa se on 2.2, mutta muistaakseni tuossa ei peruskäytössä ole mitään kauhean suurta eroa 2.4-versioon.
-
Mielellään käyttäisin, mutta sitä ei löydy
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu
Luetaan tilatiedot... Valmis
E: Pakettia slapd ei löytynyt
???
-
Todella outoa. Minulla pari 9.10 -konetta käsillä (Destop ja server) ja molempiin löytyy paketti slapd. Tässä on yksi howto 9.04-versiota varten, ja senkään mukaan ei tässä pitäisi olla mitään ihmeellistä: http://www.howtoforge.com/install-and-configure-openldap-on-ubuntu-karmic-koala.
Tarkista siis onko sinulla pakettivarastojen konfiksessa mitään outoa (/etc/apt/sources.list). Onko "universe" arkisto käytössä (joskin luulen että slapd on ihan main-arkistossa). Entäs mitä ilmoituksia antaa komento "apt-get update" tai "apt-cache search openldap".
-
sources.list näyttää tältä, otin kommentit pois kahdelta riviltä (universe)
# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://fi.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner
Nuo komennot antaa tällaisia ilmoituksia:
apt-get update
Löytyi http://fi.archive.ubuntu.com jaunty-backports Release.gpg
Siv http://fi.archive.ubuntu.com jaunty-backports/main Translation-fi
Siv http://fi.archive.ubuntu.com jaunty-backports/restricted Translation-fi
Siv http://fi.archive.ubuntu.com jaunty-backports/universe Translation-fi
Siv http://fi.archive.ubuntu.com jaunty-backports/multiverse Translation-fi
Löytyi http://fi.archive.ubuntu.com jaunty-backports Release
Löytyi http://fi.archive.ubuntu.com jaunty-backports/main Packages
Löytyi http://fi.archive.ubuntu.com jaunty-backports/restricted Packages
Löytyi http://fi.archive.ubuntu.com jaunty-backports/universe Packages
Löytyi http://fi.archive.ubuntu.com jaunty-backports/multiverse Packages
Löytyi http://fi.archive.ubuntu.com jaunty-backports/main Sources
Löytyi http://fi.archive.ubuntu.com jaunty-backports/restricted Sources
Löytyi http://fi.archive.ubuntu.com jaunty-backports/universe Sources
Löytyi http://fi.archive.ubuntu.com jaunty-backports/multiverse Sources
Luetaan pakettiluetteloita... Valmis
apt-cache search openldap
libldap-2.4-2 - OpenLDAP libraries
-
Tuossa sources.lst -tiedostossa on jotain mätää. Siitä puuttuu ainakin "main" -arkisto. Tässä malliksi sources.lst -tiedosto minun koneestani (9.10). Tuon perusteella voit (omalla vastuulla) täydentää sources.lst -tiedstoa. Kunhan vaan vaihdat "karmic" -> "jauntu", niin pitäisi toimia 9.04-versiossa. Varmempaa on tietysti vaikka bootata kone 9.04 live-CD:llä ja tarkistaa millainen tuo tiedosto on siellä.
# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fi.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://fi.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fi.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic universe
deb http://fi.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fi.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://fi.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://fi.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://fi.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner
deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
-
Tämä generaattori on aika hyvä: http://repogen.simplylinux.ch/
Sieltä saa Jauntylle suomi-repot esim. alla oleva lista:
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://fi.archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
###### Ubuntu Update Repos
deb http://fi.archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb http://fi.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu jaunty partner
Ja tämäkin omalla vastuulla.
-
Kiitos, sain slapd-paketin noudettua kun lisäsin nuo main-rivit sources.listiin ;D