насчет конкретно dc ничего сказать не могу, а вообще, инструкция по созданию нового пакета методом кросс-компиляции под эти устройства:
http://www.nslu2-linux.org/wiki/Optw...ckageToOptware
Собственно сабж
Вродебы поискал по форуму нашел упоминания про microdc. удалось ли портировать его под wl500? может что то другое портировали (в списках пакетов ничего не нашел)?
Если нет, невозмется ли ктото из людей понимающих в этом написать, какой софт необходим, и краткую инструкцию чтобы попробовать это сделать? (сам я в юниксе новичек, неделю только %)).
насчет конкретно dc ничего сказать не могу, а вообще, инструкция по созданию нового пакета методом кросс-компиляции под эти устройства:
http://www.nslu2-linux.org/wiki/Optw...ckageToOptware
Коллеги я наверно глупые вопросы задаю, но может всетаки кто-то поможет...
пытаюсь собрать microdc2-0.15.6
пока он требовал всякую мелочь, дело както двигалось, а сейчас уперся.
я понимаю что пакет не знает на какой системе его пвтаются собрать, но вот что делать не догоняю
вот собственно вывод
Code:[admin@WL500 microdc2-0.15.6]$ ./configure | tee configure.log checking for a BSD-compatible install... build-aux/install-sh -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... no checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... grep: lseek: Illegal seek none checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /opt/bin/grep checking for egrep... /opt/bin/egrep checking for AIX... no checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking for working alloca.h... yes checking for alloca... yes checking whether system is Windows or MSDOS... no checking whether strerror_r is declared... yes checking for strerror_r... no checking whether strerror_r returns char *... yes checking for an ANSI C-conforming const... yes checking for mbstate_t... yes checking for C/C++ restrict keyword... __restrict checking for IPv4 sockets... yes checking for IPv6 sockets... yes checking for inline... inline checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking wctype.h usability... yes checking wctype.h presence... yes checking for wctype.h... yes checking for sys/types.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking whether getdelim is declared... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for getopt_long_only... yes checking whether optreset is declared... no checking for working GNU getopt function... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unsigned long long... yes checking build system type... Warning: creating insecure temp directory grep: lseek: Illegal seek build-aux/config.guess: unable to guess system type This script, last modified 2005-08-03, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess and http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub If the version you run (build-aux/config.guess) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system. config.guess timestamp = 2005-08-03 uname -m = mips uname -r = 2.4.20 uname -s = Linux uname -v = #61 Mon Oct 9 21:51:36 MSD 2006 /usr/bin/uname -p = /bin/uname -X = hostinfo = /bin/universe = /usr/bin/arch -k = /bin/arch = /usr/bin/oslevel = /usr/convex/getsysinfo = UNAME_MACHINE = mips UNAME_RELEASE = 2.4.20 UNAME_SYSTEM = Linux UNAME_VERSION = #61 Mon Oct 9 21:51:36 MSD 2006 configure: error: cannot guess build type; you must specify one [admin@WL500 microdc2-0.15.6]$
а если попробовать взять свежие config.guess и config.sub как это собственно рекомендует configure? Там вроде лежат файлы от марта 2007
./configure --host=mipsel-linux
Спасибо за то что откликнулись
скачал новые файлы, запустил с ключами.
configure вроде отработал
на всякий случай вывод приложен
но вот новая "засада" - файла make - нет...
[admin@WL500 microdc2-0.15.6]$ ls -l
-rw-r--r-- 1 admin root 68677 Oct 22 12:35 ABOUT-NLS
-rw-r--r-- 1 admin root 308 Oct 22 12:35 AUTHORS
-rw-r--r-- 1 admin root 18002 Oct 22 12:35 COPYING
drwxr-xr-x 2 admin root 4096 Apr 11 23:33 CVS
-rw-r--r-- 1 admin root 0 Oct 22 12:35 ChangeLog
-rw-r--r-- 1 admin root 9498 Oct 22 12:35 INSTALL
-rw-r--r-- 1 admin root 24094 Apr 15 22:02 Makefile
-rw-r--r-- 1 admin root 942 Oct 22 12:35 Makefile.am
-rw-r--r-- 1 admin root 23254 Dec 24 21:44 Makefile.in
-rw-r--r-- 1 admin root 17934 Oct 22 12:35 NEWS
-rw-r--r-- 1 admin root 10956 Nov 14 12:54 README
-rw-r--r-- 1 admin root 34304 Nov 28 22:07 aclocal.m4
drwxr-xr-x 3 admin root 4096 Apr 11 23:33 build-aux
-rw-r--r-- 1 admin root 15768 Apr 15 22:02 config.h
-rw-r--r-- 1 admin root 14981 Nov 16 14:24 config.h.in
-rw-r--r-- 1 admin root 128942 Apr 15 22:02 config.log
-rwxr-xr-x 1 admin root 46485 Apr 15 22:02 config.status
-rwxr-xr-x 1 admin root 647328 Dec 24 21:45 configure
-rw-r--r-- 1 admin root 2922 Dec 24 21:43 configure.ac
-rwxr-xr-x 1 admin root 643294 Apr 15 21:57 configure.lineno
-rw-r--r-- 1 admin root 2920 Apr 15 13:33 configure.log
drwxr-xr-x 3 admin root 4096 Apr 11 23:33 debian
drwxr-xr-x 3 admin root 4096 Apr 11 23:33 doc
drwxr-xr-x 3 admin root 4096 Apr 15 22:02 lib
drwxr-xr-x 3 admin root 4096 Apr 11 23:33 m4
drwxr-xr-x 3 admin root 4096 Apr 15 22:02 po
drwxr-xr-x 3 admin root 4096 Apr 15 22:02 rpm
drwxr-xr-x 3 admin root 4096 Apr 15 22:02 slackware
drwxr-xr-x 7 admin root 4096 Apr 15 22:02 src
-rw-r--r-- 1 admin root 23 Apr 15 22:02 stamp-h1
я чтото делаю не правильно ?
куда рыть, где его искать?
или запускать Makefile?
зато есть Makefile
а запускать просто make
чегото не хватает?Code:[admin@WL500 microdc2-0.15.6]$ make -sh: make: not found [admin@WL500 microdc2-0.15.6]$ export export HOME='/usr/local/root' export LOGNAME='admin' export OLDPWD='/tmp/local/root' export PATH='/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' export PS1='[\u@\h \W]$ ' export PWD='/opt/build/microdc2-0.15.6' export SHELL='/bin/sh' export TERM='linux' export TERMINFO='/opt/share/terminfo' export USER='admin'
кажется начинаю нонимать, make - часть "системы сборки", Makefile - его конфиг?
тоесть у меня чегото нет в переменных окружения?
а как в линухе искать файл? я же кудато ставил компилятор.
у меня стоит следующее:
root@wl500g,/opt/etc/init.d> ipkg list_installed | grep make
automake - 1.10-1 - Creates GNU standards-compliant Makefiles from template files
make - 3.81-1 - examines files and runs commands necessary for compilation
короче надо ставить ipkg install make
В принципе все пакеты потребные для нативной компиляции на роутере ставятся коммандой ipkg install optware-devel
поиск: find
если find не установлен, то ipkg install findutils
Last edited by al37919; 15-04-2007 at 21:48.
Поставил маке, запустил получил очень длинный вывод (длиннее чем у configure), но в конце увы... Error
пакетов у меня не ммного но греп есть:Code:configure: creating ./config.status grep: lseek: Illegal seek grep: lseek: Illegal seek grep: lseek: Illegal seek grep: lseek: Illegal seek grep: lseek: Illegal seek grep: lseek: Illegal seek configure: error: could not make ./config.status make[3]: *** [config.status] Error 1 make[3]: Leaving directory `/opt/build/microdc2-0.15.6' make[2]: *** [Makefile] Error 2 make[2]: Leaving directory `/opt/build/microdc2-0.15.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/build/microdc2-0.15.6' make: *** [all] Error 2
buildroot - 4.1.1-12 -
cron - 4.1-5 -
grep - 2.4.2-6 -
ipkg - 0.99.149-2 - lightweight package management system
libstdc++ - 0.2.0-6 -
libuclibc++ - 0.1.12-7 -
make - 3.81-1 -
mc - 4.1.35-3 -
ncurses - 5.6-1 -
readline - 5.2-2 -
screen - 4.0.3-2 -
termcap - 1.3.1-2 -
uclibc-opt - 0.9.28-12 -
куда дальше рыть?
Так, ради спортивного интереса я скомпилировал нативно этот пакет. Операция прошла без единой запинки:
Я к посту прилепил бинарники и полный вывод configure и make. Так что если захочется, то можно сравнить процесс прохождения сборки.Code:[root@router src]$ wget http://corsair626.no-ip.org/microdc/microdc2-0.15.6.tar.gz ... [root@router src]$ tar -xf microdc2-0.15.6.tar.gz [root@router src]$ cd microdc2-0.15.6 [root@router microdc2-0.15.6]$ ./configure ... [root@router microdc2-0.15.6]$ make ... [root@router microdc2-0.15.6]$ ./src/microdc2 ./src/microdc2: Cannot bind message domain: Invalid argument ./src/microdc2: Cannot set message domain: Invalid argument Loading local FileList...done Sharing 0 bytes (0B) totally microdc2> exit [root@router microdc2-0.15.6]$
Кстати grep у меня прошивочный, busybox'овый. Дополнительно пакета я не ставил.
Code:[root@router microdc2-0.15.6]$ which grep /bin/grep
to Mam(O)n
Спасибо, вечером постараюсь сравнить.
греп ставился толи потому, что он требовался на этапе configure. толи configure требовал чегото что хотело греп.
попутно вопрос:
какая у вас прошивка?
у меня 1.9.2.7-7f
у меня вывод команды make был куда длиннее/
Last edited by XCB; 17-04-2007 at 06:54.
Code:[root@router root]$ cat /.version 1.9.2.7-7g-pre1 [root@router root]$ ipkg list_installed adduser - 1.5.0-1 - a multi-call binary for login and user account administration adns - 1.3-2 - Asynchronous resolver library and DNS resolver utilities. autoconf - 2.61-1 - Creating scripts to configure source code packages using templates automake - 1.10-1 - Creates GNU standards-compliant Makefiles from template files bash - 3.2-2 - A bourne style shell bison - 2.3-2 - a general-purpose parser generator that converts an annotated context-free grammar into an LALR(1) or GLR parser for that gramm buildroot - 4.1.1-12 - uClibc compilation toolchain busybox-base - 1.5.0-1 - A userland replacement for embedded systems. bzip2 - 1.0.4-1 - Very high-quality data compression program cabextract - 1.2-1 - cabextract - Program to extract Microsoft Cabinet files cron - 4.1-5 - Standard vixie cron, with cron.d addition cyrus-sasl-libs - 2.1.22-1 - Provides client or server side authentication (see RFC 2222). diffutils - 2.8.1-4 - contains gnu diff, cmp, sdiff and diff3 to display differences between and among text files elinks - 0.11.2-2 - Full-Featured Text WWW Browser enhanced-ctorrent - dnh2.2-6 - Enhanced CTorrent is a revised version of CTorrent esmtp - 0.5.1-2 - esmtp is a user configurable relay-only Mail Transfer Agent (MTA) with a sendmail compatible syntax. expat - 2.0.0-6 - XML Parser library file - 4.20-1 - Ubiquitous file identification utility. flex - 2.5.33-4 - Generates programs that perform pattern-matching on text. fontconfig - 2.3.2-4 - Font configuration library freetype - 2.1.10-4 - Free truetype library gconv-modules - 2.2.5-6 - Provides gconv modules missing from the firmware. These are used by glibc's iconv() implementation. gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines. glib - 2.6.6-6 - The GLib library of C routines. gnuplot - 4.2.rc2-5 - Command-line driven interactive data and function plotting utility groff - 1.19.2-1 - front-end for the groff document formatting system gzip - 1.2.4a-1 - GNU Zip data compression program indent - 2.2.9-2 - A program to make code easier to read, can also be used for C coding style conversion. ipkg-opt - 0.99.163-9 - The Itsy Package Manager less - 394-3 - Less file browser lha - 114i-1 - lha - File archiving utility with compression libart - 2.3.17-2 - 2-d graphics library. libcurl - 7.16.2-1 - Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI libdb - 4.2.52-3 - Berkeley DB Libraries libesmtp - 1.0.4-2 - libESMTP is a library to manage posting electronic mail using SMTP to a preconfigured Mail Transport Agent (MTA). libgd - 2.0.34-1 - An ANSI C library for the dynamic creation of images libjpeg - 6b-2 - collection of jpeg tools libogg - 1.1.3-3 - Ogg is a multimedia container format. libpng - 1.2.16-1 - Portable Network Graphics Libraries libsigc++ - 2.0.17-3 - libsigc++ implements a typesafe callback system for standard C++. libstdc++ - 0.2.0-6 - libtorrent - 0.11.4-1 - libtorrent is a BitTorrent library with a focus on high performance and good code. libuclibc++ - 0.2.2-4 - C++ standard library designed for use in embedded systems libvorbis - 1.1.2-5 - Ogg Vorbis compressed audio format. libxml2 - 2.6.27-2 - Libxml2 is the XML C parser and toolkit developed for the Gnome project. libxslt - 1.1.20-1 - An XML Stylesheet processor based on libxml2 m4 - 1.4.8-1 - gnu macro processor and compiler front end make - 3.81-1 - examines files and runs commands necessary for compilation man - 1.5p-4 - unix manual page reader mc - 4.5.55-6 - Midnight Commander File Manager microperl - 5.8.8-11 - Microperl. nano - 2.0.4-1 - A pico like editor ncurses - 5.6-1 - NCurses libraries ncursesw - 5.6-1 - NCurses libraries with wide char support. netcat - 1.10pl32-1 - TCP/IP swiss army knife. nmap - 4.20-1 - Nmap is a feature-rich portscanner openldap-libs - 2.3.33-1 - Open Lightweight Directory Access Protocol openssl - 0.9.7m-1 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari patch - 2.5.9-1 - applies a diff to produce a patched file pcre - 6.7-5 - Perl-compatible regular expression library perl - 5.8.8-16 - Practical Extraction and Report Language. php - 5.2.0-4 - The php scripting language popt - 1.7-2 - A C library for parsing command line parameters. readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are rrdtool - 1.2.18-1 - Round-Robin Database tool. Database collator and plotter sctcs - 0.851b - sdparm - 0.99-1 - Utility for listing and potentially changing SCSI disk parameters sed - 4.1.5-1 - Stream editor. tar - 1.16.1-1 - heavyweight version of the Tape ARchiver tcpdump - 3.9.5-1 - tcpdump dumps the traffic on a network tethereal - 0.10.14-3 - Terminal based ethereal to dump and analyze network traffic uclibc-opt - 0.9.28-12 - micro C library for embedded Linux systems unarj - 2.65-1 - unarj - An uncompressor for .arj format archive files unrar - 3.6.8-2 - unrar is an application that can decompress files and archives created using the RAR compression scheme unzip - 5.52-1 - A (de)compression library for the ZIP format wakelan - 1.1-2 - send the magic wakeup package over the LAN wget - 1.10.2-3 - A network utility to retrieve files from the Web which - 2.16-3 - which prints out the full path of the executablesthat bash(1) would execute when the passed program names would have been enter whois - 4.7.20-1 - Perform whois lookups to identify site owners zip - 2.32-1 - a compression and file packaging utility. zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system. zoo - 2.10-1 - zoo - File archiving utility with compression Successfully terminated.
получаю вот это:
# ./configure
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.что же не хватает...root@hd:~# ipkg-opt list_installed
apr - 1.2.8-1 - Apache Portable Runtime library
apr-util - 1.2.8-3 - Apache Portable Runtime utilities library
autoconf - 2.61-1 - Creating scripts to configure source code packages using templates
automake - 1.10-1 - Creates GNU standards-compliant Makefiles from template files
bash - 3.2-2 - A bourne style shell
bison - 2.3-2 - a general-purpose parser generator that converts an annotated context-free grammar into an LALR(1) or GLR parser for that gramm
buildroot - 4.1.1-12 - uClibc compilation toolchain
bzip2 - 1.0.4-1 - Very high-quality data compression program
coreutils - 6.7-3 - Bunch of heavyweight *nix core utilities
cyrus-sasl-libs - 2.1.22-1 - Provides client or server side authentication (see RFC 2222).
diffutils - 2.8.1-4 - contains gnu diff, cmp, sdiff and diff3 to display differences between and among text files
expat - 2.0.0-6 - XML Parser library
file - 4.20-1 - Ubiquitous file identification utility.
findutils - 4.2.30-1 - File finding utilities
flex - 2.5.33-4 - Generates programs that perform pattern-matching on text.
gawk - 3.1.5-1 - Gnu AWK interpreter
gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
glib - 2.6.6-6 - The GLib library of C routines.
groff - 1.19.2-1 - front-end for the groff document formatting system
ipkg-opt - 0.99.163-9 - The Itsy Package Manager
libdb - 4.2.52-3 - Berkeley DB Libraries
libsigc++ - 2.0.17-3 - libsigc++ implements a typesafe callback system for standard C++.
libtool - 1.5.10-2 - Library tools.
libuclibc++ - 0.2.2-4 - C++ standard library designed for use in embedded systems
libxml2 - 2.6.27-2 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
m4 - 1.4.8-1 - gnu macro processor and compiler front end
make - 3.81-1 - examines files and runs commands necessary for compilation
ncurses - 5.6-1 - NCurses libraries
ncursesw - 5.6-1 - NCurses libraries with wide char support.
neon - 0.24.7-2 - an HTTP and WebDAV client library, with a C interface
openldap-libs - 2.3.33-1 - Open Lightweight Directory Access Protocol
openssl - 0.9.7m-1 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
optware-devel - 6.8-6 - This is a meta package that bundles all the packages required for optware native development.
patch - 2.5.9-1 - applies a diff to produce a patched file
perl - 5.8.8-16 - Practical Extraction and Report Language.
pkgconfig - 0.15.0-1 - Package configuration tool
python - 2.4.4-3 - This is a package that sets up the default python.
python24 - 2.4.4-5 - Python is an interpreted, interactive, object-oriented programming language.
readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
rsync - 2.6.9-2 - fast remote file copy program (like rcp)
sed - 4.1.5-1 - Stream editor.
svn - 1.4.3-2 - a compelling replacement for CVS
tar - 1.16.1-1 - heavyweight version of the Tape ARchiver
uclibc-opt - 0.9.28-12 - micro C library for embedded Linux systems
wget-ssl - 1.10.2-3 - A network utility to retrieve files from the Web
zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system.
Successfully terminated.
Linux hd 2.4.30 #1 Sat Feb 3 13:16:08 CET 2007 mips unknown
whiterussian 0.9
ipkg-opt install optware сделал...((
microdc2-0.15.6 стал с первого раза и работает =)
разбираюсь по-тихоньку
брал тут
http://corsair626.no-ip.org/microdc/...-0.15.6.tar.gz