| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2075 人关注过本帖
标题:my first Linux kernel code with some problems in Makefile maybe...
只看楼主 加入收藏
蚕头燕尾
Rank: 10Rank: 10Rank: 10
来 自:Gryffindo
等 级:贵宾
威 望:12
帖 子:734
专家分:1546
注 册:2013-3-24
结帖率:96.08%
收藏
已结贴  问题点数:20 回复次数:9 
my first Linux kernel code with some problems in Makefile maybe...
sorry for writing this in English, Because there are no Sougou in my Linux....
-----------------------------------------------------------------------------
Ok, this is my first try to write some kernel code, and definitely, I have meat some trouble.

There is the source code "hello.c":
#include <linux/module.h>
#if defined(CONFIG_SMP)
#define __SMP__
#endif
#if defined(CONFIG_MODVERSIONS)
#define MODVERSIONS
#include <linux/modversions.h>
#endif
#include <linux/kernel.h>
int init_module(void)
{
    printk(KERN_DEBUG "Hello, kernel!\n");
    return 0;
}
void cleanup_module(void)
{
    printk(KERN_DEBUG "Good-bye, kernel!\n");
}
---------------------------------------------------
There is the Makefile:
# standards
INCLUDE        = /usr/src/linux/include
CC         = gcc
CFLAGS         = -D__KERNEL__ -I$(INCLUDE) -DMODULE -Wall -O2
TARGET    = hello
SRC    = hello.c
all: $(TARGET).o
    gcc $(SRC) -c $(TAEGET).o
clean:
    rm -f *.o *~ core
---------------------------------------------------
when I run "make" from the terminal, it present like this:
gcc -D__KERNEL__ -I/usr/src/linux/include -DMODULE -Wall -O2   -c -o hello.o hello.c
hello.c:4:26: fatal error: linux/module.h: No such file or directory
compilation terminated.
make: *** [hello.o] Error 1
---------------------------------------------------
I have search this Error from Internet, but unfortunately, I still don't know why...
I'm looking for you help now...
Please type with Chinese directly, I can certainly understand what you will say.

Thank you for your time.
搜索更多相关主题的帖子: problems Because English include writing 
2014-12-24 07:25
rjsp
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:528
帖 子:9007
专家分:53942
注 册:2011-1-18
收藏
得分:0 
usr/src/linux/include 目录中没有 linux/module.h ?
2014-12-24 08:31
azzbcc
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:江西财经大学
等 级:贵宾
威 望:81
帖 子:3293
专家分:12919
注 册:2012-11-4
收藏
得分:5 
什么系统? 我就是 Ubuntu 14.04 ,正在用搜狗输入法


[fly]存在即是合理[/fly]
2014-12-24 09:08
蚕头燕尾
Rank: 10Rank: 10Rank: 10
来 自:Gryffindo
等 级:贵宾
威 望:12
帖 子:734
专家分:1546
注 册:2013-3-24
收藏
得分:0 
回复 3楼 azzbcc
12.04~
____________

what a pity! I failed to install sogou to my Linux~

学习编程,为的是表达自己的思想,而不是被别人的思想所禁锢。要先明白自己想干嘛,而不要先问别人让你干嘛。               

                                                                                                                    Black Cat      Hello Tomorrow~
2014-12-24 09:52
蚕头燕尾
Rank: 10Rank: 10Rank: 10
来 自:Gryffindo
等 级:贵宾
威 望:12
帖 子:734
专家分:1546
注 册:2013-3-24
收藏
得分:0 
回复 2楼 rjsp
When I first see the compile message, I got the same mind with you.
But when I opened the
"usr/src/linux/include", I got shocked!
There are still 6 dir!
The name of this 6 dir are:
linux-headers-3.2.0-23
linux-headers-3.2.0-23-generic
linux-headers-3.2.0-24
linux-headers-3.2.0-24-generic
linux-headers-3.2.0-74
linux-headers-3.2.0-74-generic
-----------
I expect there should be only one dir named "linux", but why there are so many of them!
a little bit strange!
======================
So I think there must be some mistakes in my codes.

学习编程,为的是表达自己的思想,而不是被别人的思想所禁锢。要先明白自己想干嘛,而不要先问别人让你干嘛。               

                                                                                                                    Black Cat      Hello Tomorrow~
