1

Добрый день.

  Вот решил поставить NetBSD поковырять. Поставилось оно довольно шустро. Решил пакетики доставить, и вот тут траблы возникли. Скачал и развернул pkgsrc, прописал

PKG_PATH=ftp://ftp.netbsd.org/pub/netbsd/packages/current-packages/netbsd/i386/5.0.2_2010q2/all

.
  Запускаю pkg_add:

# pkg_add -v mc-4.6.1nb6.tgz
pkg_add: Can't process ftp://ftp.netbsd.org:21/pub/netbsd/packages/current-packages/netbsd/i386/5.0.2_2010q2/all/mc-4*: File unavailable (e.g., file not found, no access)
pkg_add: no pkg found for 'mc-4.6.1nb6.tgz', sorry.
pkg_add: 1 package addition failed.

Т.е. pkg_add зачем-то вставляет номер ftp-порта (21) в середину урла, на чём сам и обламывается.  ac Читал маны по pkg_add и pkg_install.conf, но не нашёл рецепта, как от этого избавиться.

Пробовал 'фряшным' методом поставить:

# cd /usr/pkgsrc/sysutils/mc
# make
ERROR: This package has set PKG_FAIL_REASON:
ERROR: mc-4.6.1nb6 requires a working dlopen().
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/sysutils/mc

Кто такой этот 'dlopen()' и почему это он у меня не 'working'? Посоветуйте, plz, что делать. Второй день уже бьюсь... ac

NetBSD 5.1_RC3, ставился с boot.iso, если это важно.

Best regards,
/theTosh.

2

thetosh, читали? http://www.netbsd.org/docs/pkgsrc/using.html#using-pkg

thetosh пишет:

PKG_PATH=ftp://ftp.netbsd.org/pub/netbsd/packages/current-packages/netbsd/i386/5.0.2_2010q2/all

откуда этот источник брали?? из HB явно написано же:

....
4.1.2. Installing binary packages
...
To install packages directly from an FTP or HTTP server, run the following commands in a Bourne-compatible shell (be sure to su to root first):

# PATH="/usr/pkg/sbin:$PATH"
# PKG_PATH="ftp://ftp.NetBSD.org/pub/pkgsrc/packages/OPSYS/ARCH/VERSIONS/All"
# export PATH PKG_PATH
Instead of URLs, you can also use local paths, for example if you are installing from a set of CDROMs, DVDs or an NFS-mounted repository. If you want to install packages from multiple sources, you can separate them by a semicolon in PKG_PATH.
It is good day to die ...
MS Windows 10
Заметки о главном...

3

i2ks пишет:

thetosh, читали? http://www.netbsd.org/docs/pkgsrc/using.html#using-pkg
Читал. Возможно, не совсем понял. У меня нет /usr/pkg.

thetosh пишет:

PKG_PATH=ftp://ftp.netbsd.org/pub/netbsd/packages/current-packages/netbsd/i386/5.0.2_2010q2/all

откуда этот источник брали?? из HB явно написано же:

....
4.1.2. Installing binary packages
...
To install packages directly from an FTP or HTTP server, run the following commands in a Bourne-compatible shell (be sure to su to root first):

# PATH="/usr/pkg/sbin:$PATH"
# PKG_PATH="ftp://ftp.NetBSD.org/pub/pkgsrc/packages/OPSYS/ARCH/VERSIONS/All"
# export PATH PKG_PATH
Instead of URLs, you can also use local paths, for example if you are installing from a set of CDROMs, DVDs or an NFS-mounted repository. If you want to install packages from multiple sources, you can separate them by a semicolon in PKG_PATH.

Да какая разница, откуда источник?! Какого чёрта он 21-ый порт посреди урла вставляет?  :O

Best regards,
/theTosh.

4 (15.09.2010 11:28:32 отредактировано i2ks)

thetosh пишет:

Какого чёрта он 21-ый порт посреди урла вставляет? 

а что вам не нравится то,корректная запись, как пример:
пытаемся подключиться

 Консоль:

далее получаем:
 Консоль:

$ ftp ftp://ftp.netbsd.org:21/pub/netbsd/pack … 010q2/all/
Connected to ftp.netbsd.org.
220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20100320) ready.
331 Guest login ok, type your name as password.
230-
    The NetBSD Project FTP Server located in Redwood City, CA, USA
    1 Gbps connectivity courtesy of                          ,        ,
    Internet Systems Consortium                 WELCOME!    /(        )`
                                                            \ \___   / |
      +--- Currently Supported Platforms ----+              /- _  `-/  '
      |  acorn[26,32], algor, alpha, amd64,  |             (/\/ \ \   /\
      |   amiga[,ppc], arc, atari, bebox,    |             / /   | `    \
      |   cats, cesfic, cobalt, dreamcast,   |             O O   ) /    |
      |  evb[arm,mips,ppc,sh3], hp[300,700], |             `-^--'`<     '
      |       hpc[arm,mips,sh], i386,        |            (_.)  _  )   /
      |      ibmnws, iyonix, luna68k,        |              .___/`    /
      |    mac[m68k,ppc], mipsco, mmeye,     |               `-----' /
      |      mvme[m68k,ppc], netwinders,     |  <----.     __ / __   \
      |   news[m68k,mips], next68k, ofppc,   |  <----|====O)))==) \) /====
      | playstation2, pmax, prep, sandpoint, |  <----'    `--' `.__,' \
      |  sbmips, sgimips, shark, sparc[,64], |               |        |
      |      sun[2,3], vax, x68k, xen        |                \       /
      +--------------------------------------+           ______( (_  / \_____
      See our website at http://www.NetBSD.org/        ,'  ,-----'   |       \
       We log all FTP transfers and commands.          `--{__________)  (FL) \/
