Wrażenia z używania DebianaŚciąganie pakietów potrzebnych do kompilacji ze źródeł: apt-get build-dep nazwa_pakietu Ściąganie i kompilacja:apt-get source --compile nazwa_pakietu W Debianie kwestia instalacji pakietów binarnych została rozwiązana w sposób chyba ostateczny. Nieco trudniej skompilować pakiet źródłowy z własnymi flagami kompilatora. Nie ma (?) żadnego pliku konfiguracyjnego w którym można by zapisać takie flagi. Jedyny sposób to ustawienie zmiennych środowiskowych CFLAGS dla gcc i CXXFLAGS dla g++ i wyeksportowanie. Na razie (po skompilowaniu 6 pakietów)
działało za każdym razem bez błędów. Chociaż nie zawsze te flagi są uwzględniane i wtedy
trzeba już grzebać się w konfiguracji pakietu. Np. gimpowi
potrzebna jest zmienna Z maila Matijsa van Zuijlena: “Put both testing and unstable in “Depending on how your APT sources and APT preferences is set, and how you specify the installation command, that situation can occur
E.g. if you install a package and it exists in testing but the libraries it depends on exist in stable but the package depends on versions from stable, and you have set stable to a higher priority than testing, then you cannot just install it by e.g. apt-get install somepackagename, in that case you'll have to set the target to testing so that it takes the dependencies from testing also, e.g. with apt-get install somepackagename -t testing
Depending on exactly how you have configured APT to behave, these situations aren't uncommon. But to avoid this kind of issue, have apt sources for the version you want to run primarily, and have your APT preferences set to highest priority for that one as well.
Example: I run Debian testing ('etch') primarily but also have APT sources present for the others
Relevant portion from my /etc/apt/sources.list:
Code:
Wydruk wszystkich aktualnych pakietów:dpkg -l ,,Aby stworzyć kopię lokalnie wybranych pakietów:'' dpkg --get-selections > mojepakiety Ten plik można przenieść do innego systemu i zainstalować te pakiety poprzez: dpkg --set-selections < mojepakiety | |