2014-12-24 10:06
azzbcc
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:江西财经大学
等 级:贵宾
威 望:81
帖 子:3293
专家分:12919
注 册:2012-11-4
收藏
得分:0 
http://pinyin.

搜狗输入法


[fly]存在即是合理[/fly]
2014-12-24 10:58
蚕头燕尾
Rank: 10Rank: 10Rank: 10
来 自:Gryffindo
等 级:贵宾
威 望:12
帖 子:734
专家分:1546
注 册:2013-3-24
收藏
得分:0 
回复 6楼 azzbcc
I have downloaded this before, but I still filled to install it, it's complicated...
but, still, thank you~

学习编程,为的是表达自己的思想,而不是被别人的思想所禁锢。要先明白自己想干嘛,而不要先问别人让你干嘛。               

                                                                                                                    Black Cat      Hello Tomorrow~
2014-12-24 11:10
蚕头燕尾
Rank: 10Rank: 10Rank: 10
来 自:Gryffindo
等 级:贵宾
威 望:12
帖 子:734
专家分:1546
注 册:2013-3-24
收藏
得分:0 
回复 6楼 azzbcc
sudo dpkg -i sogou_pinyin_linux_1.1.0.0037_i386.deb
[sudo] password for bliss:
Selecting previously unselected package sogoupinyin:i386.
(Reading database ... 203381 files and directories currently installed.)
Unpacking sogoupinyin:i386 (from sogou_pinyin_linux_1.1.0.0037_i386.deb) ...
dpkg: dependency problems prevent configuration of sogoupinyin:i386:
 sogoupinyin:i386 depends on fcitx (>= 1:4.2.8.3-3~).
 sogoupinyin:i386 depends on fcitx-bin.
 sogoupinyin:i386 depends on fcitx-modules.
 sogoupinyin:i386 depends on fonts-droid.
 sogoupinyin:i386 depends on unzip.
 sogoupinyin:i386 depends on fcitx-libs (>= 4.2.7).
 sogoupinyin:i386 depends on fcitx-libs-qt (>= 4.2.7).
 sogoupinyin:i386 depends on libc6 (>= 2.8).
 sogoupinyin:i386 depends on libgcc1 (>= 1:4.1.1).
 sogoupinyin:i386 depends on libidn11 (>= 1.13).
 sogoupinyin:i386 depends on libopencc1 (>= 0.1.0).
 sogoupinyin:i386 depends on libqt4-dbus (>= 4:4.8.0).
 sogoupinyin:i386 depends on libqt4-declarative (>= 4:4.8.0).
 sogoupinyin:i386 depends on libqt4-network (>= 4:4.8.0).
 sogoupinyin:i386 depends on libqtcore4 (>= 4:4.8.0).
 sogoupinyin:i386 depends on libqtgui4 (>= 4:4.8.0).
 sogoupinyin:i386 depends on libstdc++6 (>= 4.1.1).
 sogoupinyin:i386 depends on zlib1g (>= 1:1.2.0).
dpkg: error processing sogoupinyin:i386 (--install):
 dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for libglib2.0-0 ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Errors were encountered while processing:
 sogoupinyin:i386
------------------------------------------------------>>>>>for azzbcc


学习编程,为的是表达自己的思想,而不是被别人的思想所禁锢。要先明白自己想干嘛,而不要先问别人让你干嘛。               

                                                                                                                    Black Cat      Hello Tomorrow~
2014-12-24 14:49
蚕头燕尾
Rank: 10Rank: 10Rank: 10
来 自:Gryffindo
等 级:贵宾
威 望:12
帖 子:734
专家分:1546
注 册:2013-3-24
收藏
得分:0 
1.
sudo apt-get install fcitx fcitx-bin ...
----------------------------------------------
There are some parts of the results after running this code:
----------------------------------
zabbix-server-pgsql : Conflicts: zabbix-proxy-mysql but 1:1.8.11-1 is to be installed
                       Conflicts: zabbix-proxy-pgsql but 1:1.8.11-1 is to be installed
                       Conflicts: zabbix-proxy-sqlite3 but 1:1.8.11-1 is to be installed
                       Conflicts: zabbix-server-mysql but 1:1.8.11-1 is to be installed
 zentyal-common : Conflicts: sudo-ldap but 1.8.3p1-1ubuntu3.6 is to be installed
 zephyr-server : Conflicts: zephyr-server-krb5 but 3.0.1-1 is to be installed
 zephyr-server-krb5 : Conflicts: zephyr-server
 zope-quotafolder : Depends: zope3 but it is not installable or
                             zope2.10 but it is not installable or
                             zope2.9 but it is not installable or
                             zope2.8 but it is not installable or
                             zope2.7 but it is not installable or
                             zope2.6 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