230-
    EXPORT NOTICE
   
    Please note that portions of this FTP site contain cryptographic
    software controlled under the Export Administration Regulations (EAR).
   
    None of this software may be downloaded or otherwise exported or
    re-exported into (or to a national or resident of) Cuba, Iran, Libya,
    Sudan, North Korea, Syria or any other country to which the U.S. has
    embargoed goods.
   
    By downloading or using said software, you are agreeing to the
    foregoing and you are representing and warranting that you are not
    located in, under the control of, or a national or resident of any
    such country or on any such list.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I.
250 CWD command successful.
550 netbsd: No such file or directory.
221-
    Data traffic for this session was 0 bytes in 0 files.
    Total traffic for this session was 2805 bytes in 0 transfers.
221 Thank you for using the FTP service on ftp.NetBSD.org.

550 netbsd: No such file or directo это вам о чем нибудь говорит???
Далее подключаемся в к ftp

 Консоль:

$ ftp ftp://ftp.netbsd.org:21/pub/
Connected to ftp.netbsd.org.
220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20100320) ready.
331 Guest login ok, type your name as password.
230-
    The NetBSD Project FTP Server located in Redwood City, CA, USA
    1 Gbps connectivity courtesy of                          ,        ,
    Internet Systems Consortium                 WELCOME!    /(        )`
                                                            \ \___   / |
      +--- Currently Supported Platforms ----+              /- _  `-/  '
      |  acorn[26,32], algor, alpha, amd64,  |             (/\/ \ \   /\
      |   amiga[,ppc], arc, atari, bebox,    |             / /   | `    \
      |   cats, cesfic, cobalt, dreamcast,   |             O O   ) /    |
      |  evb[arm,mips,ppc,sh3], hp[300,700], |             `-^--'`<     '
      |       hpc[arm,mips,sh], i386,        |            (_.)  _  )   /
      |      ibmnws, iyonix, luna68k,        |              .___/`    /
      |    mac[m68k,ppc], mipsco, mmeye,     |               `-----' /
      |      mvme[m68k,ppc], netwinders,     |  <----.     __ / __   \
      |   news[m68k,mips], next68k, ofppc,   |  <----|====O)))==) \) /====
      | playstation2, pmax, prep, sandpoint, |  <----'    `--' `.__,' \
      |  sbmips, sgimips, shark, sparc[,64], |               |        |
      |      sun[2,3], vax, x68k, xen        |                \       /
      +--------------------------------------+           ______( (_  / \_____
      See our website at http://www.NetBSD.org/        ,'  ,-----'   |       \
       We log all FTP transfers and commands.          `--{__________)  (FL) \/
230-
    EXPORT NOTICE
   
    Please note that portions of this FTP site contain cryptographic
    software controlled under the Export Administration Regulations (EAR).
   
    None of this software may be downloaded or otherwise exported or
    re-exported into (or to a national or resident of) Cuba, Iran, Libya,
    Sudan, North Korea, Syria or any other country to which the U.S. has
    embargoed goods.
   
    By downloading or using said software, you are agreeing to the
    foregoing and you are representing and warranting that you are not
    located in, under the control of, or a national or resident of any
    such country or on any such list.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I.
250 CWD command successful.
ftp>

подключились успешно.
Вот поэтому я и спросил, откуда такой путь????  Читайте handbook  ah
А лишь потом задавайте вопросы!  ah

It is good day to die ...
MS Windows 10
Заметки о главном...

5

Да. Всё подключается успешно. Если посреди урла не впихивать :21.

Best regards,
/theTosh.

6

thetosh, так проблему то решили?

It is good day to die ...
MS Windows 10
Заметки о главном...

7

i2ks пишет:

thetosh, так проблему то решили?

Нет.
Может быть, оно в новой версии так себя ведёт?

Best regards,
/theTosh.

8

thetosh, сделайте так как написано в handbook'e, возможно вы что то упустили.

It is good day to die ...
MS Windows 10
Заметки о главном...

9

сейчас промучался час, думал то же из за порта, в теме ответов не нашел,  оказался регистр неправильный, будьте бдительны !

XMPP: mogul82@jabber.ru Фанбой AMD