下了一个Workrave 1.9.2 不会安装,【终于搞定,谢谢lainme大大的帮忙!】

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
lukechen117
帖子: 26
注册时间: 2008-05-01 3:02

下了一个Workrave 1.9.2 不会安装,【终于搞定,谢谢lainme大大的帮忙!】

#1

帖子 lukechen117 » 2010-09-08 10:56

下了一个Workrave 1.9.2 不会安装,麻烦高手给指点以下。

看了他的readme,了好像要在ubuntu上安装需要好多的东东。
总结一下,方便和我一样的菜鸟们。

第一步 运行 configure
代码:
./configure


如果提示缺少文件再新立得你面找,基本上都是叫libxxxx-dev(xxx 是提示的名字,比如glib,glibmm等等)

第二步 安装 checkinstall (不知道有没有必要,反正我装了)
代码:
sudo aptitude install checkinstall


第三步 安装

代码:
make
sudo checkinstall


ps. checkinstall 的过程中清关闭新立得,要不然会提示安装失败。

能力有限,将的不对的地方还希望大家多包涵。
上次由 lukechen117 在 2010-09-09 1:56,总共编辑 2 次。
头像
xcz
帖子: 307
注册时间: 2009-03-18 18:47

Re: 下了一个Workrave 1.9.2 不会安装,麻烦高手给指点以下。

#2

帖子 xcz » 2010-09-08 12:17

Workrave新德利里面好像有吧
或者你安装看看缺什么依赖新德利里找了装了
唉,这么久了我还什么都不会,什么时候才能升级到菜鸟级别呢。。。
获得武功秘籍的方法
发现自己就是个2,cpufreq降频只降一个核
lukechen117
帖子: 26
注册时间: 2008-05-01 3:02

Re: 下了一个Workrave 1.9.2 不会安装,麻烦高手给指点以下。

#3

帖子 lukechen117 » 2010-09-08 20:42

新德利里面的是1.9.1 版本的。 没有最新的1.9.2
最新的本版好像要:


Step 1. Installing MinGW cross compiler
=======================================

Workrave for Windows is compiled using MinGW. MinGW can be obtained
from http://mingw.org/.

On Ubuntu/Debian, the following three package need to be installed.

mingw32 (4.2.1)
mingw32-binutils (2.20)
mingw32-runtime (3.15.2)

