如何从启动板编译程序

我试着查看文档,但我无法弄清楚。 make和./configure不起作用所以我想我会问这里。

我正试图在13.10上安装这个( https://launchpad.net/livewallpaper )。 我把它解压缩到/ usr / local / src。 我已经安装了build essentials,checkinstall,cvs,mercurial,git-core和subversion。

我需要运行哪些终端命令来安装它?

colton@Persistence:/usr/local/src/livewallpaper-0.4.1$ make make: *** No targets specified and no makefile found. Stop. colton@Persistence:/usr/local/src/livewallpaper-0.4.1$ ./configure bash: ./configure: No such file or directory colton@Persistence:/usr/local/src/livewallpaper-0.4.1$ 

不要费心make自己。 软件源附带一个debian/目录,这意味着您可以自己构建软件包。

  1. 安装一些基本的构建依赖项:

     sudo apt-get install dpkg-dev build-essential bzr 
  2. 签出代码:

     bzr branch lp:livewallpaper 
  3. 进入下载的来源:

     cd livewallpaper 
  4. 尝试构建包:

     debuild -uc -us 

    由于这是一个普通的源目录,并且没有经典的debian .dscapt-get source下载,您可能会看到以下警告:

     This package has a Debian revision number but there does not seem to be an appropriate original tar file or .orig directory in the parent directory; [...] 

    回答“y”。

  5. 它可能首先失败一行:

     dpkg-checkbuilddeps: Unmet build dependencies: [...] 
  6. 从上面的步骤安装构建依赖项:

     sudo apt-get install [...] 
  7. 再建一次:

     debuild -uc -us 

    这需要一段时间。

  8. 安装已构建的包:

     $ ls -al ../livewallpaper*.deb -rw-r--r-- 1 gert gert 966020 Oct 16 01:32 livewallpaper_0.4.1-0_amd64.deb -rw-r--r-- 1 gert gert 84242 Oct 16 01:32 livewallpaper-config_0.4.1-0_amd64.deb -rw-r--r-- 1 gert gert 45874 Oct 16 01:32 livewallpaper-config-dbg_0.4.1-0_amd64.deb -rw-r--r-- 1 gert gert 142000 Oct 16 01:32 livewallpaper-dbg_0.4.1-0_amd64.deb -rw-r--r-- 1 gert gert 15744 Oct 16 01:32 livewallpaper-dev_0.4.1-0_all.deb -rw-r--r-- 1 gert gert 47258 Oct 16 01:32 livewallpaper-doc_0.4.1-0_all.deb -rw-r--r-- 1 gert gert 73196 Oct 16 01:32 livewallpaper-indicator_0.4.1-0_amd64.deb -rw-r--r-- 1 gert gert 13118 Oct 16 01:32 livewallpaper-indicator-dbg_0.4.1-0_amd64.deb -rw-r--r-- 1 gert gert 10680 Oct 16 01:32 livewallpaper-nautilus_0.4.1-0_amd64.deb 

    使用dpkg -i ../livewallpaper*.deb安装它们

  9. 如果您在另一台计算机上安装软件包而不是在其上构建软件包,则上述步骤可能会因未满足的依赖项而失败。 在这种情况下,运行sudo apt-get install -f来解决它们,它将完成livewallpaper软件包的安装。