==================================================================================================
2.
sudo dpkg -P sogoupinyin:i386
----------------------------------------------------
There are some parts of the results after running this code:
------------------------
(Reading database ... 203789 files and directories currently installed.)
Removing sogoupinyin:i386 ...
Purging configuration files for sogoupinyin:i386 ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for libglib2.0-0 ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
============================================================
Then what should I do?

----------------------------------->>>>>for azzbcc


学习编程,为的是表达自己的思想,而不是被别人的思想所禁锢。要先明白自己想干嘛,而不要先问别人让你干嘛。               

                                                                                                                    Black Cat      Hello Tomorrow~
2014-12-24 19:12
azzbcc
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:江西财经大学
等 级:贵宾
威 望:81
帖 子:3293
专家分:12919
注 册:2012-11-4
收藏
得分:15 
azzbcc@XJH-PC:~/Download$ ls
sogou_pinyin_linux_1.1.0.0037_amd64.deb
azzbcc@XJH-PC:~/Download$ sudo dpkg -i sogou_pinyin_linux_1.1.0.0037_amd64.deb
[sudo] password for azzbcc:
Selecting previously unselected package sogoupinyin.
(正在读取数据库 ... 系统当前共安装有 146447 个文件和目录。)
Preparing to unpack sogou_pinyin_linux_1.1.0.0037_amd64.deb ...
Unpacking sogoupinyin (1.1.0.0037) ...
dpkg: dependency problems prevent configuration of sogoupinyin:
sogoupinyin 依赖于 fcitx (>= 1:4.2.8.3-3~);然而:
  未安装软件包 fcitx。

 sogoupinyin 依赖于 fcitx-bin;然而:
  未安装软件包 fcitx-bin。
 sogoupinyin 依赖于 fcitx-module-dbus (>= 1:4.2.8);然而:
  未安装软件包 fcitx-module-dbus。
 sogoupinyin 依赖于 fcitx-modules;然而:
  未安装软件包 fcitx-modules。
 sogoupinyin 依赖于 fcitx-libs (>= 4.2.7);然而:
  未安装软件包 fcitx-libs。
 sogoupinyin 依赖于 fcitx-libs-qt (>= 4.2.7);然而:
  未安装软件包 fcitx-libs-qt。
 sogoupinyin 依赖于 libopencc1 (>= 0.1.0);然而:
  未安装软件包 libopencc1。
 sogoupinyin 依赖于 libqt4-dbus (>= 4:4.8.0);然而:
  未安装软件包 libqt4-dbus。
 sogoupinyin 依赖于 libqt4-declarative (>= 4:4.8.0);然而:
  未安装软件包 libqt4-declarative。
 sogoupinyin 依赖于 libqt4-network (>= 4:4.8.0);然而:
  未安装软件包 libqt4-network。
 sogoupinyin
dpkg: error processing package sogoupinyin (--install):
 依赖关系问题 - 仍未被配置
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.40.0-2) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
在处理时有错误发生:
 sogoupinyin
azzbcc@XJH-PC:~/Download$ sudo dpkg -P sogoupinyin
(正在读取数据库 ... 系统当前共安装有 146861 个文件和目录。)
Removing sogoupinyin (1.1.0.0037) ...
Purging configuration files for sogoupinyin (1.1.0.0037) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for libglib2.0-0:amd64 (2.40.0-2) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
azzbcc@XJH-PC:~/Download$ sudo apt-get install fcitx
正在读取软件包列表... 完成
正在分析软件包的依赖关系树     
正在读取状态信息... 完成     
将会安装下列额外的软件包:
  fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3
  fcitx-frontend-qt4 fcitx-libs fcitx-libs-gclient fcitx-libs-qt fcitx-module-dbus fcitx-module-kimpanel
  fcitx-module-lua fcitx-module-x11 fcitx-modules fcitx-ui-classic libaudio2 liblua5.2-0 libmysqlclient18 libqt4-dbus
  libqt4-declarative libqt4-network libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml libqt4-xmlpatterns libqtcore4
  libqtdbus4 libqtgui4 mysql-common qdbus qtchooser qtcore4-l10n