Alternatively, you can run the 'build-cross.sh" script from the
'build/win32/crossbuild' directory to download, extract, configure,
compile and install the MinGW packages. The cross compiler tool chain
is installed in /usr/local/cross-tools. Note that this script is no
longer maintained in favour of the standard Ubuntu/Debian packages(运行了'build-cross.sh‘但是完成后没有找到/usr/local/cross-tools文件夹)


Step 2. Installing required packages
====================================

Workrave requires a number of 3rd party packages. All of these
packages can be downloaded, extracted, configured, compiled and
installed by running the 'build-packages.sh" script from the
'build/win32/crossbuild'. The cross compiled packages are installed in
/usr/local/cross-packages.(运行了'build-packages.sh‘但是完成后没有找到/usr/local/cross-packages文件夹)


Step 3. Installing InnoSetup
============================

Workrave uses InnoSetup to create the installer. InnoSetup 5 must be
installed with wine.(不知道什么是InnoSetup)


Step 4. Build Harpoon and Applet——更弄不明白了!!
================================

This step must be executed on Window...

- Install the Window 7 SDK
- Open a Command Prompt, go to the common/win32 directory and run buildall.cmd
- In the Command Prompt window, go to frontend/win32/applet/src/ directory and run buildall.cmd

The generated DLLs and EXEs must be copied to Linux for step 5.


Step 5. Setup Workrave's Tinderbox
==================================

- Copy the 'build/win32/tinderbox' directory to ~/src/tinderbox (You
need to edit build/win32/tinderbox/Makefile if you choose a
different location)

- Create the following empty directories
- ~/src/tinderbox/snapshots
- ~/src/tinderbox/prebuilt/Debug
- ~/src/tinderbox/prebuilt/Debug64
- ~/src/tinderbox/prebuilt/Release
- ~/src/tinderbox/prebuilt/Release64

- Copy the harpoon en applet DLLs and EXEs build in step 4 to the
prebuilt directories


Step 6. Compile Workrave
========================

In the ~/src/tinderbox directory, run 'make all'.

Tinderbox will checkout the latest version from git, compile it and
generate an installer.

看起来像是for windows,但确实是linux的安装步骤。

高手帮忙看以下
上次由 lukechen117 在 2010-09-08 21:12,总共编辑 2 次。
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#4

帖子 lainme » 2010-09-08 20:58

你这个是for windows版本,找for linux的
lukechen117
帖子: 26
注册时间: 2008-05-01 3:02

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#5

帖子 lukechen117 » 2010-09-08 21:06

lainme 写了:你这个是for windows版本,找for linux的
大哥,确实不是“for windows版本“的, 你看:

On Ubuntu/Debian, the following three package need to be installed.

The cross compiler tool chain
is installed in /usr/local/cross-tools. Note that this script is no
longer maintained in favour of the standard Ubuntu/Debian packages


还有好多,就不一一举例了。

有兴趣研究一下的大大可以下一个看看http://www.workrave.org/
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#6

帖子 lainme » 2010-09-08 21:16

Workrave for Windows is compiled using MinGW. MinGW can be obtained
后面的是说如何在Linux下编译一个windows版本,显然不是这个文件

源码里带的install和readme文件确实是linux下编译linux版本的,你看看。估计你找错地方了
lukechen117
帖子: 26
注册时间: 2008-05-01 3:02

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#7

帖子 lukechen117 » 2010-09-08 21:46

lainme 写了:
Workrave for Windows is compiled using MinGW. MinGW can be obtained
后面的是说如何在Linux下编译一个windows版本,显然不是这个文件

源码里带的install和readme文件确实是linux下编译linux版本的,你看看。估计你找错地方了
恩你说的很对,可是源代码里带的readme 写的是:
Workrave 1.9.2
==============

Please visit http://www.workrave.org for more information.

BUILD
-----

This document only discusses compilation on Unix (like OSes).
Information on how to compile Workrave on Windows can be found in
build/cmake/README (native compilation on windows) and
build/win32/README (cross-compilation on Linux)——之前贴的那个readme就是“build/win32/”文件夹下的README

Read the 'INSTALL' file for more detailed directions on compilation on
Unix and OSX.

直接./configure 后却穿现 configure: error: X11 required on Unix platform 过程中还有好多格no 不全都是yes

仔细在读readme却发现是“This document only discusses compilation on Unix (like OSes).“, INSTALL 也是“Read the 'INSTALL' file for more detailed directions on compilation on
Unix and OSX.“


所以现在看起来,想必是没有没有原生linux版的了。的要cross-compilation on Linux??
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#8

帖子 lainme » 2010-09-08 21:54

Read the 'INSTALL' file for more detailed directions on compilation on
Unix and OSX.
这个就是linux原生版啊 :em20

看install :em20
lukechen117
帖子: 26
注册时间: 2008-05-01 3:02

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#9

帖子 lukechen117 » 2010-09-08 22:09

lainme 写了:
Read the 'INSTALL' file for more detailed directions on compilation on
Unix and OSX.
这个就是linux原生版啊 :em20

看install :em20
谢谢大大的耐心指导,可是 我运行 ./configure 的时候出现 configure: error: X11 required on Unix platform
是说明少什么呢?


这里是INSTALL的部分
The simplest way to compile this package is:

1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system.

Running `configure' might take a while. While running, it prints
some messages telling which features it is checking for.—— 这里就过不去,configure: error: X11 required on Unix platform


2. Type `make' to compile the package.

3. Optionally, type `make check' to run any self-tests that come with
the package, generally using the just-built uninstalled binaries.

4. Type `make install' to install the programs and any data files and
documentation. When installing into a prefix owned by root, it is
recommended that the package be configured and built as a regular
user, and only the `make install' phase executed with root
privileges.

5. Optionally, type `make installcheck' to repeat any self-tests, but
this time using the binaries in their final installed location.
This target does not install anything. Running this target as a
regular user, particularly if the prior `make install' required
root privileges, verifies that the installation completed
correctly.

6. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.

7. Often, you can also type `make uninstall' to remove the installed
files again. In practice, not all packages have tested that
uninstallation works correctly, even though it is required by the
GNU Coding Standards.

8. Some packages, particularly those that use Automake, provide `make
distcheck', which can by used by developers to test that all other
targets like `make install' and `make uninstall' work correctly.
This target is generally not run by end users.
完整的INSTALL
附件
INSTALL.txt
(15.21 KiB) 已下载 44 次
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#10

帖子 lainme » 2010-09-08 22:19

没有检测到X……

你开X了吗?
lukechen117
帖子: 26
注册时间: 2008-05-01 3:02

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#11

帖子 lukechen117 » 2010-09-08 22:25

lainme 写了:没有检测到X……

你开X了吗?
不知道…… 不会……
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#12

帖子 lainme » 2010-09-08 22:29

安装 libx11-dev,如果还不行,再安装xorg-dev
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#13

帖子 lainme » 2010-09-08 22:43

实在不行就别折腾了,未必要用最新的啊
lukechen117
帖子: 26
注册时间: 2008-05-01 3:02

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#14

帖子 lukechen117 » 2010-09-08 22:53

lainme 写了:安装 libx11-dev,如果还不行,再安装xorg-dev
装了你说的两个,现在又有新的要装。
checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.10 gmodule-2.0 gthread-2.0) were not met:

No package 'glib-2.0' found
No package 'gmodule-2.0' found
No package 'gthread-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
不知道怎么装。
lukechen117
帖子: 26
注册时间: 2008-05-01 3:02

Re: 下了一个Workrave 1.9.2 不会安装,要求要安装InnoSetup,Window 7 SDK……

#15

帖子 lukechen117 » 2010-09-08 22:56

lainme 写了:实在不行就别折腾了,未必要用最新的啊
哎,我觉着也是,中间还装了一个 auto-apt 本想这它呢自动下载安装./configure所需要的文件来这。——ailurus是这么说的,不过没说能下载,只说能安装,呵呵。可惜不管用阿
回复