1 Инструкция по настройке Samba в качестве контроллера домена, совместимого с Active Directory
1.6 Шаг 2: Компиляция Samba
1.6 Шаг 2: Компиляция Samba
To build Samba, run the following command in your samba-master directory:
Запустите в вашей директории samba-master
следующую команду для сборки Samba: Eng.
$ cd samba-master $ ./configure --enable-debug --enable-selftest $ make
The above command will setup Samba to install in /usr/local/samba. If you want Samba to install in a different directory, then you should use the —prefix option to configure.
По умолчанию Samba устанавливается в директорию /usr/local/samba
. Для изменения пути для установки используйте ключ --prefix
в команде configure
. Eng.
The reason we recommend using --enable-debug --enable-selftest
for Samba is that it will include extra debug information that will help us diagnose problems in case of failures, and will also allow you to run our selftest make test
to validate that Samba can behave correctly on your platform. Both of these are however, entirely optional.
Мы рекомендуем дополнительно использовать ключи --enable-debug --enable-selftest
в команде configure
. Вы сможете получить больше информации при диагностике возникающих ощибок в работе программы. А также сможете запустить команду самотестирования make test
, для проверки корректности работы Samba На вашей платформе. Обратите внимание что два последних ключа использовать не обязательно. Eng.
Сборка с google-perftools
If you want to enable profiling support, change the configure command above to the following:
Для включения поддержки профилей, измените команду configure на следующую: Eng.
$ LDFLAGS="-ltcmalloc -lprofiler" ./configure.developer
(This also works for CFLAGS)
(Это также сработает для CFLAGS) Eng.
Ваш отзыв