Покажи Публикации - b8210
* Виж публикациите на потр. | Виж темите на потр. | Виж прикачените файлове на потр
Страници: [1]
1  Linux секция за начинаещи / Настройка на програми / проблем със стартиране на компилация на ядро -: Jul 18, 2006, 22:22
Много благодаря Nix, всичко тръгна '<img'>
2  Linux секция за начинаещи / Настройка на програми / проблем със стартиране на компилация на ядро -: Jul 18, 2006, 22:15
Явно бъркам нещо защото apt-cashe не ми извежда нищо:
toltek:/usr/src/linux-2.6.17.3# apt-cache search curces
toltek:/usr/src/linux-2.6.17.3#
3  Linux секция за начинаещи / Настройка на програми / проблем със стартиране на компилация на ядро -: Jul 18, 2006, 22:01
Здравейте,
 след като инсталирах Debian направих опит да компилирам ядро 2.6.17.3. Но make menuconfig ми дава че нямам curses.h въпреки че библиотеката е инсталирана. Бихте ли помогнали
Примерен код
toltek:/usr/src/linux-2.6.17.3# make menuconfig
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:31:20: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:128: error: syntax error before "use_colors"
scripts/kconfig/lxdialog/dialog.h:128: warning: type defaults to `int' in declaration of `use_colors'
scripts/kconfig/lxdialog/dialog.h:128: warning: data definition has no type or storage class
scripts/kconfig/lxdialog/dialog.h:129: error: syntax error before "use_shadow"
scripts/kconfig/lxdialog/dialog.h:129: warning: type defaults to `int' in declaration of `use_shadow'
scripts/kconfig/lxdialog/dialog.h:129: warning: data definition has no type or storage class
scripts/kconfig/lxdialog/dialog.h:131: error: syntax error before "attributes"
scripts/kconfig/lxdialog/dialog.h:131: warning: type defaults to `int' in declaration of `attributes'
scripts/kconfig/lxdialog/dialog.h:131: warning: data definition has no type or storage class
scripts/kconfig/lxdialog/dialog.h:143: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:143: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:146: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:147: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:147: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:148: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:148: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:149: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:150: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/dialog.h:151: error: syntax error before '*' token
scripts/kconfig/lxdialog/dialog.h:151: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c:31: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:33: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c: In function `print_item':
scripts/kconfig/lxdialog/checklist.c:37: warning: implicit declaration of function `wattrset'
scripts/kconfig/lxdialog/checklist.c:37: error: `win' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:37: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:37: error: for each function it appears in.)
scripts/kconfig/lxdialog/checklist.c:38: warning: implicit declaration of function `wmove'
scripts/kconfig/lxdialog/checklist.c:38: error: `choice' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:40: warning: implicit declaration of function `waddch'
scripts/kconfig/lxdialog/checklist.c:43: error: `selected' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:44: warning: implicit declaration of function `wprintw'
scripts/kconfig/lxdialog/checklist.c:44: error: `status' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:47: warning: implicit declaration of function `mvwaddch'
scripts/kconfig/lxdialog/checklist.c:47: error: `item' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:49: warning: implicit declaration of function `waddstr'
scripts/kconfig/lxdialog/checklist.c:52: warning: implicit declaration of function `wrefresh'
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:59: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:61: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c: In function `print_arrows':
scripts/kconfig/lxdialog/checklist.c:62: error: `win' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:62: error: `y' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:62: error: `x' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:64: error: `scroll' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:76: error: `height' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:79: error: `item_no' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:79: error: `choice' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/checklist.c:95: error: syntax error before '*' token
scripts/kconfig/lxdialog/checklist.c:96: warning: function declaration isn't a prototype
scripts/kconfig/lxdialog/checklist.c: In function `print_buttons':
scripts/kconfig/lxdialog/checklist.c:97: error: `width' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:98: error: `height' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:100: error: `dialog' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:100: error: `selected' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c: In function `dialog_checklist':
scripts/kconfig/lxdialog/checklist.c:117: error: `WINDOW' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: `dialog' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: error: `list' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of function `endwin'
scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of function `fprintf'
scripts/kconfig/lxdialog/checklist.c:122: error: `stderr' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:140: error: `COLS' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:141: error: `LINES' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:143: error: `stdscr' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function `newwin'
scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of function `keypad'
scripts/kconfig/lxdialog/checklist.c:146: error: `TRUE' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of function `subwin'
scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of function `wnoutrefresh'
scripts/kconfig/lxdialog/checklist.c:201: warning: implicit declaration of function `doupdate'
scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of function `wgetch'
scripts/kconfig/lxdialog/checklist.c:211: error: `KEY_UP' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:211: error: `KEY_DOWN' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:221: error: `FALSE' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of function `scrollok'
scripts/kconfig/lxdialog/checklist.c:223: warning: implicit declaration of function `wscrl'
scripts/kconfig/lxdialog/checklist.c:283: warning: implicit declaration of function `delwin'
scripts/kconfig/lxdialog/checklist.c:287: error: `KEY_LEFT' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:288: error: `KEY_RIGHT' undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c: At top level:
scripts/kconfig/lxdialog/dialog.h:131: warning: array `attributes' assumed to have one element
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2

ето и началото на scripts/kconfig/lxdialog/checklist.c
Примерен код


#include "dialog.h"

static int list_width, check_x, item_x;

/*
 * Print list item
 */
static void print_item(WINDOW * win, const char *item, int status, int choice,
                       int selected)
{
        int i;

        /* Clear 'residue' of last item */
        wattrset(win, menubox_attr);
        wmove(win, choice, 0);
        for (i = 0; i < list_width; i++)
4  Linux секция за начинаещи / Настройка на хардуер / Проблем с инсталация на принтер -: Mar 25, 2006, 15:24
опитах с всички драйвери за HP, но не се получава. Може би проблема е с ghoustscript. Въпреки че имам версия 7, apsfilter ми дава следното

root@toltek:/etc/apsfilter/basedir# ./SETUP
./SETUP: line 256: /usr/bin/gs: No such file or directory
Found ghostscript version  ...
You have to upgrade at least to gs version 5.50!
But you should upgrade to gs 6.01 for full driver support
prior installing printers with SETUP.
5  Linux секция за начинаещи / Настройка на хардуер / Проблем с инсталация на принтер -: Mar 24, 2006, 17:00
Здравейте,
имам принтер HP LaseJet 4L. Направих опит да го инсталирам следвайки инструкциите от http://www.userlocal.com/articles/slackware-printing-faq.php
След като инсталирах всички пакети посочени в инструкциите:
pr.tgz
ghostscr.tgz
gsfonts.tgz
a2ps.tgz
apsfilt.tgz
gs_x11.tgz (Optional)
И стартирах SETUP на apsfilter и достигнах до момента в който трябва да се избере драйвер за принтера ми дава следното:
Error: Your gs version doesn't have driver "ljet4" compiled in...
Select another driver or build a new gs version with complete or customized
driver support

Не знам как и къде да компилирам драйвера ljet4.

Може ли някой да помогне с това
6  Linux секция за начинаещи / Настройка на програми / Проблем с четенето на pdf файлове -: Mar 20, 2006, 17:47
Здравейте,
за четене на pdf използвам kpdf и xpdf. След като стартирам която и да е от програмите и се опитам да отворя файл те го отварят но излизат само празни страници.
Знаете ли какъв може да е проблема?
7  Linux секция за начинаещи / Настройка на хардуер / Как да mount-на камера Panasonic PV_SG35 -: Mar 09, 2006, 20:06
Здравейте,
не знам как да открия файловата система на камерата си, както и USB порта. Разбрах, че ключа може би е в  cat /proc/bus/usb/devices. Ето резултатът:



T:  Bus=01 Lev=01 Prnt=01 Port=05 Cnt=01 Dev#=  6 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(unk. ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=04da ProdID=231a Rev= 1.00
S:  Manufacturer=Panasonic
S:  Product=DVC
S:  SerialNumber=d1493460
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=0e(unk. ) Sub=01 Prot=00 Driver=(none)
E:  Ad=86(I) Atr=03(Int.) MxPS=  64 Ivl=64ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0e(unk. ) Sub=02 Prot=00 Driver=(none)
I:  If#= 1 Alt= 1 #EPs= 1 Cls=0e(unk. ) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS= 492 Ivl=125us
root@toltek:~# mount_msdosfs /dev/da0 /mnt/usb"
8  Linux секция за начинаещи / Настройка на програми / Проблеми след актуализиране на Slackware -: Mar 06, 2006, 17:25
Hel1Fire имам същия проблем,
след Update не мога да инсталирам драйвера за nvidia. Версията на gcc след ъпдейта е 3.4.5, а тази с която съм компилирал първия път е 3.3.6. Имам Slackware 10.2 с ядро 2.6.15. За пръв път инсталирах Slack преди седмица и не съм много опитен. Това което опитах да направя е да инсталирам стария gcc 3.3.6 но отново нищо не се получи. Би ли ми обяснил как се справи с проблема?
Благодаря
9  Linux секция за начинаещи / Настройка на програми / Проблем със KDE -: Mar 05, 2006, 16:35
Здравейте,
след reboot, slack-ът ми даде грешка при стартирането на KDE. Опитах да инсталирам драйвера за nvidia наново, но без успех. Това е съдържанието на nvidia-installer.log:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Mar  5 16:07:43 2006

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  no precompiled interface: false
  no ncurses color        : false
  query latest driver ver : false
  OpenGL header files     : true
  no questions            : false
  silent                  : false
  no backup               : false
  kernel module only      : false
  sanity                  : false
  add this kernel         : false
  no runlevel check       : false
  no network              : false
  no ABI note             : false
  no RPMs                 : false
  force tls               : (not specified)
  force compat32 tls      : (not specified)
  X install prefix        : /usr/X11R6
  OpenGL install prefix   : /usr
  compat32 install prefix : (not specified)
  installer install prefix: /usr
  utility install prefix  : /usr
  kernel name             : (not specified)
  kernel include path     : (not specified)
  kernel source path      : (not specified)
  kernel output path      : (not specified)
  kernel install path     : (not specified)
  proc mount point        : /proc
  ui                      : (not specified)
  tmpdir                  : /tmp
  ftp mirror              : ftp://download.nvidia.com
  RPM file list           : (not specified)
Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 1.0-
   8178).  As part of installing this driver (version: 1.0-8178), the existing
   driver will be uninstalled.  Are you sure you want to continue? ('no' will a
   bort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
   ke the installer to attempt to download a kernel interface for your kernel from
 the NVIDIA ftp sie (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
   this means that the installer will need to compile a kernel interface for
   your kernel.
-> Performing CC test with CC="cc".
ERROR: The kernel header file
       '/lib/modules/2.4.31/build/include/linux/version.h' does not exist.  The
       most likely reason for this is that the kernel source files in
       '/lib/modules/2.4.31/build' have not been configured.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  
Можете ли да ми кажете какъв е проблема
10  Linux секция за начинаещи / Настройка на програми / проблем с настройката на интернет -: Mar 03, 2006, 16:22
Да разбира се, това е проблема. Толкова се чудих какво е това чудо nameserver, а то било DNS сървър. Какво невежество '<img'>
  Благодаря много за отговорите!
11  Linux секция за начинаещи / Настройка на програми / проблем с настройката на интернет -: Mar 01, 2006, 20:09
Здравейте

след като инсталирах LAN-ът си браузърът ми дава Unknown host. Цепя интернета си чрез линукс рутер с адрес 10.0.0.1, към който имам ping. Имам ping и към доставчика си.

Знаете ли какъв може да е проблемът ми?
Страници: [1]