date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,366,812,867,000 |
I have Linux Mint installed on a VM: Linux jonathan-mint-virtual-machine 3.5.0-43-generic #66-Ubuntu SMP Wed Oct 23 17:33:43 UTC 2013 i686 i686 i686 GNU/Linux I tried to compile something that uses<signal.h>, but it couldn't find it.
What can I install so that a compiler looking for basic header files will find it?
|
To determine what package to install you can use this tool.
$ apt-file search <file>
Searching for a vaguely named file, signal.h is going to be tricky though. You'll likely need more information than just the name.
Example
Here are the 1st 6 occurrences.
$ apt-file search /signal.h | head -6
avr-libc: /usr/lib/avr/i... | What's the right way to install an appropriate package containing <signal.h> on a Linux Mint VM? |
1,366,812,867,000 |
So I'm following this tutorial on rolling out your own toy unix.
I'm stuck at compiling the sample source on this page. This is a download link to the sample source code
The Makefile looks like this:
SOURCES=boot.o main.o
CC=gcc
CFLAGS=-nostdlib -nostdinc -fno-builtin -fno-stack-protector
LDFLAGS=-Tlink.ld
ASFLAGS=-f... |
These sound like you're mixing code for different architectures. See here: could not read symbols, file in wrong format.
excerpt
You get that error when you change architectures. Are those CHOST/CFLAGS settings new?
Questions
I wonder if the Toy Unix OS can only be built on x86 and not x64. Something to look into... | making a toy unix os : issues with ld |
1,366,812,867,000 |
having failed to install a gnome extension from their website I looked for another way on Google. The guide I found was like:
sudo apt-get install gnome-common
git clone git://git.gnome.org/gnome-shell-extensions
cd gnome-shell-extensions
./autogen.sh –prefix=$HOME/.local – enable-extensions=”dock”
The last command f... |
If I understand correctly, gnome guys introduced an m4 macro in recent versions of glib - GLIB_GSETTINGS and distribute it with glib sources - here it is in gsettings.m4: AC_DEFUN([GLIB_GSETTINGS]....
Your package of interest, gnome-extensions makes use of this macro at line 19 of configure.ac and tries to search for ... | GLIB_GSETTINGS not found while compiling gnome extension |
1,366,812,867,000 |
I want to compile and install a software on a new VM. The software was installed successfully on a different VM by a different admin, but I want to duplicate the exact command with the options that he used. Is this possible? BTW, the folder from where he ran ./configure is still intact.
|
If the whole directory where ./configure was previously run is wholly intact, then within that directory will be a file called config.status. The config.status file is generated when ./configure +args is run, and it records the arguments that are run. If you want to do everything exactly the same, and the new system... | Compiling software with the same options as a previous install |
1,366,812,867,000 |
I am trying to install a number of python 3 modules (e.g. regex, cytoolsz, spacy) that require compilation, but they all fail with an error identical to the below (bottom). I have tried to check for the presence of "limits.h" using the the grep below. I have reinstalled gcc, g++ build-essentials, python3-dev etc, but ... |
Analysis (you can skip it, but it may help diagnose similar problems in the future)
Your GCC complains about a missing limits.h file referenced from /usr/include/limits.h (another limits.h file):
/usr/include/limits.h:124:26: error: no include path in which to search for limits.h
Checking with /usr/include/limits.h w... | Installing python modules fail - "limits.h" missing? |
1,366,812,867,000 |
I'm not sure if this is the best place to ask this - please point me in the right direction if there's a better place.
Let's say, hypothetically, that I have two machines - A is a development machine, and B is a production machine. A has software like a compiler that can be used to build software from source, while B ... |
Using what you have so far and if the makefile is generated with GNU autotools, I would set the target location or install path with
./configure --prefix=/somewhere/else/than/the/usual/usr/local
and then run
make && make install
and finally copy the files from the prefix folder to the usr/ folder in the other machin... | Can binaries built from source be installed on a second machine? |
1,366,812,867,000 |
I want to compile Nano from source for my friend.
I have successfully compiled it on all of my computers and he's having Linux Mint 18.1 too.
I don't know why; or better said I don't know what is missing in his system for UTF-8 support as per this configuration message:
*** Insufficient UTF-8 support was detected in ... |
It looks like you need to install libncursesw5-dev and/or libslang2-dev; that’s what’s missing according to the config log.
| Compiling Nano with UTF-8 support on one computer failed |
1,366,812,867,000 |
I'm going through Linux from Scratch and I'm on the page that discusses the toolchain. Up until this point I've understood everything, but I don't understand the term "toolchain".
From what I've read the toolchain is a set of tools that will be used to compile tools on the new distribution. This is required so that so... |
The toolchain is simply tools to build software (compiler, assembler, linker, libraries, and a few useful utilities).
In this case the important part is host-independent - that is independent of the tools downloaded.
There are several reasons why you might want to rebuild the tools:
It is harder to sneak in backdoors... | LFS: What is the toolchain and why is it important? |
1,366,812,867,000 |
When running python3 setup.py build it ended with this:
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/sklearn... |
I found this post which mentioned to configure which ATLAS (linear algebra package) version to use:
$ sudo update-alternatives --set libblas.so.3 /usr/lib/atlas-base/atlas/libblas.so.3
$ sudo update-alternatives --set liblapack.so.3 /usr/lib/atlas-base/atlas/liblapack.so.3
After that, I was happily surprised that in ... | Building Python packages succeeds, but package is improperly built |
1,366,812,867,000 |
Is there any proper way to build a minimal kernel for FreeBSD? The FreeBSD Handbook has the lack of information about this. By default /boot/kernel directory has the pretty big size - around 450MB. I want to minimize kernel fingerprint and remove all unnecessary kernel modules and options. Should I use "NO_MODULES" op... |
There are a number of things you can do to reduce the size and number of files in /boot/kernel.
Possibly the best space saving is to be had by setting WITHOUT_KERNEL_SYMBOLS in /etc/src.conf (if this file doesn't already exist, just create it), and the next time you installkernel, the debug symbol files won't be insta... | How to properly build a minimal FreeBSD kernel? |
1,366,812,867,000 |
I'm on CentOS 6.5. Specifically, I'm running this AMI: Adobe Media Server 5 Extended.
I followed these steps:
$ sudo yum groupinstall "Development Tools"
$ sudo yum install glib2-devel fuse-devel libevent-devel \
libxml2-devel openssl-devel
$ wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-sta... |
libevent is library. library most often doesn't go with any executables, so "command not found" for executable with same name as library is perfectly fine.
| Cannot install libevent on CentOS 6.5 |
1,366,812,867,000 |
I tried to install darkice with lame. To compile it, I need ALSA and Pulsaudio:
checking for lame library at /usr ... found at /usr
checking for vorbis libraries at /usr ... configure: WARNING: not found, building without Ogg Vorbis
checking for opus libraries at /usr ... configure: WARNING: not found, building witho... |
Ok, Its just that you need to install the *-devel rpm's and thats it.
For pulseaudio and alsa it's: alsa-lib-devel, pulseaudio-libs-devel
| Where are my ALSA, pulseaudio lib |
1,366,812,867,000 |
The gcc compiler use target-triplets for cross-compilation. I see some of these target triples like "x86_64-pc-linux-gnu" (the most common). I understand what means but I don't know how specify another unix-like system instead "linux-gnu". Is there any document for it? and the "pc" seems be optional (should I care abo... |
In order to cross compile, you must have (or build) a cross-compiler; gcc cannot, by default, just build for any target that it could be configured for. There is a list of possibilities in the gcc source package, I believe.
Building a cross compiler toolchain is not a simple undertaking, so if you want to do that, yo... | Is there any pattern to specify target triples in GCC? |
1,366,812,867,000 |
I'm trying to build a project, and when I use the command make, I get the following errors:
/bin/sh: line 4: .deps/ipset_bitmap_ipmac.Tpo: Permission denied
make[2]: *** [ipset_bitmap_ipmac.lo] Error 126
This file, .deps/ipset_bitmap_ipmac.Tpo, was created by make during the build with the following permissions: -rw-... |
With a name like .deps/ipset_bitmap_ipmac.Tpo, it's pretty likely that the file was not meant to be executable.
What's happening here is that there's a line in the Makefile that looks like
$(SOME_VARIABLE) .deps/ipset_bitmap_ipmac.Tpo
or more likely
$(SOME_VARIABLE) $(ANOTHER_VARIABLE)
where the value of ANOTHER_VAR... | Files created by 'make' aren't getting executable permissions by default |
1,366,812,867,000 |
From here: http://fedoraproject.org/wiki/Common_kernel_problems#Can.27t_find_root_filesystem_.2F_error_mounting_.2Fdev.2Froot
A lot of these bugs end up being a broken initrd due to bugs in
mkinitrd.
Get the user to attach their initrd for their kernel to the
bz, and also their /etc/modprobe.conf, or have them... |
An initrd (short for “initial RAM drive”) is a filesystem that's mounted when the Linux kernel boots, before the “real” root filesystem. This filesystem is loaded into memory by the bootloader, and remains in memory until the real boot. The kernel executes the program /linuxrc on the initrd; its job is to mount the re... | Kernel Panic - Can't find root filesystem / error mounting /dev/root |
1,366,812,867,000 |
I have a game I'm writing which recently required libjpeg. I wrote some code using libjpeg on some-other-machine and it worked as expected. I pulled the code to this machine and tried compiling and running it and have been getting the runtime error out of libjpeg:
Wrong JPEG library version: library is 62, caller exp... |
Please use LD_LIBRARY_PATH. Refer to these useful links as well:
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
http://linuxmafia.com/faq/Admin/ld-lib-path.html
| Linking issues with libjpeg |
1,366,812,867,000 |
I tried building mutter module using JHBuild and it fails:
<snip>
make[4]: Entering directory `/home/wena/src/mutter/src'
CC screen.lo
core/screen.c: In function 'reload_monitor_infos':
core/screen.c:445:16: error: variable 'display' set but not used [-Werror=unused-but-set-variable]
core/screen.c: At top level:... |
Using the example in the question, put the following inside the "~.jhbuildrc" file (reference):
module_autogenargs = {"mutter": "--disable-Werror"}
| How to stop warnings from being treated as errors in JHBuild |
1,366,812,867,000 |
I am working directly on a dev server and want to build my own vim, for my purposes, not for all system users. The build scenario is:
hg clone https://vim.googlecode.com/hg/ vim
cd vim/src
./configure --enable-rubyinterp --enable-multibyte
make
The result of ./vim --version is:
VIM - Vi IMproved 7.3 (2010 Aug 15, com... |
It looks like you forgot to run make install.
If you did run make install, but none of your vim files are found under /usr/local/share/vim, then perhaps you have a permissions problem -- that is, you're not allowed to install files there.
If the latter is true, then just build it with a install location set to a place... | Fall-back for $VIM is invalid |
1,366,812,867,000 |
How can I get a list of all installed 32 Bit packages on a Gentoo Linux system?
|
The eix tool comes to help:
eix -I --installed-with-use abi_x86_32
-I selects only installed packages
--installed-with-use selects packages with certain USE flag
In this particular case you could even omit -I, but I included it just as useful option in general. You may also be interested in the option -U, which sel... | List all 32 Bit packages on a Gentoo System |
1,366,812,867,000 |
I see this on the Internet:
General Setup --->
<*/M> Kernel .config support
[*] Enable access to .config through /proc/config.gz
But can't understand what's that mean?
I have an arm-based board(NanoPi-M1 with Allwinner H3 sun8iw7p1 SoC) that has Debian Jessie OS, and I have no config.gz file in /proc di... |
I see this on the Internet:
It specifies the location in Linux's menuconfig from where you can enable /proc/config.gz. You must recompile the Linux kernel to do this. On an ARM-based board this may not be mainline Linux but a different tree specific to the SoC used on the ARM board.
So, the steps would be:
Figure o... | How to enable access to the kernel config file through /proc/config.gz? |
1,366,812,867,000 |
when cross-compiling a package, do you also cross-compile the dependencies or just install the dependencies, and then cross-compile the final package for my target embedded Linux device?
|
You need to cross-compile all the dependencies: every piece of code linked to the final binary (whether statically or dynamically) needs to be built for the target platform.
Depending on the platform (and distribution) you're building on, and the target platform, you might find your cross-dependencies are already avai... | Do you cross-compile the dependencies of a package or just perform install? |
1,366,812,867,000 |
I tried to replace a line in a Makefile with sed -i -e 's|$(bindir)\/embossupdate|:|' Makefile, but I got sed: can't read Makefile: No such file or directory
FROM ubuntu:16.04
...
# EMBOSS (ftp://emboss.open-bio.org/pub/EMBOSS/)
ENV EMBOSS_VER 6.6.0
RUN apt-get install libhpdf-dev libpng12-dev libgd-dev -y
ADD EMBOSS-... |
The Makefile is not created until you've run the configure script. Try placing the sed command after the invocation of configure.
I haven't checked if the sed edit is doing what it should or not, but the main issue is probably that the Makefile simply doesn't exist yet at that point in your script.
In general, I woul... | sed: can't read Makefile: No such file or directory |
1,366,812,867,000 |
The Linux kernel documentation page for building external modules (https://www.kernel.org/doc/Documentation/kbuild/modules.txt) says this:
=== 2. How to Build External Modules
To build external modules, you must have a prebuilt kernel available
that contains the configuration and header files used in the build.
... |
ad 1. and 2. The kernel image is called vmlinux, that's right, but that's not what you actually need when you want to build external modules. It's the configuration and header files from this kernel that is needed.
ad 3. To build modules, internal or external, you need support for loadable modules in this kernel, you ... | Some questions regarding linux kernel external module build process |
1,416,896,969,000 |
First a bit of context for those who don't know gradle. It's basically like make except that you don't have to have gradle installed on your computer. It ships with projects as a file called gradlew. So for instance a gradle project could look like:
.
├── gradlew
└── src
└── main
└── java
└── c... |
For those looking to do the same thing (or similar things), it's doable by creating a new compiler that use findfile, and reuse errorformat from some other compiler + slight modifications. The end result looks like:
let s:gradlew = escape(findfile('gradlew', '.;') . " -b " . findfile('build.gradle', '.;'), ' \')
if e... | Set makeprg to gradlew |
1,416,896,969,000 |
I'm trying to build omniORB 4.1.6 under Arch Linux. When I type make, here is the message:
../../../../../src/tool/omniidl/cxx/idlpython.cc:188:26: fatal error: python3.3/Python.h: No such file or directory
# include PYTHON_INCLUDE
I'm sure both python3 and python2 were installed, and I can remember last time I was... |
Normally running
./configure
before running make should set up things correctly, but in this fall that seems not to be the case.
Python 3.3.X puts its header files in .../include/Python3.3m, whereas 2.7.x uses .../include/python2.7 (without any suffix), maybe omniORB is not aware (yet) of that suffix m.
You can make... | Python.h: No such file or directory |
1,416,896,969,000 |
I'm trying to compile a Linux Kernel to run light and paravirtualized on XenServer 5.6 fp1.
I'm using the guide given here: http://www.mad-hacking.net/documentation/linux/deployment/xen/pv-guest-basics.xml
But I'm stumped when I reached the option CONFIG_COMPAT_VDSO.
Where is it exactly in make menuconfig? The site in... |
As you had already said, it IS under "Processor Types and Features".
You are compiling Gentoo's hardened kernel source, so the code would have undergone many patches.
A quick search in Google returned this: Gentoo kernel VDSO. It looks like Gentoo has it disabled even several versions before.
Why don't you download di... | Where is CONFIG_COMPAT_VDSO in make menuconfig? |
1,416,896,969,000 |
For Windows I used to download either 32 bit binaries from ASF site or 64 bit binaries from Apache lounge site (for no particular reason). So - that was the way I new what version I have.
I've switched to Ubuntu (for educational purposes) and got used to compiling from source.
When I compile Apache server from source... |
Compiling is the process of building binaries from source. The configure script and makefile will select what's appropriate for your system. (64-bit executable for a 64-bit system, 32-bit for 32-bit.)
And if you have a 64-bit system, there is probably some potential for improved performance in using 64-bit binaries. F... | Apache server 32 binaries vs 64 binaries? what's the difference |
1,416,896,969,000 |
The overflow_stack variable is used in the kernel_ventry macro in arch/arm64/kernel/entry.S
/* Switch to the overflow stack */
adr_this_cpu sp, overflow_stack + OVERFLOW_STACK_SIZE, x0
It seems to me to be declared in arch/arm64/include/asm/stacktrace.h
DECLARE_PER_CPU(unsigned long [OVERFLOW_STACK_SIZE/sizeo... |
No, there is no other way; overflow_stack isn’t declared or defined in any header included by entry.S. But that’s not an error as far as the assembler is concerned; overflow_stack doesn’t have a local prefix, so it ends up as an undefined symbol in arch/arm64/kernel/entry.o, which is resolved when the kernel is linked... | How is overflow_stack variable included in entry.S in arm64 architecture? |
1,416,896,969,000 |
Full error message:
arm-linux-gnueabihf-g++: error trying to exec 'cc1plus': execvp: No such file or directory
So I have got this error message while trying to build a C++ project on my machine shortly after a home directory deletion and recovery on Ubuntu 18.04. I'm doubtful that this is because of something in my en... |
I fixed the problem!
To fix the cc1plus error:
The first issue was that since I am cross-compiling so I needed to first install OpenSSL on my raspberry pi and then copy that library back over to my PC.
Then I had to get a fresh copy of my sysroot folder (which was for some reason corrupted), and place my OpenSSL ins... | G++/GCC installed but still: error trying to exec 'cc1plus': execvp: No such file or directory |
1,416,896,969,000 |
I'm trying to build OpenSSH 7.9p1 from source, but I can't find a way to delete (or not include), for instance, ssh-agent, ssh-keygen, scp, sftp, sshd, etc. – of course, assuming none of those are required for the ssh command to work.
Ideally I would only need the client: the ssh command, but again, I'm not sure what ... |
Yes, you can do this with the default build system provided.
If you look at the Makefile that is generated by running the provided ./configure script, you should see that the default (first) target is
TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-... | Build OpenSSH client only |
1,416,896,969,000 |
*tldr; I would like to generally understand how the world of linux / embedded linux works. What do I need to do to take the Linux mainline and compile/deploy it on a board with different processors and peripherals, from scratch.
How I currently See It Working:
Steps to get Linux running on arbitrary board:
Get so... |
From my small experience with router hardware I played with, I can say that this is a dumb small hardware picked up just to do one thing.
At hardware level, it's simple:
U-Boot there is not only bootloader, but a BIOS in PC terms. So it's not only a bootloader, but also it initializes all hardware. At start, CPU execu... | Linux/Embedded Linux - Understanding the Kernel and additional BSP specific components [closed] |
1,416,896,969,000 |
I am trying to build Bash 4.2 as an RPM package for use on Enterprise Linux 5 systems, which come by default with 3.2.25. This works successfully, however, I want both versions to co-exist on the system, to avoid conflicts with the system package, and to allow system/other scripts to continue to use bash3 which they ... |
Though the bash autoconf version (2.63) is a little old (Sept 2008), it supports the --program-transform-name and --program-suffix features. Sadly the bash build process does not use these features as detailed by the documentation, nor does it use parameters to allow build-time processing of the man pages.
Since the n... | Build bash (or alternate linux package) with custom binary/doc name |
1,416,896,969,000 |
I was installing rfc5766-turn-server.
But it fails to launch with an error:
error while loading shared libraries: libevent_core-2.0.so.5: cannot open shared object file: No such file or directory
Here's a copy-paste of how I did the installation:
$ cd /var/tmp;
wget https://github.com/downloads/libevent/libevent/libev... |
First, the obvious question: is that library installed?
Also, is it installed for the right architecture? (E.g. a 32-bit executable requires a 32-bit library, a 64-bit executable requires a 64-bit library.)
If you just added a library to a directory in the system library path, you'll need to run ldconfig as root. Ther... | Error while loading shared libraries after installing a program |
1,416,896,969,000 |
I'm creating a deb-file and enumerating the files and paths I need to have in the package using the install file. It looks like
dir1/* path1
dir2/* path2
...
But in a result deb-file there are no hidden files from dir1 and dir2. It looks like * doesn't match hidden files.
How could I match them apart from specifying ... |
The globs used by dh_install are perl globs, which are modeled after csh globs. These do not match hidden files by default. In order to get all files, including hidden files, you will need to use two globs. Here is an example:
dir1/.* path1
dir1/* path1
Update: It has been pointed out in comments to this answer that ... | Creating deb file: hidden files specification by `install` file |
1,416,896,969,000 |
I am trying to do a build of rpm from source. I got through the ./configure and ran through a good chunk of make. Unfortunately, I keeping getting stopped up on undefined references to bzerror, bzwrite, bzflush and others. Looking around online, I see these functions are part of the bzip2 package. I've installed the d... |
The libraries would have to be picked up by configure. If you ran configure, then installed the bzip2 development files, then re-ran configure, it may still have picked wrong information from its cache. Run make distclean, then ./configure again.
| unresolved dependencies of bz* files for rpm make from source |
1,416,896,969,000 |
Let's say that I have a Makefile that has two “main” targets: foo.o and clean. The former one has a recipe to create the foo.o file. The latter one removes all the temporary files.
To remove the need of specifying the dependencies of foo.o manually, I have target foo.d that is valid makefile specifying the dependencie... |
The solution is quite simple, but results into somewhat unreadable Makefile code.
First, we must know that include directive tries to include the file, and if it does not exist, fails. There is also -include (or sinclude) that does simply does not include the file, if it does not exist. But that is not the thing we wa... | Remake included makefile only when needed |
1,416,896,969,000 |
I was building font-manager package from AUR on my Arch system. It is throwing a warning while the process :
==> WARNING: Package contains reference to $srcdir
usr/lib/font-manager/libfontmanager.so.0.7.9
Should I worry about this warning ? Is it harmful to my system anyway ?
|
I have seen that warning on several packages that I have built in Arch. I always ignore it and haven't suffered any negative consequences yet.
| Should I worry about 'WARNING: Package contains reference to $srcdir'? |
1,416,896,969,000 |
I have the file, myapp, that is a .pyc file, and I want to make it executable. Currently, I must manually call Python to execute the program, as follows.
python /usr/bin/myapp "hello world!"
How can I permanently configure the system to execute myapp without manually invoking python, as follows?
myapp "hello world!"
... |
In Debian-based distributions, the package, binfmt-support, provides the functionality. Look in the procedure file system for the formats that were configured with installation of the package.
ls /proc/sys/fs/binfmt_misc
Make sure to also give the .pyc file/s permission to execute.
| How to make linux shell interpret a .pyc file with python in /usr/bin? |
1,416,896,969,000 |
Under Cross-Compiler-Specific Options, it says:
The default value, in case --with-sysroot is not given an argument, is
${gcc_tooldir}/sys-root.
but it appears that gcc_tooldir is not defined. Is this a nickname for
something else, and also where is it "normally"?
|
but it appears that gcc_tooldir is not defined. Is this a nickname for something else, and also where is it "normally"?
gcc_tooldir is a make variable. You should find that within the scope of a GCC build, it has a value that is functionally equivalent to that of the $(tooldir) make variable, but somewhat different... | Where is "gcc_tooldir" |
1,416,896,969,000 |
After the upgrade from gcc-5.x to gcc-6.4 all Gentoo Linux users were advised to run
emerge -e @world
which will recompile all packages on a system and takes on my i7 with 16 GB around 30 h in theory.
This will work in some simple situations, but in many cases the task stops after say 80 of 2000 packages due to a pr... |
Here's one way to do it:
Save your start time before you begin
date +%s >emergestart && emerge -e --keep-going @world
Then when the emerge inevitably stops you can resume with this script (after fixing any problematic builds)
#!/bin/bash
starttime=`cat emergestart`
eix '-I*' --format '<installedversions:DATESORT>'... | How to recompile everything efficiently on a Gentoo Linux system? |
1,416,896,969,000 |
Can I rerun my command to install KDE full
after a shutdown and will it continue? I'm installing KDE and it takes a while now. I'm on my laptop and it's pretty late here. There are many packages to come.
PS the command:
# emerge --ask kde-base/kde-meta
|
If you cancel portage and later rerun the same command the specified package will compile again. So if you e.g. start to run emerge www-client/firefox, cancel it and rerun the command again, merging www-client/firefox will start from scratch. Note that the dependency list is generated when starting emerge, so when you... | Gentoo portage continue after shutdown |
1,416,896,969,000 |
So far my compilations have either succeeded or failed but his time it just got stuck. I'm compiling gcc on a Linux Synology NAS. However, the compilation process has run for 3 days and I start to think that it will never finish. From ps I get the following output:
27513 root 2536 S /opt/bin/bash -c r=`${PWDCM... |
Well, it looks like the compile needs about 500 megs of memory, and since the system only has 64 megs, the system is thrashing: It is using swap, which works but is really, really slow.
Is there a reason you are compiling this on a system with so little memory? If it's an embedded system with a custom CPU, I would cr... | Long gcc compile time |
1,416,896,969,000 |
I'm trying to set up namecoin, but I get the following error on running makefile.unix:
$ g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH DFOURWAYSSE2 -DUSE_SSL -DUSE_UPNP=0 -o obj/nogui/net.o net.cpp
In file included from net.cpp:10:
/usr/include/miniupnpc/upnpcommands.h:11:30: error: portlistingpa... |
Alex is correct in his comment, the latest miniupnpc is broken. However you can use the working version here: http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz and then namecoind will compile fine.
| What does this error mean when installing namecoin? |
1,416,896,969,000 |
I'm trying to compile a specific version of GEOS and its PHP bindings in the Travis CI environment; they're using Ubuntu.
Here is my install script:
sudo apt-get update
sudo apt-get remove 'libgeos.*'
sudo apt-get autoremove
wget https://github.com/libgeos/libgeos/archive/$VERSION.tar.gz
tar zxf $VERSION.tar.gz
cd li... |
I did not find a way to make the extension look for the shared libraries in /usr/local/lib, but I did find a way to make libgeos install them to /usr/lib, which is where the extension is looking for them.
Just use --prefix when building libgeos:
./configure --prefix=/usr
| PHP Startup: Unable to load dynamic library : cannot open shared object file: No such file or directory |
1,460,488,047,000 |
I want to find out which compiler/linker options were used to compile the GNU C Standard Library (glibc) when installing Linux. In particular I want to get the same result of the archive libc.a when compiling glibc from source on a different machine (same version of gcc, make, binutils, etc though).
All I could find ... |
You should find everything you need to rebuild in the src.deb package that matches you .deb package. Look at apt-src(8).
| Find out glibc compilation options |
1,460,488,047,000 |
The Blackberry Playbook has formally reached EOL(april 2014), but I've installed BGShell, BGSSH-SCP-SFTP, and Term48 on it. So I have some ksh-like shell it seems with things like GNU awk 3.1.5, sed 4.1.5, grep and python, with some other coreutils elements (but no tr) etc. I'm not root. Basically I can write in the D... |
This is about confusing two different SDK1. getopt_long exists on QNX6.6. But the libc version on the Playbook doesn't have that as it has an earlier version of /proc. The error would have never happened if I had installed the Playbook OS Native SDK v2.1.0 instead of blindly following the link in the project, which wi... | ldd:FATAL: Unresolved symbol "getopt_long" called from Executable - using compiled binaries for QNX on arm. Why? |
1,460,488,047,000 |
Edit 1:
The problem seems to be related to MySQL component. because if I remove every SQL directives from config file, it does work on ftp/ftpes, sftp and ftps
Edit 2:
If I put an existing host not hosting a DB, connection to ftp daemon will hang and finally timeout, while if I put an incorrect db or a non respondin... |
And finally the answer is:
It's not a bug it's a feature
If you try to connect a db that is known in you dns but packets are drop by a firewall, then you fall in the sql timeout of the client (approx 85 sec) and no other authentication works if you have set AUthOrder with mod_sql.c first.
So my compilation option are... | Compile proftpd with MySQL authentication support on AIX |
1,460,488,047,000 |
I'm trying to make my wifi work on my newly-installed Debian Sid (amd64, kernel 3.10.11-1). The relevant line of the output of lspci is :
06:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
and this wi-fi card is not recognized :
# iwconfig
eth0 no wireless ext... |
Please enable contrib and non-free in /etc/apt/sources.list, install firmware-realtek and reboot.
| Compilation of my wifi driver (RTL8192CE) fails |
1,460,488,047,000 |
I am running a quite complicated script which changes directories and runs many other commands. All these commands are run using 'scriptname', which works fine when I execute the main script from my terminal. However, sometimes I have to ssh into a server and run the main script from there, it fails as there isn't a .... |
There are ways to change this behavior including adding ./ to your PATH environment variable, but this introduces a serious security risk to your environment. The way your scripts are written is really wrong and the correct solution is to go through all of them and fix the way local scripts are called. This is the onl... | Run script without ./ before the name |
1,460,488,047,000 |
I would like to compile less with latest fixes.
I do this:
git clone https://github.com/gwsw/less
cd less/
autoheader
autoconf
./configure
make
But make says this:
make: *** No rule to make target 'funcs.h', needed by 'main.o'. Stop.
There are no Makefile rules that create funcs.h
So, how to compile less from source... |
Here's the method I just successfully used on Ubuntu 18.04:
git clone https://github.com/gwsw/less.git
cd less
autoreconf -i # install the autoconf package if you haven't already
make -f Makefile.aut dist
This creates a directory release/less-550 containing less-550.tar.gz and less-550.zip. It also attempts to crea... | How to compile LESS pager? |
1,460,488,047,000 |
I'm running Debian 8.9 Jessie on a Linux 2.6.32-openvz-042stab120.11-amd64 OpenVZ container.
I'm trying to use curlftpfs 0.9.1 as this version has a functionality that was removed in later versions - namely, open(read+write) and open(write).
The current version is 0.9.2-9~deb8u1:
apt-cache policy curlftpfs
curlftpfs:
... |
I found out that if you install libcurl4-openssl-dev, then make won't complain about the absence of libcurl anymore:
apt-get install libcurl4-openssl-dev
Unfortunately, I'm unable to provide an explanation on why or how this happens (other than the package install this elusive libcurl).
But I have tested and confirm... | debian configure: error: "libcurl not found" |
1,460,488,047,000 |
I've read somewhere that recompiling libc with the -march=native and -mtune=native flags will provide the maximum benefit for programs, where shared libraries are used instead of static libraries. Is this true, and might there be any additional benefit by recompiling other programs?
|
The -march=native and -mtune=native options will ensure generated binaries best utilize the available processor feature sets and scheduling. Any gain in performance will relate to how much of the application code may be optimized by using the additional processor feature sets. (YMMV). Optimized libraries and binari... | Source of biggest machine-code optimization |
1,460,488,047,000 |
I have installed the GNU "core" utilites coreutils-8.21 into this location on my UNIX server:
/opt/app/p1sas1c1/apps/GNU
I would now like to ADD the findutils-4.4.2 package. My reading the INSTALL document, I see I can configure using this command:
./configure --prefix=/opt/app/p1sas1c1/apps/GNU
That is the same "p... |
make install will overwrite existing files by the same name. Other than that, it will not remove existing files. GNU coreutils and GNU findutils are intended to be used and installed alongside each other, so they don't have different files by the same name. Therefore if you install them one after the other, you'll get... | How do add GNU findutils into an existing location |
1,460,488,047,000 |
I tend to build binaries from sources.
My usual setup is the following
$HOME/build -> this gets the sources
$HOME/programs -> this is where the build happen, so where the binaries are
Once this is done I put the following in my bashrc
export MYNEWBINDIR = $HOME/programs/...
export PATH=$MYNEWBINDIR:$PATH
My question... |
It is more or less left up to the individual to do as they wish, but I would recommend that you leave directories already used by the base system or by any package manager alone, always. You really do not want to confuse a package manager by overwriting files that it has previously installed! So definitely leave /bin ... | How to correctly deal with locally built binaries? |
1,460,488,047,000 |
I made a makefile to help compile multiple C++ files, but it is giving me "command not found" errors. I need to fix it.
The errors I get:
Make: line 1: main.out::command not found
g++: error: GradeBook.o: No such file or directory
g++: error: main.o: No such file or directory
g++: fatal error: no input files
compi... |
Here's a list of typical mistakes people make with makefiles.
Issue #1 - using spaces instead of tabs
The command make is notoriously picky about the formatting in a Makefile. You'll want to make sure that the action associated with a given target is prefixed by a tab and not spaces.
That is a single Tab followed by t... | My handwritten C++ Makefile gives command not found |
1,460,488,047,000 |
I'm trying to install coreutils on NetBSD 6.1.5 using the pkgsrc system.
This is on the default install of 6.1.5. The only change made has been to install zsh and set it as my default shell for users root and any local users.
As is the pkgsrc way, I change to the directory with the pkgsrc heirachy containing the packa... |
Try the command indicated in the error message:
export FORCE_UNSAFE_CONFIGURE=1 && make
This being said, it is true the "unsafe configure" requirement seems a bit strange. Double-check the log (config.log) and see if there is something more explicit in there.
| Permissions for installing coreutils with pkgsrc on NetBSD |
1,460,488,047,000 |
I'm running FreeBSD 10 and I'd like to build dwm. I've installed Xorg using pkg install. Where are the headers located? Maybe I'm just old fashioned but I first looked in /usr/X11R6 ... not there. Anyone has any idea where Xorg will install its headers files in FreeBSD?
|
You can install dwm from port (/usr/ports/x11-wm/dwm). You can use own config.h:
make DWM_CONF=/path/to/dwm/config.h
I think you should use the port system instead of own compiling - it appears in your packages list.
| Location of Xorg headers on FreeBSD 10 |
1,460,488,047,000 |
I see that my programs install to usr/local/bin and that I can change that if I do ./configure --prefix=/usr/ at the build.
Where is the default prefix specified? Where can I change the default? Is it possible to change the default installation to /usr/bin/ for my program only instead of changing the default for the ... |
Installing locally built applications with prefix /usr is a really bad idea as the files installed may easily overwrite files installed by package managers. This may later give you issues if the package managers gets confused when file checksums no longer match, or when there are mismatches between executables and li... | Where is installation prefix set? |
1,460,488,047,000 |
I am trying to compile my favorite nano command-line text editor with some of the options.
Actually, most of the options in order to enable all features.
First, I go to Downloads directory and download the tarball:
cd Downloads
wget --continue https://www.nano-editor.org/dist/v2.8/nano-2.8.0.tar.xz
Then, I verify i... |
Nano doesn't store the compiled options as provided on the ./configure command-line, it reconstructs them based on detected features and the requested target ("tiny" Nano or normal Nano). For tiny Nano, it reports enabled options, since they add to the default; for normal Nano, it reports disabled options, since they ... | Compiling Nano editor with options |
1,460,488,047,000 |
I am using Ubuntu.
When programming in C++, the nullptr keyword is not recognized by the compiler.
It says it's not declared at this scope.
It doesn't work, even though I set the flag -std=c++11.
|
C++11 isn't a compiler, but an ISO standard implemented by a number of popular compilers. The default C++ compiler on Ubuntu is g++ from the GNU Compiler Collection. As you mentioned in your question, the -std=c++11 flag enables C++11 features in g++ as well as Clang, another C++ compiler available on Ubuntu.
The erro... | How to set C++11 as my default compiler? |
1,460,488,047,000 |
I am installing D.J.B.'s daemontools on an ubuntu 10.04 server (64 bit).
(This question is about daemontools, which is a free and open software for managing UNIX services. It is not about 'DAEMON tools', which is a commercial software for disk images, running on windows.)
I first installed the build-essential package ... |
In the meantime I was able to compile and install on Debian Squeeze, Ubuntu and also CentOS 6.0 and it works. I guess the patch from http://blog.tonycode.com/tech-stuff/setting-up-djbdns-on-linux was fixing it.
1) Install a toolchain
For Debian and Ubuntu: apt-get install build-essential
For CentOS yum groupinstall '... | How to install daemontools on ubuntu or debian from source |
1,460,488,047,000 |
I am a Linux novice, and I am attempting to compile scientific software called DL_POLY_Classic. I downloaded the zip file dl_class_1.6.tar.gz and unzipped it using the command tar xvzf dl_class_1.6.tar.gz. It gives me a series of folders containing various files for the program operation, which are described in the ... |
The error message No rule to make target dl_params.inc, needed by angfrc.o. means, that the Makefile specifies the file dl_params.inc as a dependency for the building of the file angfrc.o. So you have to somehow find or create the dl_params.inc file.
Searching the documentation indicates, that this file should contain... | Why does 'make' complain about a missing rule when I try to build a program from source? |
1,460,488,047,000 |
When I am building a debian package, often many related packages that are bundled together are being build, and also the foo-dbgsym-* versions and foo-doc packages.
For example, even relatively simple package such as make, will build additional packages:
make-dbgsym_4.2.1-1.2_amd64.deb
make-guile-dbgsym_4.2.1-1.2_amd6... |
dbgsym packages can be disabled using the noautodbgsym build option:
DEB_BUILD_OPTIONS=noautodbgsym dpkg-buildpackage -us -uc
It’s also possible to build only architecture-dependent or architecture-independent packages, by changing the --build option on dpkg-buildpackage.
Other than that, there’s no generalised way o... | building Debian package without associated packages that are bundled together |
1,460,488,047,000 |
I installed a kernel source from the official Linux kernel repository (http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.15.tar.bz2) and I recompiled it with some needed options to support the mobility IPv6. When I needed a module to encrypt some data I didn't find it among the rest of the modules already built. The... |
The first step is to determine what configuration options you need to set in order for the module to build. I use
make menuconfig
for that; / followed by the configuration option you want will tell you where to find it and what its dependencies are. For ECHAINIV, you need to enable CRYPTO and then enable ECHAINIV (as... | How to build a specific kernel module? |
1,538,791,119,000 |
Redshift
packages which are available in most distributions are dated 2016-01-02, which is > 2.5 years ago.
Like on my system - Linux Mint 19 Cinnamon 64-bit - there is only 1.11 version available:
$ apt-cache policy redshift
redshift:
Installed: (none)
Candidate: 1.11-1ubuntu1
Version table:
1.11-1ubuntu1 ... |
Since you’re on a Debian derivative, you can rebuild the packaged sources of version 1.12:
cd ${TMPDIR:-/tmp}
sudo apt install devscripts debian-keyring
dget -x http://deb.debian.org/debian/pool/main/r/redshift/redshift_1.12-2.dsc
cd redshift-1.12
sudo apt build-dep redshift
dpkg-buildpackage -us -uc
sudo dpkg -i ../r... | How do I install Redshift 1.12 on Linux Mint 19 Cinnamon from source? |
1,538,791,119,000 |
I'm interested in who builds the Debian main packages for distribution. I'm aware that packages need to be reproducably buildable and I'm not asking about any specific individuals but the process in general (e.g. how "trust" would be involved here and how decentralized it is).
At https://lwn.net/Articles/676799/ it sa... |
It's a little unclear what you really want to know, since you seem to have found good resources, but I'll try to give a short (and not accurate in every detail) description of the process and hope I get the right parts included (I haven't worked with this in Debian's own repositories, but in different iterations of a ... | Who builds the Debian packages? |
1,538,791,119,000 |
I'm trying to write a bash script to automate the install of nginx with pagespeed module.
Part of this requires me to add this: --add-module=$(MODULESDIR)/ngx_pagespeed \ to a section of the /usr/src/nginx/nginx-X.X.6/debian/rules file.
Each section is similar to:
light_configure_flags := \
$(commo... |
If it doesn't matter where in the list of options the new one goes, you could
sed '/_configure_flags *:=/ a\
--add-module=$(MODULESDIR)/ngx_pagespeed \\
' file
light_configure_flags := \
--add-module=$(MODULESDIR)/ngx_pagespeed \
$(common_configure_flags) \
... | Add Line of Text to Section of Rules File |
1,538,791,119,000 |
I really like C* Music Player (CMUS) and I just installed Fedora 22 because I had issues with Fedora 21. The thing is that I cannot find any executable to install this music player.
I tried with dnf and didn't work, here's the output:
Last metadata expiration check performed 1:10:46 ago on Sun Jul 26 16:14:36 2015.
N... |
You are missing a library called ncurses which is used by your application. Just install it with sudo yum install ncurses ncurses-devel
As your are building it from sources, you'll need to satisfy the dependencies yourself. That's what rpm packages are meant for : listing dependencies, resolving and installing them so... | Building and installing C* Music Player (CMUS) |
1,538,791,119,000 |
I don't have experience building kernel modules. And worse, I'm trying to do it on ChrUbuntu, so it seems that I cannot follow the existing Ubuntu guides. For example, this command fails:
# apt-get install linux-headers-$(uname -r)
because the ChrUbuntu kernel is version 3.4.0 and there is no Ubuntu repo for that ver... |
This is all from Redditer michaela_elise. (Thank you!)
There is a script that will get and build the ChromeOS 3.4 kernel on your Ubuntu install. This is great because now we can compile kernel mods.
The apt-get install linux-headers-$(uname -r) does not work because 3.4.0 seems to be a Google specific build and you ca... | I need a step by step guide to build kernel modules in ChrUbuntu |
1,538,791,119,000 |
-I option set header file searching path for gcc/g++, and CPLUS_INCLUDE_PATH/CPATH append the searching path list.
Then what about libs? It seems that LD_LIBRARY_PATH is just a path list for run-time library searching. -L option is necessary to specify any lib path other than /usr/lib and /usr/local/lib.
Is there an ... |
This Q appears to have been answered in the comments. Per njsg's comment,
LIBRARY_PATH is what you're looking for
"The value of LIBRARY_PATH is a colon-separated list of directories, [...] Linking using GCC also uses these directories when searching for ordinary libraries for the -l option (but directories specified ... | How to set library searching path using environment variable in compile-time |
1,538,791,119,000 |
I've just completed a simple source code modification & rebuild on a Raspberry Pi OS - bullseye machine. Because this is new to me, I'll list the steps I followed in an effort to avoid ambiguity:
$ dhcpcd --version
dhcpcd 8.1.2 # "before" version
$ sudo apt install devscripts # bui... |
You can either add the relevant lines at the top of debian/changelog (find here details on the contents of that file).
You can duplicate the current top stanza and change the version number (making an useful log comment is a good idea).
Alternatively you can use the dch tool (from devtools):
dch --local your_package_n... | How to set a new version number in a .deb package I've built |
1,538,791,119,000 |
Suppose I have a makefile that builds my package, and I only want the package to build if the package file is not present:
package: foo_0.0.0_amd64.deb
cd foo-0.0.0 && debuild -uc -us
So I am new to the debian build process, but I am anticipating that I'll either find a way to build for different architectures, or... |
On a Debian-based system, the bullet-proof way of determining the architecture, as appropriate for use in a package’s file name, is
dpkg --print-architecture
Note that architecture-independent packages use all there, and you’d have to know that in advance.
| Building packages: command which yields 'amd64' (like uname) |
1,538,791,119,000 |
I'm trying to compile php on Suse 10.2. When I run the configure script with --with-mcrypt I receive this message:
configure: error: mcrypt.h not found. Please reinstall libmcrypt
|
OpenSUSE 10.2 has been EOL since 11-30-2008. I recommend updating to a supported version like 15.1 or 42.3.
If you insist on using what you have then you'll have to build the package from source like you're doing with PHP. You will then prepend its binary and library directories to your PATH and LD_LIBRARY_PATH.
If ... | configure: error: mcrypt.h not found. Please reinstall libmcrypt |
1,538,791,119,000 |
I'm trying to create a Makefile to compile my project. However, when I use the 'math.h' library, my make fails. This is the Makefile file :
run: tema1
./tema1
build: tema1.c
gcc tema1.c -o tema1 -lm
clean:
rm *.o tema1
The part of the code where I use the pow() and sqrt() is :
float score = ... |
This happens because your Makefile doesn’t explain how to build tema1 (from Make’s perspective), so it uses its built-in rules:
run depends on tema1;
tema1 doesn’t have a definition, but there’s a C file, so Make tries to compile it using its default rule, which doesn’t specify -lm.
To fix this, say
tema1: tema1.c
... | -lm doesn't work for my Makefile |
1,538,791,119,000 |
I am compiling a C++ program with g++ and each time get a huge number of errors, forcing me to scroll up every time I want to view the first (and most relevant) error. I am wondering if there is an option when I am compiling the program that would allow me to limit the number of error messages displayed in the termina... |
Use compiling-command | head --lines 32 to output first 32 lines from compiling-command output.
You can also use compiling-command | grep "Text to search" | head --lines 32 to display first 32 finds of "Text to search".
Disabling -Wall option with gcc will not output as many errors.
| How can I limit the number of error messsages displayed after compiling a C++ program? |
1,538,791,119,000 |
I'm trying to edit a Makefile that contains:
...
install -d $(DESTDIR)/usr/lib/myApp
install -d $(DESTDIR)/usr/lib/myApp/scripts
install -t $(DESTDIR)/usr/lib/myApp/scripts \
src/scripts/ap.sh \
src/scripts/connect.sh \
src/scripts/devices.sh \
src/scripts/create_ap \
src/scripts/scan.sh
...
After... |
I believe that you need
install -t "$(DESTDIR)/usr/lib/myApp/scripts/network" -D src/scripts/*
This will create $(DESTDIR)/usr/lib/myApp/scripts/network (including intermediate directories) and copy the files src/scripts/* there.
Testing (with extra verbosity turned on):
$ touch file-{1,2,3,4}
$ install -v -t test/di... | Using install -D in Makefile |
1,538,791,119,000 |
AUR is said the largest repository out there but sometimes, when trying to build and install, and also to build and install dependencies, the outcome is not always a success.
What a medium user can do at that point?
Normally (that is, for a ubuntu user) , the idea is to build and install from source. That is temerary... |
The AUR is an unsupported repository: the quality of the PKGBUILDS varies from the very good through to the abominably bad or outright negligent.
You should always read the PKGBUILD before attempting to install anything and look at the comments on the package page to satisfy yourself that there won't be any unforseen ... | AUR package cannot be built and installed - what to do? |
1,538,791,119,000 |
I'm rebuilding world and would like to have every other file not created by the rebuilding of world to be deleted. Is there some mergemaster option for this?
|
You can use the make targets delete-old and delete-old-libs to remove obsolete files. They run interactively, unless you set BATCH_DELETE_OLD_FILES:
# pwd
/usr/src
# make -DBATCH_DELETE_OLD_FILES delete-old
Run them after make installworld.
Have a look at build(7) for more details.
A word of warning - be careful with... | Deleting all old files after rebuilding world on FreeBSD |
1,538,791,119,000 |
I'm trying to setup an environment for kernel module development in Linux. I've built the kernel in the home folder and would like to place the sources and binaries to the correct place so include correctly.
The example for building the kernel module has the following includes:
#include <linux/init.h>
#include <linux/... |
I generally approach this question like this. I'm on a Fedora 19 system but this will work on any distro that provides locate services.
$ locate "linux/init.h" | grep include
/usr/src/kernels/3.13.6-100.fc19.x86_64.debug/include/linux/init.h
/usr/src/kernels/3.13.7-100.fc19.x86_64.debug/include/linux/init.h
/usr/src/k... | Placement of kernel binary and sources for kernel module building? |
1,538,791,119,000 |
I searched but couldn't find any similar questions. I need to recompile OpenSSL with md2 support so that I can compile and install libpki. I can't for the life of me figure out how recompiling OpenSSL should be done. Should I download the current sources and compile then install?
|
You do not want to do this. For example see: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2409
| On OpenBSD, how do I recompile OpenSSL with md2 support? |
1,538,791,119,000 |
This is a follow up question to Confusion about linking boost library while compilation:
What is to do, when I generate a Makefile by qmake and I have only a third party boost lib installed (I uninstalled all boost libs from dependency management, because it always links to the boost lib from dependency management wha... |
The correct invocation according to the directory listings you gave would be:
-L/usr/local/lib/boost1.55/lib/ -lboost_system
-L is used to specify the path where libraries are found. -I is for headers, that will not help for linker errors (you'll get compiler errors if you're missing include paths).
As for boost_syst... | How to compile with third party libs properly? |
1,538,791,119,000 |
A Gentoo install still in the livecd stage (unable to boot so far) fails to emerge LVM statically. I need a statically compiled lvm in order to use it in my initrd.
My make.conf:
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="bindist mmx sse sse2 static"
The emerge compile erro... |
Works fine for me (in ~amd64 Gentoo), however try removing the udev useflag from lvm2 as a workaround, as udev is not important at initramfs stage. The static binary is called /sbin/lvm.static (requires static useflag to be built). You can check whether a binary is static or not using ldd.
echo sys-fs/lvm2 static -ude... | Gentoo how to compile LVM statically linked? |
1,538,791,119,000 |
A book I am reading refers to an include file that shows how a stack frame looks on one's UNIX system.
In particular: /usr/include/sys/frame.h
I am having trouble finding the modern equivalent. Anyone have an idea? I'm on Ubuntu 12.10.
|
A good answer was provided on Super User.
Whether or not the files discussed are precise extensions of the legacy file my author refers to remains unknown. However, one will find most of the relevant knowledge in the ptrace.h file and the calling.h file located in the /.../asm/ directory. This presumes an x86 process... | Where is the frame.h located in modern Linux implementations? (ubuntu specifically) |
1,538,791,119,000 |
If a previous kernel (assuming it is not from the stone age) compiles successfully, does it make sense to assume that old config file if copied to the new kernel, will compile successfully too?
What things need to be taken care of?
|
Copy the old .config file and then, to know what needs to be taken care of, use make oldconfig. You will be prompted interactively for needed changes in your config file. It's almost safe to answer with the default option to every question. (Usually you don't care about new drivers, and you want to use new features wh... | Precautions to be taken while make oldconfig |
1,538,791,119,000 |
I have the following linux kernel source repo cloned to a couple different hosts (my local machine and a Github Actions runner)
https://gitlab.conclusive.pl/devices/linux/-/tree/master
I'm using the kstr-sama5d27 defconfig
When building modules using make modules -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVE... |
This is caused by CONFIG_CFG80211_EXTRA_REGDB_KEYDIR which is set to /lib/firmware. When this configuration entry is not empty, it causes the build to rely on extra-certs.o, which itself depends on the directory given as the configuration value. So the build succeeds on your own system, which has /lib/firmware, but fa... | when crosscompiling this source why do I receive "No rule to make target" error on one host but not the other |
1,538,791,119,000 |
To improve compile times, the Arch wiki states,
Users with multi-core/multi-processor systems can specify the number
of jobs to run simultaneously. This can be accomplished with the use
of nproc to determine the number of available processors, e.g.
MAKEFLAGS="-j$(nproc)".
If I set this in Fish shell via set -Ux MAKE... |
Neither. In fish, command substitution cannot be quoted.
set arg "-J(nproc)"
set -S arg
$arg: set in global scope, unexported, with 1 elements
$arg[1]: |-J(nproc)|
Use
set -Ux MAKEFLAGS "-J"(nproc)
| What's the correct format for MAKEFLAGS when using Fish shell? |
1,538,791,119,000 |
I'm just learning a bit about lower-level languages and I've noticed that gcc you can specify -march and -mtune parameters to optimise the software for particular CPU families.
But I've also found people saying that building a program from source won't make it noticeably faster than downloading the binary. Surely bein... |
Distribution packages are built with reference to a pre-determined baseline (see Debian’s architecture baselines for example). Thus, in Debian, amd64 packages target generic x86-64 CPUs, with SSE2 but not SSE3 or later; i386 packages target generic i686 CPUs, without MMX or SSE. In general, the compiler defaults are u... | What microarchitecture are packages on apt/yum typically built/tuned for? |
1,538,791,119,000 |
I need to compile and run binaries on CentOS 7 but I'm having hard time running my wrapper app due to Python versions and other issues. If I compile and test binaries on Ubuntu (or any other distribution) and then move my binaries to an online CentOS 7 would I run into any binaries-platform problem?
PS: Binaries I am ... |
Short answer is that binaries from one system are not guaranteed to run correctly on another system, but they may work. They may also appear to work, but have issues.
Longer answer is that it depends on how those binaries were linked. Statically linked binaries have a better chance of running than dynamically linked b... | Are CentOS 7 binaries the same of Ubuntu or any other GNU distribution? |
1,538,791,119,000 |
I'm trying to build and install ccminer on Ubuntu 16.04 and getting the following error:
scrypt.cpp:(.text+0xa55b): undefined reference to `GOMP_parallel'
scrypt.cpp:(.text+0xa6cd): undefined reference to `GOMP_parallel'
libgomp1 is installed :
Package: libgomp1
Status: install ok installed
Priority: optional
Section... |
I had the exact same problem and, as predicted by OP, my issue was related to an Anaconda install and it got fixed after removing it.
I noticed that running locate libgomp produced an output similar to OPs but with Anaconda related results at the top.
After uninstalling it, the output was the same and I became able to... | How can I resolve this libgomp1 dependency issue? |
1,538,791,119,000 |
I am having issues compiling a claimed to be Linux compatible application on Linux Mint 18.1. The application in particular is called Lightscreen. Everything has gone smoothly besides using the make command.
Here is the command process I have done so far:
I had to first install QT 5.7 because it wouldn't work with any... |
The problem comes from <X11/X.h> (only included when compiling to Linux). It defines the following macro:
#define Success 0
This interferes with an enum member of the same name, Screenshot::Result::Success.
To fix this, open tools/screenshot.cpp, and find the following lines:
#ifdef Q_OS_LINUX
#include <QX11Info>... | Compiling LightScreen on Linux Mint 18.1 |
1,538,791,119,000 |
If for example I have compiled a simple C program that uses GTK 3 on a machine running Ubuntu, will I be able to run it on other Linux flavours?
Note: My actual questions is "Should I label my compiled program for Linux or just Ubuntu?"
eg. Should I label my downloads page as
Windows
program.exe
Linux
program... |
Linux executables are not specific to a Linux distribution. But they are specific to a processor architecture and to a set of library versions.
An executable for any operating system is specific to a processor architecture. Windows and Mac users don't care as much because these operating systems more or less only run ... | Compiled Executable |
1,538,791,119,000 |
If I build NGINX from source, how do I update it?
I'm on a Debian machine and used to install and update software on the CLI with apt-get.
|
A package manager installs the binaries and configuration files that were compiled by the package maintainer (and performs many other functions as well). But, if you build from source, then you are responsible for rebuilding from source again - for each and every upgrade instance, possibly including its dependencies a... | How do I update software that was built from source? |
1,538,791,119,000 |
I'm trying to compile Lyx 2.2 on my Debian machine from sources. As usual I run ./autogen.sh && ./configure && make, but configuration stops here
configure: error: cannot compile a simple Qt executable. Check you have the right $QTDIR.
So I've installed the qt5-default package, but it didn't solve the problem.
The $... |
QTDIR shouldn't really be necessary, but try setting it to /usr/share/qt5.
You could build the Debian source package instead:
sudo apt-get install devscripts dpkg-dev build-essential
sudo apt-get build-dep lyx
dget http://httpredir.debian.org/debian/pool/main/l/lyx/lyx_2.2.0-2.dsc
cd lyx-2.2.0
dpkg-buildpackage -us -u... | Compiling Lyx 2.2 on Debian |
1,538,791,119,000 |
I am trying to compile and install mesa3D from source.
(ftp://ftp.freedesktop.org/pub/mesa/11.0.0/mesa-11.0.0-rc3.tar.gz)
I am at the configure step
./configure \
CXXFLAGS="-O2 -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31" \
CFLAGS="-O2 -g -DDEFAULT_SOFTWARE_DEPTH_BITS=31" \
--disable-xvmc \
--disable-glx \
--disable-dri \
--w... |
Here is how I manged to install Mesa3D from source on Debian.Thanks to all people's answers and comments.
First, I had to install libdrm-dev package.
# apt-get install libdrm-dev
Then, check where the header and lib files were installed
# dpkg-query -L libdrm-dev
...
/usr/include/libdrm/drm.h
...
/usr/lib/x86_64-lin... | Install Mesa3D on Debian - LIBDRM not found by configure autoconf |
1,538,791,119,000 |
When creating a windows static library, we simply create a .lib file which should be included in the linker path.
When creating a windows shared library, along with the .dll, we also a generate a .lib file. This lib file contains the signatures of the API exposed by the library.
There are two ways to use this library... |
I can't say I understand what a "statically linked dynamic library", nor do I know anything about signatures contained in libraries (sounds interesting though: does this mean the linker is able to check for type mismatches in arguments and return types at link time? ELF definitely does not have such a feature.) so thi... | Types of dynamic linking in Unix/Linux environments |
1,538,791,119,000 |
I am new to software development, and over the course of compiling about 20 programs and dependencies from source I have seen a rough pattern, but I don't quite get it. I'm hoping you could shed some light on it.
I am SSHing on a SLC6 machine and without root permissions, I have to install all the software dependenci... |
Library files are usually prefixed with lib; your locate command might have been more successful if you were less specific: locate "*log4cpp*".
With regard to shared libraries (i.e., .so files -- this is usually but not necessarily the case; see "What is a library dir?" below) whereis will usually find the appropria... | Paths relevant to compiling from source |
1,538,791,119,000 |
When I am running a line like:
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu {*shortened*} \
--with-imap-ssl=/usr/include/openssl/ --enable-ftp --enable-mbstring --enable-zip
I understand what the "x86_64-redhat-linux-gnu" means descriptively, but I have questions?
1) Is there a list some... |
The --build and -host options are to configure scripts are standard configure options, and you very rarely need to specify them unless you are doing a cross-build (that is, building a package on one system to run on a different system). The values of these options are called "triples" because they have the form cpu-ve... | Compiling from source: What are the options for config script "build"? |
1,538,791,119,000 |
Is there a system or product that can be used in automating the process of building 32bit and 64bit libraries for multiple platforms (Solaris (Sparc & x86), and windows) used in building C++ based software applications that is replicable by other users and on different machines?
I'm searching to see if there is a prod... |
You need a build automation tool, of which many exist. Even if you restrict to decent tools for building C++ programs that work on both Solaris and Windows, there are probably hundreds of choices. The classic language-agnostic build automation tool in the Unix and Windows world alike is make. There is a general consen... | What is the best tool for automating the building 32-64bit libraries for Unix & Windows building C++ software, replicable by users and machines? |
1,538,791,119,000 |
I've compiled git from source after git from the repository was already installed via the package manager.
In that process, the "from source" git took its place as the "main system git".
user@jeanny:~$ git --version
git version 1.8.3.2
Is there a way to set the git from the repo as the "main system git"?
|
You can confirm this by doing the following:
$ /usr/bin/git --version
$ /usr/local/bin/git --version
It's likely that you now have 2 versions of git installed which is completely fine, so long as they're kept in separate directories.
The newly compiled version of git is most likely the one in the directory /usr/loca... | What happens to the old binary when a new one compiled from source? |
1,372,903,716,000 |
When you build a deb how do you make it so arch independent data such as plugin files to be packaged into a separated .deb?
|
In debian packaging, the control file contains the details about the binary packages that the source package will produce. You will need to specify both your arch dependent and arch independent packages in the control file.
Using debhelper, you will want your software's build system to install to debian/tmp. How you d... | Building deb: How to put arch independent files into separated .deb package? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.