-
سلام
وقتی من دستور sudo make xconfig رو میزنم این خروجی رو میده!
مشکل از کجاست؟
scripts/kconfig/qconf arch/x86/Kconfig
No protocol specified
qconf: cannot connect to X server :0.0
make[1]: *** [xconfig] Error 1
make: *** [xconfig] Error 2
menuconfig یک خطاهای عجیبی میده!
oldconfig هم خودش همه کار میکنه! به من اجازه نمیده.
config هم که باز میشه اما گرافیکی نیست :(
-
سلام
لطفاً خروجی دستور زیر را بگذارید
sudo su
make menuconfig
البته فرض بر این است که درون دایرکتوری extract شدهی هستهی لینوکس هستید.
-
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: error: expected specifier-qualifier-list before ‘chtype’
scripts/kconfig/lxdialog/dialog.h:187: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:194: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:196: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:197: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:198: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:199: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:201: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:
scripts/kconfig/lxdialog/checklist.c:116: error: ‘WINDOW’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:116: error: for each function it appears in.)
scripts/kconfig/lxdialog/checklist.c:116: error: ‘dialog’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: ‘list’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: warning: left-hand operand of comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:129: warning: implicit declaration of function ‘getmaxy’
scripts/kconfig/lxdialog/checklist.c:129: error: ‘stdscr’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:130: error: ‘KEY_MAX’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:131: warning: implicit declaration of function ‘getmaxx’
scripts/kconfig/lxdialog/checklist.c:137: error: ‘COLS’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:138: error: ‘LINES’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:140: warning: implicit declaration of function ‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:142: warning: implicit declaration of function ‘newwin’
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function ‘keypad’
scripts/kconfig/lxdialog/checklist.c:143: error: ‘TRUE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function ‘draw_box’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:147: warning: implicit declaration of function ‘wattrset’
scripts/kconfig/lxdialog/checklist.c:147: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function ‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function ‘waddch’
scripts/kconfig/lxdialog/checklist.c:151: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:154: warning: implicit declaration of function ‘print_title’
scripts/kconfig/lxdialog/checklist.c:156: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:157: warning: implicit declaration of function ‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:164: warning: implicit declaration of function ‘subwin’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:189: warning: implicit declaration of function ‘print_item’
scripts/kconfig/lxdialog/checklist.c:192: warning: implicit declaration of function ‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:195: warning: implicit declaration of function ‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function ‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of function ‘doupdate’
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function ‘wgetch’
scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_UP’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_DOWN’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:220: error: ‘FALSE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:221: warning: implicit declaration of function ‘scrollok’
scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of function ‘wscrl’
scripts/kconfig/lxdialog/checklist.c:232: warning: implicit declaration of function ‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:293: warning: implicit declaration of function ‘delwin’
scripts/kconfig/lxdialog/checklist.c:297: error: ‘KEY_LEFT’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:298: error: ‘KEY_RIGHT’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:310: warning: implicit declaration of function ‘on_key_esc’
scripts/kconfig/lxdialog/checklist.c:312: error: ‘KEY_RESIZE’ undeclared (first use in this function)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2
البته من سورس رو دانلود نکردم. از ٬ همونی که در آدرس usr/src/ هست استفاده میکنم.
-
سلام
تا آنجا که من اطلاع دارم configure کردن یعنی اینکه بگوییم یک برنامه چگونه کامپایل شود.
بدون داشتن سورس برنامه هم نمیتوان این کار را کرد.
فایلهایی که درون آدرس گفته شده قرار دارند header های هستهی لینوکس هستند نه سورس بسته. ( فایلهایی هستند با فرمت h. )
برای اطلاعات بیشتر به این آدرس مراجعه کنید:
http://www.howtoforge.com/kernel_compilation_ubuntu
البته این که چرا درون این فایلهای سرآمد(header) یک makfile وجود دارد رو من نمیدونم.
-
مگه کانفیک مرحله ی بعد کامپایل نیست؟
حالا مهم نیست
مهم اینه که یک برنامه به نام qconf که همون xconfig هست کامپایل شده اما به دلیلی که نمیدونم اجرا نمیشه. (من فقط میخوام محیطش رو ببینم چون تاحالا تجربه ی اینکار رو نداشتم)
تو چند تا فروم دیدم که خیلیها این برنامه براشون باز نمیشه و این خطا رو میده و یک دستوری داده بودن که بزنن. این بود. اما ایراد میگرفت.
xhost +x
-
کانفیگ کرنل قبل از کامپایل کردن آن است و در واقع چگونگی کامپایل کردن است.
اگر ممکنه آدرس این فروم ها و پست ها را بگذارید.
-
سلام
من تو گوگل سرچ کردم. نمیدونم چه سایتهایی بودن اما یکیش رو الان پیدا کردم.
http://justlinux.com/forum/showthread.php?t=134911
-
سلام
۱- این پستی که پیوند بهش دادید مشکل شما را نداشتند، چون آن فرد میتوانست از make menuconfig استفاده کند ولی شما نمیتوانید.
۲- فکر کنم مشکل این فرد اگر در اوبونتو بود با + xhost حل میشد ولی همانطور که گفته شده مشکلات امنیتی دارد.( و مشکل شما با آن فرق میکند.)
۳- در این پست هم در جایی نگفته که در حال configure کردن header ها است اگر پیوندی به این موضوع دارید خواهشاً بگذارید.
-
سلام
از پیگیریتون ممنونم اما فکر کنم داریم از سوالی که من پرسیدم خارج میشیم!
سوالم رو یکم عوض میکنم.
من برنامه ای به نام xconfig رو کامپایل کردم و وقتی میخوام اجراش کنم این ارور رو میده!
مشکل از کجاست و اگر سورس کامل رو دانلود کنم رفع میشه؟
من فقط میخوام محیط این برنامه رو ببینم.
-
این دستور را امتحان کنید
xhost +
پ.ن.
خوب اگر کل سورس را دانلود کنید میتوانید چیزی را کانفیگ کنید در غیر این صورت چه چیزی را میخواهید کانفیگ کنید؟ کرنل که بدون وجود سورسش کانفیگ نمیشود.
ولی اگر میخواهید فقط محیط برنامه را ببینید با این روش ممکن است بتوانید ببینید.
-
این خروجی رو میده
access control disabled, clients can connect from any host
-
خب درست است دیگر همین رو میخواستیم. ;)
الان ببین make xconfig کار میکند یا نه و خروجیاش را بگذار
-
ممنون درست شد.
برنامه باز شد.