Re: Sao cài xvnkb quài cho ubuntu hông được kà ?
Cài rồi mà không có file thì phải cài lại thôi, có nếu cài bằng các package thì có thể bung nén các package đó ra cài bằng phương pháp thủ côgn là copy nó vào đúng nơi
Bạn chưa đăng nhập. Xin đăng nhập hoặc đăng kí
VnOSS forum » ABC ... » Sao cài xvnkb quài cho ubuntu hông được kà ?
Cài rồi mà không có file thì phải cài lại thôi, có nếu cài bằng các package thì có thể bung nén các package đó ra cài bằng phương pháp thủ côgn là copy nó vào đúng nơi
Em tải về một file .gz ( hay đại loại thế ). Bung ra rồi cài bằng file xvnkb_íntal trong đó. Đã cài đủ 3 gói cvs, gcc và 1 gói nữa quên tên rồi. Thế thôi.
phai gõ bộ 3 lệnh kỳ diệu trước khi xvnkb_install.
Đầu tiên là ./configure
sau đó là make
cuối cùng là make install
Vậy là đủ rồi, nếu gcc đã cài đặt thành công thì mọi việc sẽ êm đẹp
Đã có hướng dẫn cụ thể ở đây:
http://diendantinhoc.org/forum/?action=msg&msg=1023558491#1023558491
Cảm ơn mọi người nhưng em làm thế rồi mà không thành.
Nó báo lỗi gì?
Đó, em đưa lên 1 lần rồi mà. Lỗi thiếu file đó. Anh xem lại hộ cái. Mà bấy giwof Ubuntu báo lỗi ( có cái biểu tượng màu da cam ở góc trên bên phải ) nhưng nhấn vào thì U không bật Admin tool lên được.
Theo lỗi bạn đưa lên thì có lẽ chưa thiết lập biến môi trường cần thiết. Bạn thử gõ lần lượt từng lệnh sau:
$sudo set LD_PRELOAD=/usr/local/lib/xvnkb.so
$sudo set LANG=UTF-8rồi sau đó gõ:
$xvnkbNếu vẫn chưa được thì xem lại trong thư mục /usr/local/lib đã có thư viện xvnkb.so chưa, chưa thì chép vào.
Tham khảo thêm:
http://vilinux.org/forum/index.php?topic=35.0
http://xvnkb.sourceforge.net/xvnkb/INSTALL
Last edited by NewbieLearnLinux (04/10/2006 16:28)
Theo lỗi bạn đưa lên thì có lẽ chưa thiết lập biến môi trường cần thiết. Bạn thử gõ lần lượt từng lệnh sau:
$sudo set LD_PRELOAD=/usr/local/lib/xvnkb.so $sudo set LANG=UTF-8
Xác lập các biến trên cần gì phải sudo ? Cứ định nghĩa vô tư trong session của user.
dạ sudo là thói quen của Ubuntu user ạ ...
Đừng đổi thừa. Tui cũng là ubuntu user đây
Thói quen cái gì cũng sudo là bậy bạ và không hiểu mình đang làm cái gì.
Em tìm mãi không thấy file xvnkb.so. Ai có không? Gửi cho em với.
to viasilia: xvnkb.so là share object (?) của xvnkb. Bạn phải build xvnkb thì sẽ có file đó. Cách build: Đọc manual của xvnkb.
Oja
Em tìm mãi không thấy file xvnkb.so. Ai có không? Gửi cho em với.
[erl=http://people.vnoss.net/~vnpenguin/pub/xvnkb-ubuntu-6.10beta.tgz]xvnkb-ubuntu-6.10beta.tgz[/erl]
$ tar xvzf xvnkb-ubuntu-6.10beta.tgz(compiled on Ubuntu 6.10-beta)
Em chép file .so vào lib không được. Nó báo "not permission". Mà sao em đánh $ tar xvzf xvnkb-ubuntu-6.10beta.tgz nó báo là không tìm thấy file. Chả hiểu gì cả. Định thử một tí mà khổ quá.
nó bảo not permission thì sudo
nó bảo khôgn tìm thấy file tức là gõ sai đâu đó hoặc nằm sai thư mục rồi.
Lệnh copy là gì? Em toàn cop thủ công thôi.
Lệnh copy là gì? Em toàn cop thủ công thôi.
1/cp.
2/Thủ công là thế nào nhỉ? ![]()
Nếu muốn Copy kiểu kéo thả thì phải cho quyền thêm thư mục đó bằng lệnh chmod. Còn không thì dùng Terminal với lệnh cp -r <source file> <dest file>
ho ho ... bây giờ thì check cái gì cũng "yes" rùi mà nó vẫn thấy nó báo error khi $make
Mình ko rành lắm về ngôn ngữ lập trình nên giờ cũng chẳng biết nó bị lỗi gì nữa . Đây là code em làm mấy bác coi coi nếu biết chỉ mình với :root@macatung-desktop:/home/macatung/Software/xvnkb-0.2.9# ./configure --use-extstroke Configuration for xvnkb 0.2.9 on Linux Type "./configure --help" for more information Checking uchar... no Checking ushort... yes Checking uint... yes Checking ulong... yes Checking dynamic linking loader... yes Checking X11 lib... /usr/X11R6 Checking pkg-config... yes Checking Xft... yes Compile options: Enable XFT: yes Enable spell checking: yes Enable extended keystroke: yes Enable ABC liked Telex keystroke: no done. Type "make" to compile root@macatung-desktop:/home/macatung/Software/xvnkb-0.2.9# make cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c xvnkb.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c visckey.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c property.c property.c: In function ‘VKGetValue’: property.c:66: warning: dereferencing type-punned pointer will break strict-aliasing rules property.c: In function ‘VKGetValues’: property.c:90: warning: dereferencing type-punned pointer will break strict-aliasing rules property.c: In function ‘VKGetString’: property.c:113: warning: pointer targets in return differ in signedness property.c: In function ‘VKSetString’: property.c:122: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness cc -O3 -s -shared -fpic -Wl,-soname,xvnkb.so.0.2.9 xvnkb.o visckey.o property.o -o xvnkb.so.0.2.9 -L/usr/X11R6/lib -ldl cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c data.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c flash.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c main.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c event.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c mainwin.c mainwin.c: In function ‘VKDrawIcon’: mainwin.c:42: warning: pointer targets in passing argument 3 of ‘XftTextExtentsUtf8’ differ in signedness mainwin.c: In function ‘VKCalcMainWindowSize’: mainwin.c:91: warning: pointer targets in passing argument 3 of ‘XftTextExtentsUtf8’ differ in signedness mainwin.c: In function ‘VKCreateMainWindow’: mainwin.c:136: warning: pointer targets in passing argument 7 of ‘XChangeProperty’ differ in signedness mainwin.c:138: warning: pointer targets in passing argument 7 of ‘XChangeProperty’ differ in signedness cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c menu.c menu.c: In function ‘CalculateItemWidth’: menu.c:164: warning: pointer targets in passing argument 3 of ‘XftTextExtentsUtf8’ differ in signedness menu.c: In function ‘VKCreateMenuWindow’: menu.c:218: warning: pointer targets in passing argument 3 of ‘XftTextExtentsUtf8’ differ in signedness cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c hotkey.c hotkey.c: In function ‘VKCreateHotkeyWindow’: hotkey.c:152: warning: pointer targets in passing argument 3 of ‘XftTextExtentsUtf8’ differ in signedness hotkey.c:174: warning: pointer targets in passing argument 3 of ‘XftTextExtentsUtf8’ differ in signedness cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c systray.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c mode.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c session.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c xconfig.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c xresource.c cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c label.c label.c: In function ‘VKSetLabel’: label.c:57: warning: pointer targets in passing argument 3 of ‘XftTextExtentsUtf8’ differ in signedness cc -fpic -O3 -s -fomit-frame-pointer -D_REENTRANT -DUSE_XFT -I/usr/include/freetype2 -DVERSION=\"0.2.9\" -Wall -I/usr/X11R6/include -c button.c button.c: In function ‘VKCreateButton’: button.c:83: warning: pointer targets in passing argument 3 of ‘XftTextExtentsUtf8’ differ in signedness cc -O3 -s data.o flash.o main.o event.o mainwin.o menu.o hotkey.o systray.o mode.o property.o session.o xconfig.o xresource.o label.o button.o msgbox.o -o xvnkb -L/usr/X11R6/lib -lX11 -ldl -lXft -lXrender -lfontconfig -lfreetype -lz -lX11 msgbox.o: In function `VKMsgBoxDraw':msgbox.c:(.text+0x19d): undefined reference to `vk_fontset' msgbox.o: In function `VKCreateMsgBoxWindow':msgbox.c:(.text+0x431): undefined reference to `vk_fontset' :msgbox.c:(.text+0x49d): undefined reference to `vk_fontset' :msgbox.c:(.text+0x5b0): undefined reference to `vk_fontset' collect2: ld returned 1 exit status make: *** [xvnkb] Error 1 root@macatung-desktop:/home/macatung/Software/xvnkb-0.2.9# make install cc -O3 -s data.o flash.o main.o event.o mainwin.o menu.o hotkey.o systray.o mode.o property.o session.o xconfig.o xresource.o label.o button.o msgbox.o -o xvnkb -L/usr/X11R6/lib -lX11 -ldl -lXft -lXrender -lfontconfig -lfreetype -lz -lX11 msgbox.o: In function `VKMsgBoxDraw':msgbox.c:(.text+0x19d): undefined reference to `vk_fontset' msgbox.o: In function `VKCreateMsgBoxWindow':msgbox.c:(.text+0x431): undefined reference to `vk_fontset' :msgbox.c:(.text+0x49d): undefined reference to `vk_fontset' :msgbox.c:(.text+0x5b0): undefined reference to `vk_fontset' collect2: ld returned 1 exit status make: *** [xvnkb] Error 1 root@macatung-desktop:/home/macatung/Software/xvnkb-0.2.9#
Mọi người sao ko trả lời câu hỏi của bác này, tui cũng gặp phải lỗi tương tự undefined reference to `vk_fontset'
Minh cai mai nhung ko duoc nen phai danh tieng viet khong dau.
Giup minh voi.
root@tiger-lab:~# cd /home/tiger/xvnkb-0.2.9a
root@tiger-lab:/home/tiger/xvnkb-0.2.9a# ./configure
Configuration for xvnkb 0.2.9a on Linux
Type "./configure --help" for more information
Checking uchar... no
Checking ushort... yes
Checking uint... yes
Checking ulong... yes
Checking dynamic linking loader... yes
Checking X11 lib... no
root@tiger-lab:/home/tiger/xvnkb-0.2.9a# make
make: *** No targets specified and no makefile found. Stop.
root@tiger-lab:/home/tiger/xvnkb-0.2.9a# make install
make: *** No rule to make target `install'. Stop.
root@tiger-lab:/home/tiger/xvnkb-0.2.9a#to tiger: Forum có sẵn bộ gõ tiếng Việt.
Lỗi khi configure: checking X11lib no. Như vậy làm sao make được.
Nếu ai cài đầy đủ các lib (xft, xlib-dev, essential-build...)mà vẫn bị lỗi thì hãy sửa lại file config.h :
dòng -e #ifndef __VK_CONFIG_H thành #define __VK_CONFIG_H
và bỏ phần #endif ở cuối file , đây ko biết có phải lỗi của ubuntu hay bác chuối nhà ta gõ nhanh quá ?
chúc may mắn
lam sao de minh cai duoc cac package (xft, xlib-dev,...).
cảm ơn các bạn. Mình cài được rồi. Nếu bạn nào cũng bị lỗi như mình thì cài thêm package này:
sudo apt-get install libxft-dev
VnOSS forum » ABC ... » Sao cài xvnkb quài cho ubuntu hông được kà ?
Powered by FluxBB
[ Generated in 1,307 seconds, 7 queries executed ]