Страница 1 из 1

параметры make для 2х ядер

Добавлено: 2012-05-27 11:03:42
QweЯty
какие параметры и куда указать нужно?

попалсо тут экземпляр с 2мя ядрами и 8ми гигами оперативы.. впервые у меня стока оперы и процов в системе :)
пока поставил х64 8.2

и кстати, а будут работать 32-битные проги?

Re: параметры make для 2х ядер

Добавлено: 2012-05-27 11:14:18
ChihPih
make -jN, где N - кол-во потоков

Re: параметры make для 2х ядер

Добавлено: 2012-05-27 13:44:28
QweЯty

Код: Выделить всё

lin# cd /usr/ports/databases/mysql51-server/
line# make -j2 install clean
===>  Cleaning for mysql-server-5.1.63
===> Creating users and/or groups.
cannot create /usr/ports/databases/mysql51-server/work/.PLIST.mktmp: No such file or directory
*** Error code 2
1 error
line# make install clean
===>  License check disabled, port has not defined LICENSE

You may use the following build options:

        WITH_CHARSET=charset    Define the primary built-in charset (latin1).
        WITH_XCHARSET=list      Define other built-in charsets (may be 'all').
        WITH_COLLATION=collate  Define default collation (latin1_swedish_ci).
        WITH_OPENSSL=yes        Enable secure connections
                                (define WITHOUT_YASSL for backward compatibility).
        WITH_LINUXTHREADS=yes   Use the linuxthreads pthread library.
        WITH_PROC_SCOPE_PTH=yes Use process scope threads
                                (try it if you use libpthread).
        WITH_FAST_MUTEXES=yes   Replace mutexes with spinlocks.
        BUILD_OPTIMIZED=yes     Enable compiler optimizations
                                (use it if you need speed).
        BUILD_STATIC=yes        Build a static version of mysqld.
                                (use it if you need even more speed).
        WITH_NDB=yes            Enable support for NDB Cluster.

=> mysql-5.1.63.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch ftp://ftp.fi.muni.cz/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.63.tar.gz
mysql-5.1.63.tar.gz                            30% of   23 MB 2952 kBps^C
fetch: transfer interrupted

ээ... в чем дело?

Код: Выделить всё

line# make -j2 && make install && make clean
===>  License check disabled, port has not defined LICENSE
You may use the following build options:

WITH_CHARSET=charset    Define the primary built-in charset (latin1).
WITH_XCHARSET=list      Define other built-in charsets (may be 'all').
WITH_COLLATION=collate  Define default collation (latin1_swedish_ci).
WITH_OPENSSL=yes        Enable secure connections
(define WITHOUT_YASSL for backward compatibility).
WITH_LINUXTHREADS=yes   Use the linuxthreads pthread library.
        WITH_PROC_SCOPE_PTH=yes Use process scope threads
(try it if you use libpthread).
WITH_FAST_MUTEXES=yes   Replace mutexes with spinlocks.
BUILD_OPTIMIZED=yes     Enable compiler optimizations
(use it if you need speed).
BUILD_STATIC=yes        Build a static version of mysqld.
(use it if you need even more speed).
WITH_NDB=yes            Enable support for NDB Cluster.
===>  Extracting for mysql-server-5.1.63
=> SHA256 Checksum mismatch for mysql-5.1.63.tar.gz.
===>  Refetch for 1 more times files: mysql-5.1.63.tar.gz
===>  License check disabled, port has not defined LICENSE
You may use the following build options:
WITH_CHARSET=charset    Define the primary built-in charset (latin1).
WITH_XCHARSET=list      Define other built-in charsets (may be 'all').
WITH_COLLATION=collate  Define default collation (latin1_swedish_ci).
WITH_OPENSSL=yes        Enable secure connections
(define WITHOUT_YASSL for backward compatibility).
WITH_LINUXTHREADS=yes   Use the linuxthreads pthread library.
WITH_PROC_SCOPE_PTH=yes Use process scope threads
(try it if you use libpthread).
WITH_FAST_MUTEXES=yes   Replace mutexes with spinlocks.
BUILD_OPTIMIZED=yes     Enable compiler optimizations
(use it if you need speed).
BUILD_STATIC=yes        Build a static version of mysqld.
(use it if you need even more speed).
WITH_NDB=yes            Enable support for NDB Cluster.
=> mysql-5.1.63.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch ftp://ftp.fi.muni.cz/pub/mysql/Downloads/MySQL-5.1/mysql-                                             5.1.63.tar.gz
mysql-5.1.63.tar.gz                                     23 MB 2924 kBps
===>  License check disabled, port has not defined LICENSE
You may use the following build options:
        WITH_CHARSET=charset    Define the primary built-in charset (latin1).
WITH_XCHARSET=list      Define other built-in charsets (may be 'all').
WITH_COLLATION=collate  Define default collation (latin1_swedish_ci).
WITH_OPENSSL=yes        Enable secure connections
(define WITHOUT_YASSL for backward compatibility).
WITH_LINUXTHREADS=yes   Use the linuxthreads pthread library.
WITH_PROC_SCOPE_PTH=yes Use process scope threads
                                (try it if you use libpthread).
WITH_FAST_MUTEXES=yes   Replace mutexes with spinlocks.
BUILD_OPTIMIZED=yes     Enable compiler optimizations
(use it if you need speed).
BUILD_STATIC=yes        Build a static version of mysqld.
(use it if you need even more speed).
WITH_NDB=yes            Enable support for NDB Cluster.
=> SHA256 Checksum OK for mysql-5.1.63.tar.gz.
===>  Patching for mysql-server-5.1.63
===>  Applying FreeBSD patches for mysql-server-5.1.63
===>   mysql-server-5.1.63 depends on shared library: mysqlclient.16 - not found
===>    Verifying install for mysqlclient.16 in /usr/ports/databases/mysql51-cli                                             ent
cd: can't cd to /usr/ports/databases/mysql51-client/work/mysql-5.1.63
*** Error code 2
1 error
*** Error code 2
1 error

Re: параметры make для 2х ядер

Добавлено: 2012-05-27 13:48:42
GhOsT_MZ

Код: Выделить всё

mysql-5.1.63.tar.gz                            30% of   23 MB 2952 kBps^C
В конце ^C, Ctrl+C кто-то нажал, вот и прервалась загрузка

Re: параметры make для 2х ядер

Добавлено: 2012-05-27 13:52:33
QweЯty

Код: Выделить всё

line# make install clean
оно скомпилилось только при таком...
при -j2 нивкакую, но докачало все.

Re: параметры make для 2х ядер

Добавлено: 2012-05-27 15:35:50
GhOsT_MZ
Ну дык даже в рукокниге написано, что не все компилируется с -jN, и если не компилировалось, то рекомендуется без этой опции попробовать скомпилировать.

Re: параметры make для 2х ядер

Добавлено: 2012-05-27 21:14:46
snorlov
QweЯty писал(а):какие параметры и куда указать нужно?
попалсо тут экземпляр с 2мя ядрами и 8ми гигами оперативы.. впервые у меня стока оперы и процов в системе :)
пока поставил х64 8.2
и кстати, а будут работать 32-битные проги?
Компилится сразу x64 будет поскольку тип ос будет amd, fа не i386, а так укажите тип процессора

Код: Выделить всё

CPUTYPE?=...