LinuxForum.Fans
Тема

[NetBSD] pkg_add не фурычит

Автор: thetosh 9 сообщений 9321 просмотров
15.09.2010 06:10 #79588

Добрый день.

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

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

.
Запускаю pkg_add:

text
# 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) в середину урла, на чём сам и обламывается. :( Читал маны по pkg_add и pkg_install.conf, но не нашёл рецепта, как от этого избавиться.

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

text
# 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, что делать. Второй день уже бьюсь... :(

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

15.09.2010 08:46 #79603

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 явно написано же:

text

....
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.

15.09.2010 10:18 #79610
i2ks написал:
thetosh, читали? http://www.netbsd.org/docs/pkgsrc/using.html#using-pkg
Читал. Возможно, не совсем понял. У меня нет /usr/pkg.
[quote=thetosh]PKG_PATH=ftp://ftp.netbsd.org/pub/netbsd/packages/current-packages/netbsd/i386/5.0.2_2010q2/all

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

text

....
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.

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

15.09.2010 11:25 · отредактировано #79628
thetosh написал:
Какого чёрта он 21-ый порт посреди урла вставляет? 

а что вам не нравится то,корректная запись, как пример:
пытаемся подключиться
[console]$ ftp [url]ftp://ftp.netbsd.org:21/pub/netbsd/packages/current-packages/netbsd/i386/5.0.2_2010q2/all/[/url][/console]
далее получаем:
[console]
$ ftp [url]ftp://ftp.netbsd.org:21/pub/netbsd/packages/current-packages/netbsd/i386/5.0.2_2010q2/all/[/url]
Connected to [url=ftp://ftp.netbsd.org]ftp.netbsd.org[/url].
220 [url=ftp://ftp.NetBSD.org]ftp.NetBSD.org[/url] 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 [url=ftp://ftp.NetBSD.org]ftp.NetBSD.org[/url].
[/console]

550 netbsd: No such file or directo это вам о чем нибудь говорит???
Далее подключаемся в к ftp
[console]
$ ftp [url]ftp://ftp.netbsd.org:21/pub/[/url]
Connected to [url=ftp://ftp.netbsd.org]ftp.netbsd.org[/url].
220 [url=ftp://ftp.NetBSD.org]ftp.NetBSD.org[/url] 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>
[/console]
подключились успешно.
Вот поэтому я и спросил, откуда такой путь???? Читайте handbook :[
А лишь потом задавайте вопросы! :[

15.09.2010 19:05 #79872

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

15.09.2010 23:28 #80081

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

16.09.2010 10:01 #80180
i2ks написал:
thetosh, так проблему то решили?

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

16.09.2010 10:40 #80193

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

08.10.2014 23:14 #395647

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

Войдите или зарегистрируйтесь, чтобы ответить.