建议安装的软件包:
  fcitx-tools fcitx-m17n kdebase-bin plasma-widgets-kimpanel nas libqt4-declarative-folderlistmodel
  libqt4-declarative-gestures libqt4-declarative-particles libqt4-declarative-shaders qt4-qmlviewer libqt4-dev
  libicu48 qt4-qtconfig qt4-default qt5-default
下列【新】软件包将被安装:
  fcitx fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data fcitx-frontend-all fcitx-frontend-gtk2
  fcitx-frontend-gtk3 fcitx-frontend-qt4 fcitx-libs fcitx-libs-gclient fcitx-libs-qt fcitx-module-dbus
  fcitx-module-kimpanel fcitx-module-lua fcitx-module-x11 fcitx-modules fcitx-ui-classic libaudio2 liblua5.2-0
  libmysqlclient18 libqt4-dbus libqt4-declarative libqt4-network libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml
  libqt4-xmlpatterns libqtcore4 libqtdbus4 libqtgui4 mysql-common qdbus qtchooser qtcore4-l10n
升级了 0 个软件包,新安装了 36 个软件包,要卸载 0 个软件包,有 360 个软件包未被升级。
需要下载 13.0 MB 的软件包。
解压缩后会消耗掉 51.8 MB 的额外空间。
您希望继续执行吗? [Y/n] Y
获取:1 http://mirrors. trusty/universe fcitx-libs amd64 1:4.2.8.3-3 [104 kB]
获取:2 http://mirrors. trusty/universe fcitx-libs-gclient amd64 1:4.2.8.3-3 [18.5 kB]
获取:3 http://mirrors. trusty/main qtcore4-l10n all 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [586 kB]
获取:4 http://mirrors. trusty/main libqtcore4 amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [1,547 kB]
获取:5 http://mirrors. trusty/main libqt4-xml amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [95.1 kB]
获取:6 http://mirrors. trusty/main libqtdbus4 amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [180 kB]
获取:7 http://mirrors. trusty/main qtchooser amd64 39-g4717841-3 [18.8 kB]
获取:8 http://mirrors. trusty/main qdbus amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [28.8 kB]
获取:9 http://mirrors. trusty/main libqt4-dbus amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [6,428 B]
获取:10 http://mirrors. trusty/main libaudio2 amd64 1.9.4-1 [57.1 kB]                              
获取:11 http://mirrors. trusty/main libqt4-network amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [542 kB]
获取:12 http://mirrors. trusty/main libqt4-script amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [777 kB]
获取:13 http://mirrors. trusty/main libqt4-sql amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [97.6 kB]
获取:14 http://mirrors. trusty/main libqt4-xmlpatterns amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [1,027 kB]
获取:15 http://mirrors. trusty/main libqt4-declarative amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [1,076 kB]
获取:16 http://mirrors. trusty/main libqtgui4 amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [4,129 kB]
获取:17 http://mirrors. trusty/universe fcitx-libs-qt amd64 1:4.2.8.3-3 [72.5 kB]                  
获取:18 http://mirrors. trusty/main liblua5.2-0 amd64 5.2.3-1 [80.5 kB]                             
获取:19 http://mirrors. trusty-updates/main mysql-common all 5.5.40-0ubuntu0.14.04.1 [14.1 kB]      
获取:20 http://mirrors. trusty-updates/main libmysqlclient18 amd64 5.5.40-0ubuntu0.14.04.1 [598 kB]
获取:21 http://mirrors. trusty/main libqt4-sql-mysql amd64 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 [30.3 kB]
获取:22 http://mirrors. trusty/universe fcitx-bin amd64 1:4.2.8.3-3 [38.9 kB]                       
获取:23 http://mirrors. trusty/universe fcitx-data all 1:4.2.8.3-3 [129 kB]                        
获取:24 http://mirrors. trusty/universe fcitx-modules amd64 1:4.2.8.3-3 [1,398 kB]                  
获取:25 http://mirrors. trusty/universe fcitx all 1:4.2.8.3-3 [5,494 B]                             
获取:26 http://mirrors. trusty/universe fcitx-config-common all 0.4.7-1 [6,358 B]                  
获取:27 http://mirrors. trusty/universe fcitx-config-gtk amd64 0.4.7-1 [43.2 kB]                    
获取:28 http://mirrors. trusty/universe fcitx-frontend-all all 1:4.2.8.3-3 [5,192 B]               
获取:29 http://mirrors. trusty/universe fcitx-module-dbus amd64 1:4.2.8.3-3 [28.4 kB]               
获取:30 http://mirrors. trusty/universe fcitx-frontend-gtk2 amd64 1:4.2.8.3-3 [14.0 kB]            
获取:31 http://mirrors. trusty/universe fcitx-frontend-gtk3 amd64 1:4.2.8.3-3 [14.5 kB]            
获取:32 http://mirrors. trusty/universe fcitx-frontend-qt4 amd64 1:4.2.8.3-3 [38.1 kB]              
获取:33 http://mirrors. trusty/universe fcitx-module-kimpanel amd64 1:4.2.8.3-3 [17.4 kB]           
获取:34 http://mirrors. trusty/universe fcitx-module-lua amd64 1:4.2.8.3-3 [17.3 kB]               
获取:35 http://mirrors. trusty/universe fcitx-module-x11 amd64 1:4.2.8.3-3 [81.6 kB]               
获取:36 http://mirrors. trusty/universe fcitx-ui-classic amd64 1:4.2.8.3-3 [96.5 kB]               
下载 13.0 MB,耗时 31秒 (419 kB/s)                                                                                   
正在从软件包中解出模板:100%
Selecting previously unselected package fcitx-libs:amd64.
(正在读取数据库 ... 系统当前共安装有 146447 个文件和目录。)
Preparing to unpack .../fcitx-libs_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-libs:amd64 (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-libs-gclient:amd64.
Preparing to unpack .../fcitx-libs-gclient_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-libs-gclient:amd64 (1:4.2.8.3-3) ...
Selecting previously unselected package qtcore4-l10n.
Preparing to unpack .../qtcore4-l10n_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_all.deb ...
Unpacking qtcore4-l10n (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libqtcore4:amd64.
Preparing to unpack .../libqtcore4_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqtcore4:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libqt4-xml:amd64.
Preparing to unpack .../libqt4-xml_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqt4-xml:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libqtdbus4:amd64.
Preparing to unpack .../libqtdbus4_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqtdbus4:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package qtchooser.
Preparing to unpack .../qtchooser_39-g4717841-3_amd64.deb ...
Unpacking qtchooser (39-g4717841-3) ...
Selecting previously unselected package qdbus.
Preparing to unpack .../qdbus_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking qdbus (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libqt4-dbus:amd64.
Preparing to unpack .../libqt4-dbus_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqt4-dbus:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libaudio2:amd64.
Preparing to unpack .../libaudio2_1.9.4-1_amd64.deb ...
Unpacking libaudio2:amd64 (1.9.4-1) ...
Selecting previously unselected package libqt4-network:amd64.
Preparing to unpack .../libqt4-network_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqt4-network:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libqt4-script:amd64.
Preparing to unpack .../libqt4-script_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqt4-script:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libqt4-sql:amd64.
Preparing to unpack .../libqt4-sql_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqt4-sql:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libqt4-xmlpatterns:amd64.
Preparing to unpack .../libqt4-xmlpatterns_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqt4-xmlpatterns:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libqt4-declarative:amd64.
Preparing to unpack .../libqt4-declarative_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqt4-declarative:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package libqtgui4:amd64.
Preparing to unpack .../libqtgui4_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqtgui4:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package fcitx-libs-qt:amd64.
Preparing to unpack .../fcitx-libs-qt_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-libs-qt:amd64 (1:4.2.8.3-3) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../liblua5.2-0_5.2.3-1_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.3-1) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../mysql-common_5.5.40-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-common (5.5.40-0ubuntu0.14.04.1) ...
Selecting previously unselected package libmysqlclient18:amd64.
Preparing to unpack .../libmysqlclient18_5.5.40-0ubuntu0.14.04.1_amd64.deb ...
Unpacking libmysqlclient18:amd64 (5.5.40-0ubuntu0.14.04.1) ...
Selecting previously unselected package libqt4-sql-mysql:amd64.
Preparing to unpack .../libqt4-sql-mysql_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4_amd64.deb ...
Unpacking libqt4-sql-mysql:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
Selecting previously unselected package fcitx-bin.
Preparing to unpack .../fcitx-bin_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-bin (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-data.
Preparing to unpack .../fcitx-data_1%3a4.2.8.3-3_all.deb ...
Unpacking fcitx-data (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-modules.
Preparing to unpack .../fcitx-modules_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-modules (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx.
Preparing to unpack .../fcitx_1%3a4.2.8.3-3_all.deb ...
Unpacking fcitx (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-config-common.
Preparing to unpack .../fcitx-config-common_0.4.7-1_all.deb ...
Unpacking fcitx-config-common (0.4.7-1) ...
Selecting previously unselected package fcitx-config-gtk.
Preparing to unpack .../fcitx-config-gtk_0.4.7-1_amd64.deb ...
Unpacking fcitx-config-gtk (0.4.7-1) ...
Selecting previously unselected package fcitx-frontend-all.
Preparing to unpack .../fcitx-frontend-all_1%3a4.2.8.3-3_all.deb ...
Unpacking fcitx-frontend-all (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-module-dbus.
Preparing to unpack .../fcitx-module-dbus_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-module-dbus (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-frontend-gtk2:amd64.
Preparing to unpack .../fcitx-frontend-gtk2_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-frontend-gtk2:amd64 (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-frontend-gtk3:amd64.
Preparing to unpack .../fcitx-frontend-gtk3_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-frontend-gtk3:amd64 (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-frontend-qt4:amd64.
Preparing to unpack .../fcitx-frontend-qt4_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-frontend-qt4:amd64 (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-module-kimpanel.
Preparing to unpack .../fcitx-module-kimpanel_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-module-kimpanel (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-module-lua.
Preparing to unpack .../fcitx-module-lua_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-module-lua (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-module-x11.
Preparing to unpack .../fcitx-module-x11_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-module-x11 (1:4.2.8.3-3) ...
Selecting previously unselected package fcitx-ui-classic.
Preparing to unpack .../fcitx-ui-classic_1%3a4.2.8.3-3_amd64.deb ...
Unpacking fcitx-ui-classic (1:4.2.8.3-3) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for libgtk2.0-0:amd64 (2.24.23-0ubuntu1) ...
Processing triggers for libgtk-3-0:amd64 (3.10.8-0ubuntu1) ...
正在设置 fcitx-libs:amd64 (1:4.2.8.3-3) ...
正在设置 fcitx-libs-gclient:amd64 (1:4.2.8.3-3) ...
正在设置 qtcore4-l10n (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 libqtcore4:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 libqt4-xml:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 libqtdbus4:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 qtchooser (39-g4717841-3) ...
正在设置 qdbus (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 libqt4-dbus:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 libaudio2:amd64 (1.9.4-1) ...
正在设置 libqt4-network:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 libqt4-script:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 libqt4-sql:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 libqt4-xmlpatterns:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 liblua5.2-0:amd64 (5.2.3-1) ...
正在设置 mysql-common (5.5.40-0ubuntu0.14.04.1) ...
正在设置 libmysqlclient18:amd64 (5.5.40-0ubuntu0.14.04.1) ...
正在设置 libqt4-sql-mysql:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 fcitx-bin (1:4.2.8.3-3) ...
正在设置 fcitx-data (1:4.2.8.3-3) ...
正在设置 fcitx-modules (1:4.2.8.3-3) ...
正在设置 fcitx (1:4.2.8.3-3) ...
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/ja_JP (xinput-ja_JP) in 自动模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/ko_KR (xinput-ko_KR) in 自动模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_CN (xinput-zh_CN) in 自动模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_TW (xinput-zh_TW) in 自动模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_HK (xinput-zh_HK) in 自动模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_SG (xinput-zh_SG) in 自动模式
正在设置 fcitx-config-common (0.4.7-1) ...
正在设置 fcitx-config-gtk (0.4.7-1) ...
正在设置 fcitx-frontend-all (1:4.2.8.3-3) ...
正在设置 fcitx-module-dbus (1:4.2.8.3-3) ...
正在设置 fcitx-frontend-gtk2:amd64 (1:4.2.8.3-3) ...
正在设置 fcitx-frontend-gtk3:amd64 (1:4.2.8.3-3) ...
正在设置 fcitx-module-kimpanel (1:4.2.8.3-3) ...
正在设置 fcitx-module-lua (1:4.2.8.3-3) ...
正在设置 fcitx-module-x11 (1:4.2.8.3-3) ...
正在设置 fcitx-ui-classic (1:4.2.8.3-3) ...
正在设置 libqt4-declarative:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 libqtgui4:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4) ...
正在设置 fcitx-libs-qt:amd64 (1:4.2.8.3-3) ...
正在设置 fcitx-frontend-qt4:amd64 (1:4.2.8.3-3) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
azzbcc@XJH-PC:~/Download$ sudo dpkg -i sogou_pinyin_linux_1.1.0.0037_amd64.deb
Selecting previously unselected package sogoupinyin.
(正在读取数据库 ... 系统当前共安装有 147050 个文件和目录。)
Preparing to unpack sogou_pinyin_linux_1.1.0.0037_amd64.deb ...
Unpacking sogoupinyin (1.1.0.0037) ...
dpkg: dependency problems prevent configuration of sogoupinyin:
sogoupinyin 依赖于 libopencc1 (>= 0.1.0);然而:
  未安装软件包 libopencc1。

dpkg: error processing package sogoupinyin (--install):
 依赖关系问题 - 仍未被配置
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.40.0-2) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
在处理时有错误发生:
 sogoupinyin
azzbcc@XJH-PC:~/Download$ sudo dpkg -P sogoupinyin
(正在读取数据库 ... 系统当前共安装有 147458 个文件和目录。)
Removing sogoupinyin (1.1.0.0037) ...
Purging configuration files for sogoupinyin (1.1.0.0037) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for libglib2.0-0:amd64 (2.40.0-2) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
azzbcc@XJH-PC:~/Download$ sudo apt-get install libopencc1
正在读取软件包列表... 完成
正在分析软件包的依赖关系树     
正在读取状态信息... 完成     
下列【新】软件包将被安装:
  libopencc1
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 360 个软件包未被升级。
需要下载 614 kB 的软件包。
解压缩后会消耗掉 9,064 kB 的额外空间。
获取:1 http://mirrors. trusty/main libopencc1 amd64 0.4.3-2build1 [614 kB]
下载 614 kB,耗时 1秒 (403 kB/s)  
Selecting previously unselected package libopencc1:amd64.
(正在读取数据库 ... 系统当前共安装有 147050 个文件和目录。)
Preparing to unpack .../libopencc1_0.4.3-2build1_amd64.deb ...
Unpacking libopencc1:amd64 (0.4.3-2build1) ...
正在设置 libopencc1:amd64 (0.4.3-2build1) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
azzbcc@XJH-PC:~/Download$ sudo dpkg -i sogou_pinyin_linux_1.1.0.0037_amd64.deb
Selecting previously unselected package sogoupinyin.
(正在读取数据库 ... 系统当前共安装有 147079 个文件和目录。)
Preparing to unpack sogou_pinyin_linux_1.1.0.0037_amd64.deb ...
Unpacking sogoupinyin (1.1.0.0037) ...
正在设置 sogoupinyin (1.1.0.0037) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.40.0-2) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
azzbcc@XJH-PC:~/Download$ im-config
azzbcc@XJH-PC:~/Download$



[ 本帖最后由 azzbcc 于 2014-12-25 11:47 编辑 ]


[fly]存在即是合理[/fly]
2014-12-25 11:45
快速回复:my first Linux kernel code with some problems in Makefile maybe.. ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020730 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved