deb

Conform with File Hierarchy Standard on Linux: where to put binary examples for a library?

China☆狼群 提交于 2019-12-24 15:33:12
问题 I am creating a debian package for a library and would like to install binary samples. I was thinking to put them under /usr/share/libname , but lintian complains (arch-dependent-file-in-usr-share). According FHS this correct, but where can put those files? 回答1: It's actually not correct according to the FHS; /usr/share is quite explicitly for "architecture-independent data". /usr/lib is the arch-dependent equivalent, and that's probably what you want ( /usr/lib/libname ). See http://www

Scripts installed by the deb package have wrong prefix

匆匆过客 提交于 2019-12-24 10:48:30
问题 Building our own deb packages we've run into the issue of having to patch manually some scripts so they get the proper prefix. In particular, We're building mono We're using official tarballs. The scripts that end up with wrong prefix are: mcs, xbuild, nunit-console4, etc An example of a wrong script: #!/bin/sh exec /root/7digital-mono/mono/bin/mono \ --debug $MONO_OPTIONS \ /root/7digital-mono/mono/lib/mono/2.0/nunit-console.exe "$@" What should be the correct end result: #!/bin/sh exec /usr

db_input in postinst doesn't work

家住魔仙堡 提交于 2019-12-24 10:45:21
问题 I have a problem with postinst script, I have to ask root password for MySQL to create some user for my application. I know, it's bad practice to use db_input in postinst however I really need it. Why this postinst doesn't work when I install my app form repository but works properly when I install it as .deb package? postinst: #!/bin/bash -e . /usr/share/debconf/confmodule db_input high my_app/mysql_root_password || true db_go error: dpkg: error processing my-app (--configure): subprocess

sudo: effective uid is not 0, is sudo installed setuid root?

放肆的年华 提交于 2019-12-19 05:01:49
问题 I am trying to create deb package from LXC rootfs, and after creating it I want to install that package any computer. Up to this point I achieved packaging and installing deb package, however after installation of LXC package, I cannot be superuser in that lxc. I get this error when I use "sudo" command. sudo: effective uid is not 0, is sudo installed setuid root? thanks in advance. 回答1: I just had this same exact problem on Mac OS after strangely deciding to screw my own system by doing:

how to install R packages “RNetCDF” and “ncdf” on Ubuntu?

孤街浪徒 提交于 2019-12-18 15:48:56
问题 I would like to use the R packages RNetCDF and ncdf in Ubuntu. When I try install.packages('RNetCDF') or install.packages('ncdf') , I get similar errors: ... ncdf.c:3:20: fatal error: netcdf.h: No such file or directory compilation terminated. make: *** [ncdf.o] Error 1 ERROR: compilation failed for package ‘ncdf’ ... Warning message: In install.packages("ncdf") : installation of package ‘ncdf’ had non-zero exit status The packages libnetcdf6 and netcdf-bin from the Ubuntu repository are

How to create .deb packages on Mac OS X

元气小坏坏 提交于 2019-12-18 12:18:49
问题 I am trying to upload my app on Cydia and it requires .deb package. I am unable to figure out how to make .deb packages on mac. I am using 10.6.3 when I write this command on terminal dpkg-deb -b MyProgram Terminal output is -bash: dpkg-deb: command not found I've install fink, Mac ports insert Mac DVD to find out but nothing helps. 回答1: It's available on Homebrew: brew install dpkg If you don't have Homebrew installed, go to brew.sh. It's a simple one-liner to install. Homebrew is less

Tool that figures out order in which patches should be applied? [closed]

纵然是瞬间 提交于 2019-12-13 08:17:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Background: I am trying to get Ubuntu to work under FIPS mode. One of the packages that I need to FIPSify is openssh. According to CentOS openssh *.spec file one of the patches that they apply on top of openssh source code is openssh-6.6-fips.patch . However, debian packaging code does not have that patch at all

How to get any useful information when JDeb fails to create a Debian package?

你离开我真会死。 提交于 2019-12-12 04:37:01
问题 I use JDeb for a few days. I try to create a Debian package for my Java based first person shooter. I use Ant as a build tool. I put this line into my Ant script at the very beginning: <taskdef name="pure-java-deb" classname="org.vafer.jdeb.ant.DebAntTask" classpath="lib/ant/jdeb-1.3.jar"/> I try to use this library further: <delete failonerror="false" file="${destdir}/control" /> <echo file="${destdir}/control"> <![CDATA[ Package: ${project-unix-name} Version: 0 Section: Games Priority: low

Visual Studio mouse over debugging doesn't work for particular variable

允我心安 提交于 2019-12-12 02:38:23
问题 I am trying to debug a controller and a particular variable does not show the tooltip. I tried restarting the computer and visual studio to no avail. [HttpPut] [Route("{id}")] public async Threading.Task<IHttpActionResult> Put([FromUri] Guid id, [FromBody] Api.Document documentModel) { var test = await PutOrStatusCodeAsync(documentModel, id).ConfigureAwait(true); return test; } ALL other variables can be moused over: But not the one I need: I added it to the watch list and am getting

Unity3D scene blank in ubuntu

为君一笑 提交于 2019-12-12 02:25:35
问题 I am very new with unity3d. I download unity3d in format .deb file and install it. Is it because it missed configuration or something not support? Thank 回答1: have you checked all your graphics drivers? this black screen can happen if it is not all updated, go to the terminal in Ubuntu and try this command - sudo apt-get install xserver-xorg-video-intel, Once you've done that click this link and try installing the new build of Unity if you haven't http://beta.unity3d.com/download/f4fc8fd4067d