date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,371,543,299,000
I got the source code of unclutter using apt-get source unclutter, and copied the files to my embedded system. Now, how can I compile it? --update I've tried this answer: How to compile and install programs from source but it doesn't work here.. there's no ".configure" and make was not found.
In order to compile things on that system, it needs to have make, gcc, and a whole lot of other stuff that's not usually found on embedded devices. Typically, you cross-compile it on another machine then put the binary on the embedded system. You may be lucky enough to not have to compile it. You can get the binary f...
How can I compile unclutter to my embedded linux?
1,371,543,299,000
Which tools for distributed builds are currently in use in popular Linux distros, like Ubuntu, Debian, RedHat, etc.? For example, we have a huge amount of packages with dependencies and try to compile all of them for the new release of the distro. It takes a lot of time to build them one by one. I have heard about di...
Each distribution tends to have its own set of tools for this, there’s not much shared software here. Debian uses wanna-build, buildd and sbuild, which you’ll all find documented on the Debian site (follow the links too). wanna-build maintains the build queue, buildd picks a package to build, and sbuild builds it. wan...
Distributed build systems
1,371,543,299,000
I compiled a simple C(only contained an empty main function) file into a.out, and run it in different loaction: user@host:~$ md5sum /home/work/a.out /tmp/a.out dcbdb836569b99a7dc83366ba9bb3588 /home/work/a.out dcbdb836569b99a7dc83366ba9bb3588 /tmp/a.out user@host:~$ user@host:~$ user@host:~$ ldd /home/work/a.out ...
Your compiler was configured to set DT_RPATH with $ORIGIN by default using its built-in specs. The purpose of $ORIGIN is to create executables that could be moved elsewhere together with the shared libraries they depend on: if a binary is moved to /alt/opt/bin and has $ORIGIN/../lib in its runpath, the dynamic linker ...
Why the same executable in different location loaded different libc.so
1,371,543,299,000
I don't want to use the standard gpg version in raspbian which is almost 4 years old . I had to compile all the libraries manually . This worked fine but then when I compiled gpg it saied " libgcrypt too old need 1.7.0 have 1.6.4 " even tho I install libgcrypt 1.8.1 . So i uninstalled gpg and libgcrypt with " make uni...
Converting comment to answer: From your comments, you are using the oldstable version of Raspbian. You should be aware that the oldstable receives less frequent updates and is estimated to remain within the Debian security team's perview for about one year after the release of the next stable release. See Debian's wi...
I have trouble installing gnupg on raspberry pi
1,371,543,299,000
I am trying to compile ChatScipt v7.55 in Ubuntu 16.04. But when I use make server command, I get this error: evserver.cpp: In function ‘int settcpnodelay(int)’: evserver.cpp:263:40: error: ‘TCP_NODELAY’ was not declared in this scope return setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (void*) &on, sizeof(on)); ...
I solved the problem by adding #include <netinet/tcp.h> in above of ” evserver.cpp ” file
error: ‘TCP_NODELAY’ was not declared in this scope [closed]
1,371,543,299,000
I'm using Ubuntu 17.04 , and I manually upgraded my kernel version to 4.12.8 using the tool ukuu (Ubuntu Kernel Update Utility). When trying to launch vmware (it is already installed), it asks me to give it the path to gcc-7.1 to compile vmware modules. I didn't understand why vmware asked me that, because I installe...
Short answer: you should not. Long answer: That's not that VMware stubbornly wants a particular GCC version for no reason. It's very unwise to compile a kernel module with another GCC than the one used for the kernel itself: if there is any ABI change between the two gcc versions, you will probably corrupt and crash y...
Choose gcc version to compile vmware modules
1,371,543,299,000
These are the debian/rules from an app. called i-nex. It is a CPU-Z alternative for GNU/Linux and has a debian sub-directory having the following files - ┌─[shirish@debian] - [~/games/I-Nex] - [4454] └─[$] ll -r debian -rw-r--r-- 1 shirish shirish 296 2016-11-13 02:12 i-nex-library.desktop -rw-r--r-- 1 shirish shir...
That's right, in compatibility level 9, dh $@ --parallel --with autoreconf is sufficient to enable parallel builds. Note that "missing dependencies" for parallel builds refers to target dependencies in upstream build rules (Makefile etc.), not package dependencies. With compatibility level 10, the two options above a...
option to parallel build an app
1,371,543,299,000
How can I keep something always compiling on a spare machine? As it's just for looks, the more complex looking the better. I don't care what it is, just so long as it doesn't require input on my part, and it repeats forever. I'll be using some flavor of Ubuntu. Thanks in advance!
Are you just looking for something looking busy? Don't care about any productive output? Check out hollywood. There is a link here talking about it, and spotting it in the wild.
How can I keep something, anything, compiling forever? [closed]
1,371,543,299,000
I'm trying to compile vapoursynth and have run into a linker issue which I don't understand how to solve. Here is what I have so far: I have compiled zimg from github github: buaazp/zimg and have a binary. I pulled vapoursynth from here github: vapoursynth/vapoursynth and I followed the instructions. When I try t...
It turns out I used the wrong zimg. The correct zimg is sekrit-twc/zimg.
Unable to compile vapoursynth: failed to link zimg [closed]
1,371,543,299,000
I downloaded a fresh kernel that I'm planning on using in a VM. In the instructions of the tutorial I'm using, I'm told You will also need to build a new instance of the kernel, and ensure that it will boot in the VM. To do this, move to your source tree, copy config-3.14.26-yocto-qemu to $SRC_ROOT/.config (whe...
You should not have done the mkdir .config; you should have just copied the existing config file to a filename called .config in the kernel source directory. e.g. cd linux-yocto-3.14 cp /path/to/config-3.14.26-yocto-qemu .config make -j4 all
Configuration file for kernel in VM environment
1,371,543,299,000
I downloaded the source for rmlint and am trying to compile it on cygwin. When I run scons, it says Checking for glib-2.0 >= 2.32... Error: glib-2.0 >= 2.32 not found. In the cygwin setup facility, it shows I have the libglib 2.0_0 2.46.2-1 package installed. I re-installed it for good measure, but no luck. How coul...
Hi I'm one of the rmlint dev's. Unfortunately I don't think you'll be able to get rmlint running under cygwin (although happy to be proven wrong). Edit: have been proven wrong. Now have more-or-less working command-line version of rmlint under cygwin. It requires: gcc-core pkg-config libglib2.0-devel libtool and o...
scons can't find glib-2.0 >= 2.32 on cygwin
1,371,543,299,000
I have to cross compile bluez for another machine, but i am not allowed to install anything on the host machine. I never did this before. How can i get started? Host machine: Processor: Intel(R) Xeon(R) CPU E5-2420 0 @ 1.90GHz OS Version: Linux 2.6.32-44 generic Target machine: Processor: ARM926EJ-S rev 5 (v5l) OS Ve...
The kernel version has no bearing on compiling code for another system. Unfortunately without being able to install any software on the host system you're going to be out of luck. You need a compiler suite that will generate code for your target platform (ARM in this case) and by default such a compiler suite isn't in...
Cross compile for ARM without installing anything
1,371,543,299,000
I have a buildroot package that I need to build. When I issue the 'make' command, it runs until it errors out with "lutimes undeclared". After lengthy research, it appears that uClibc needs to be patched to include the definition of lutimes before my build will complete. I found this patch, but being new to Linux, I d...
Have in mind that Patches are per source code revision, and after 4 years of changes in the source code, this patch may be outdated and may need recreation from scratch. First thing you should do is check the official documentation. http://buildroot.uclibc.org/downloads/manual/manual.html#_providing_patches You should...
Applying patch to the uClibc
1,371,543,299,000
I'm using GTK3.4 and I need to update to > GTK3.10 for a theme editor I would like to use. I've never built something like that from source and the task looks a bit daunting. I've looked at what's available when I type apt-cache search gtk but don't see anything that seems to be like an update to GTK > 3.10 I've googl...
If you don't want to compile from sources, the only other alternative is upgrading to the next version of Debian (normally testing/sid) which (normally) has the latest version: ➜ ~ rmadison libgtk-3-bin debian: libgtk-3-bin | 3.4.2-7 | wheezy | amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, ...
Install latest GTK without building myself
1,371,543,299,000
Ubuntu/Fedora (to mention a few ones) is composed for several applications or programs dedicated each one to a specific task, but I've got a few questions: How do I get the source code? If I want to make my own GNU/Linux distro based on Ubuntu (such as Linux Mint), how should I start, which code can I modify at firs...
A little bit of google-fu would have helped here. Not that you are not right to ask: it's perfectly fine. But the very first thing you should be able to do is to find information yourself, read the doc, and so on. Get the source code What you describes is distro specific. For instance for Debian and derivatives (such ...
How to modify source code of collection of programs of a GNU/Linux OS? [closed]
1,371,543,299,000
I've a CI build process during which I install a debian package from my local reprepro. I have a Makefile which does call aptitude to install the package from its own repository like this sudo aptitude -y install foobar >> aptitude.log 2>&1 Now it could happen that aptitude has conflicts, which can't be resolved or t...
Try with dpkg-query, which print information about installed package Exemple: dpkg-query -W -f='${Status} ${Version}\n' foobar Will result No packages found matching foobar. Run dpkg-query --help for more information
How to check if aptitude did something?
1,371,543,299,000
So I compiled FFmpeg from this guide as a standard user and it works fine as the user I compiled with but if i do sudo ffmpeg the program can't be found. Is it possible to make it accessible by root or do I need to rebuild logged in as root?
The issue here is that ffmpeg has not been placed in a directory that is in root's $PATH. The guide you linked to (in the future please include the steps here so we don't need to go looking for them) tells you to run this command: ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" This will cause ffmpeg's...
Compiled, can't access with sudo
1,371,543,299,000
I've been following this tutorial, and I've found myself needing to compile makedev. However, when I try ROOT=/mnt make install in the source directory (makedev-20110824), I get: gimptool-2.0 --install-script misc/xcf-png.scm make: gimptool-2.0: Command not found make: *** [misc/icon.png] Error 127 As I understand i...
Are you sure you got the right makedev ? I found the multiple versions of makedev: The one available at sunsite.unc.edu which the tutorial mentions. There is makedev-1.6.1, which is written in C and makedev-2.2, which is a shell script. makedev-20110824 (google lead me to this sourceforge project). It would appear th...
Why do I need gimptools to build makedev?
1,371,543,299,000
I cloned hulahop via git and I'd like to use it and try to run this example. I have a problem to find out how to build and install it. I also tried to install it with apt-get but I don't have this package available. [Xubuntu 10.04]
(First things first: I have never used nor installed hulahop, what follows is generic, based on glancing over the source tree.) To get this straight, there are basically two ways to install something in a Debian(-derived) distribution: the clean way: via a .deb package and some tool like apt-get, aptitude, dpkg, you...
How can I install hulahop
1,371,543,299,000
Trying to compile ADCIRC, a Fortran program with NetCDF support, and I hit the following error. /usr/bin/ld: cannot find -lhdf5_fortran: No such file or directory collect2: error: ld returned 1 exit status I am a little confused as to which file it is looking for as it cannot find any file named lhdf5_fortran. I have ...
As pointed out by @steeldriver, Ubuntu places libhdf5_fortran under serial, and changing the flag to libhdf5_serial_fortran in the cmplrflags file works.
ADCIRC - Cannot find -lhdf5_fortran: No such file or directory
1,371,543,299,000
I just got the following error when compiling linux-5.14.2.tar.gz and patch-5.14.2-rt21.patch on CONFIG_DEBUG_INFO_BTF=y: AS arch/x86/lib/iomap_copy_64.o arch/x86/lib/iomap_copy_64.S: Assembler messages: arch/x86/lib/iomap_copy_64.S:13: 警告:found `movsd'; assuming `movsl' was meant AR ar...
I resolved this issue by changing the kernel version. linux-6.4.tar.gz and patch-6.4.6-rt8.patch.
failed: load btf from vmlinux: invalid argument make on CONFIG_DEBUG_INFO_BTF=y
1,371,543,299,000
No matter how many times I rebuild the plocate db I get: /var/lib/plocate/plocate.db: has version 4294967295, expected 0 or 1; please rebuild it. How in the world did I manage this?? /sbin/updatedb.plocate: linux-vdso.so.1 (0x0000007f1c7d4000) libzstd.so.1 => /lib/aarch64-linux-gnu/libzstd.so.1 (0x0000007f1c6...
TL;DR this is due to a limitation in Android/termux/proot but is trivially worked around with a code change in plocate, which is in the 1.1.20 release. 4294967295 (i.e. 0xffffffff) is (uint32_t)-1. This is the value plocate's updatedb uses as a sentinel version number to detect an incompletely written database file. W...
/var/lib/plocate/plocate.db: has version 4294967295, expected 0 or 1; please rebuild it
1,371,543,299,000
I'm attempting to build the Linux Kernel (version 5.16). I know that there's a compile-time option to randomize various structure fields (indicated by macros like randomized_struct_fields_start). However, I'm looking through make menuconfig and I can't find the right option.
The options you need to enable are in “General architecture-dependent options”, but they depend on GCC plugins. For the latter to work, $(gcc -print-file-name=plugin)/include/plugin-version.h must exist; on Debian for example, that means you need to install gcc-10-plugin-dev. Once that’s done, enable “GCC plugins”, t...
Build Linux Kernel with randomized struct fields
1,371,543,299,000
I want to download all (recursive) build dependencies to be able to build apt (debian) package from source. However, when I apt-get install path/*.debs with debs that I got by apt build-dep --download-only --assume-yes <package> apt finds additional packages to be installed and fails, even with --no-install-recommends...
Build dependencies are set by the package maintainer with a Build-Depends: (and sometimes Build-Depends-Indep:) settings in the debian/control file of the source package. Depends, Recommends, and Suggestions are needed when a package is installed (or about to be installed), so that data is in the Packages file. Buil...
How does apt keep track of BUILD (source) dependencies?
1,371,543,299,000
I am trying to rebuild Debian package mousepad without D-Bus on Debian 10. First, I try building the package without any change. apt-get source mousepad cd mousepad-0.4.1 dpkg-buildpackage --build=binary --no-sign That works. Now I want to build with D-Bus disabled. I see that Mousepad has the --disable-dbus build op...
The Debian 10 mousepad package is already built without D-Bus support; you can verify this by looking at the build logs for version 0.4.1-2 on amd64 and searching for “D-BUS”: Build Configuration: * D-BUS support: no * Debug Support: minimum * Use keyfile backend: default * Build with GT...
Remove all traces of D-Bus when running Mousepad in Debian
1,371,543,299,000
I am trying to build the ksmbd kernel module. I tried the tag version: $ wget https://github.com/namjaejeon/ksmbd/archive/refs/tags/3.2.1.tar.gz $ tar xvfz 3.2.1.tar.gz $ cd ksmbd-3.2.1 $ make [...] CC [M] /tmp/ksmbd-3.2.1/transport_tcp.o /tmp/ksmbd-3.2.1/transport_tcp.c: In function ‘create_socket’: /tmp/ksmbd-3.2...
On Fedora and RHEL, the ksmbd external module build works because the kernel-devel packages ship all the relevant tools, in particular asn1_compiler. There is no equivalent package in Debian, so the only way to build ksmbd is to use the full kernel source, and the simple option is to build it in the kernel tree: sudo ...
Building ksmbd on Debian Buster (+bpo)
1,371,543,299,000
Apologies if this has already been answered; I am having trouble finding an existing post (either on SE or linux forums) which solves the issue. I need to install the package(s) that enables the -lSM and -lICE linker options for compiling some C/C++ code that uses plotting libraries (see here for an example: C Compili...
You are looking for libSM.so and libICE.so, provided by the libSM-devel and libICE-devel packages. Basically, if you are linking with -l<something>, look in /usr/lib64/lib<something>.so. An even faster result is to skip the step of finding the package name and run: yum install /usr/lib64/lib<something>.so
What Centos package contains the libraries for -lSM -lICE linker options?
1,593,247,601,000
On a linux server i have a script that does a curl and returns an output as below: Script: /usr/bin/curl -k -s https://example.com:18080/seriessnapshot?substringSearch=OpenFin%20Memory | cut --characters=44-51 | sort --unique | sed -e 's/iessnaps//g' -e '/^$/d' Output: AP711671 AP714628 AP715911 AP716960 AP717267 AP7...
The simple and easy way is to replace your sed command with sed -n -E 's|^AP([[:digit:]]+)$|http://ap\1.ztb.icb.commerzbank.com:1025/|p' -n suppresses the printing of lines so we have better control over which lines actually get printed at the end -E enables extended regular expressions which make the rest easier ^...
Build a URL from output of shell script
1,593,247,601,000
I was trying to compile GCC 9.2 against a custom built GLIBC 2.30. I have installed GLIBC in a non-standard location. Then I have followed these steps to compile GCC: sfinix@multivac:~$ GLIBCDIR=/home/sfinix/programming/repos/glibc/glibc-install/ sfinix@multivac:~$ export LDFLAGS="-Wl,-q" sfinix@multivac:~$ CFLAGS="-L...
According to Autoconf Manual in GNU build system compiler/linker flags/options are passed through configure script. So in my case, I should configure, compile and install in the following way: $ GLIBCDIR=/home/sfinix/programming/repos/glibc/glibc-install/ $ LDFLAGS="-Wl,-q" $ CFLAGS="-L ${GLIBCDIR}/lib -I ${GLIBCDIR}/...
Compiling GCC against a custom built GLIBC
1,593,247,601,000
I'm trying to compile fIcy (https://gitlab.com/wavexx/fIcy) for NetBSD/FreeBSD. When I'm executing the make command nothing happens. Even no error message. The same source package compiles without problems with Debian 10. Is the Makefile even compatible with BSD? https://gitlab.com/wavexx/fIcy/blob/master/Makefile The...
You should use GNU's make as README.rst says: pkg install gmake If you've already installed any other dependencies you should run gmake all (Note g is the first letter.) Works for me but if you've any error message please post/edit it. /Note: the GNU make and FreeBSD make aren't compatible. They can work as POSIX ma...
How to compile fIcy for BSD?
1,593,247,601,000
I am trying to get QuantLib version 1.13 running on Amazon Linux. I found some .rpm files at https://pkgs.org/download/QuantLib, although there is an up to date .rpm for Fedora, there isn't one for CentOS (the CentOS files seem to be compatible with Amazon Linux). I was able to successfully build the library from so...
Most likely your hand-built libraries are built with debugging information, that's why they are so big. You can try strip libQuantLib.so.0.0.0 and see how much smaller it will get. You can try to rebuild the official RPM for Amazon Linux 2 like this: Download the source RPM (QuantLib-1.4-7.el7.src.rpm) Install rpm-bu...
Building QuantLib on Amazon Linux
1,593,247,601,000
I'm trying compile nginx ... configure seems ok, then when I type make I get following error: make make -f objs/Makefile make[1]: Entering directory '/home/paul/src/ngxbuild/nginx-1.14.0' cc -o objs/ngx_http_perl_module.so \ objs/src/http/modules/perl/ngx_http_perl_module.o \ objs/ngx_http_perl_module_modules.o \ -Wl,...
The Can not find -lperl error means it can not find libperl. On Debian Stretch this is provided by libperl-dev % apt-file list libperl-dev libperl-dev: /usr/lib/x86_64-linux-gnu/libperl.a libperl-dev: /usr/lib/x86_64-linux-gnu/libperl.so libperl-dev: /usr/share/doc/libperl-dev/README.cross libperl-dev: /usr/share/doc/...
I can't find module "core" in perl dir on ubuntu 18.x
1,593,247,601,000
First attempt to build netplan.io on Debian 9 and have the errors below. Can you tell me what I need to install? Package yaml-0.1 was not found in the pkg-config search path. Perhaps you should add the directory containing `yaml-0.1.pc' to the PKG_CONFIG_PATH environment variable No package 'yaml-0.1' found Pa...
After taking https://github.com/CanonicalLtd/netplan.git Need to install : libyaml-dev libc6-dev libglib2.0-dev pandoc uuid-dev Thanks to @dsstorefile and @user996142 To run netplan will require : pip3 install pyyaml For Debian 10, need also pip3 install netifaces
debian netplan install: library missing. what to install for these .pc files
1,593,247,601,000
I need to generate the libssl* and libcrypto* binaries for use on a different system. I wrote a trivial script doing it #!/bin/bash set -evx OPENSSL_VERSION="1.0.2l" TARGET=openssl-linux64 /bin/rm -fr $TARGET curl -O -L http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz tar -xvzf openssl-$OPENSSL_VERSION...
Yes, that is correct, the libraries will have version 1.0.0 even though the software package will have version 1.0.2l. That's because all versions 1.0.x of the software implement the same API (same functions with the same function signatures/prototypes), so the libraries should be versioned the same since users of tho...
Confused by openssl make
1,593,247,601,000
I'm working in a team, which develops a c++ (ROS) project. For some reason, we haven't a good git management. We have several git branches. To compile the project, I have to git clone the codes from each branch and rearrange the structure of directories. First, I mkdir -p /home/me/repo, then I git clone the codes from...
Accessing .. doesn't really work as you expect when symlinks are involved... And when you try that in bash, bash tries to be "helpful" and fixes it for you, so the problem does not become aparent. But, in short, when you go to /home/me/project2/src/hdmap/../third_party, the kernel will first resolve the symlink of "hd...
Why can't a project compile with symbol link
1,593,247,601,000
I am trying to build binutils on platform A, which will be run on platform A and targets platform B. I have the source of binutils in /home/cedric/source/binutils-2.29/, and I perform the following 2 builds: cd /home/cedric/source/ mkdir default/ && cd default/ mkdir build/ install/ & cd build/ ../../binutils-2.29/con...
The short answer is that you’d expect lib to be built (or rather, installed) if there’s a library to install, and include if there are headers to install. Usually the two go together (at least for C and C++ libraries). In binutils’ case, the libraries and associated headers are libbfd and libopcodes, as you mention. l...
When should "lib" and "include" directories be built when compiling from source?
1,593,247,601,000
I am trying to install an R package (mongolite) on FreeBSD (FreeBSD 11.0-RELEASE-p9 amd64) and I am getting an error while compiling C++ source files. The errors is the following: error: 'SYS_gettid' undeclared. Any idea for how to go about this problem?
The SYS_xxxx defines contain the numbers of system calls on Linux. They're used mostly when making raw system calls through the syscall(2) wrapper instead of the usual glibc wrapper functions. In the case of gettid(), glibc doesn't contain a wrapper for the system call, so it has to be called manually. gettid() retur...
FreeBSD: undeclared SYS_gettid
1,593,247,601,000
I just compiled bash 4.4.12 for my arm-based NAS. The NAS has a custom environment. The prefix is /ffp/ instead of /usr/. Starting the fresh compiled bash /ffp/etc/profile/ is not beeing read/sourced. Is this a ./configure flag, or do I need to specify this elsewhere? My compile config. looks like this: #!/usr/bin/en...
It's hardcoded in pathnames.h.in: /* The default login shell startup file. */ #define SYS_PROFILE "/etc/profile" You can just replace it with what you want and rebuild.
Compiling bash from source in a custom env - custom profile is not being read
1,593,247,601,000
Common compilation tools like make, cmake, premake, gmake, rake etc. generate buildinfo files by default or support for them is missing ? Or if they have support, then maybe needs some flags to make sure that .buildinfo files. I am looking at three tools at the moment - a. make b. cmake c. premake
buildinfo files are generated by dpkg-genbuildinfo on Debian systems, build tools aren't involved. See the manpage for details.
Can any compilation tools generate .buildinfo info by default or needs some flags?
1,593,247,601,000
I am trying to build GLIBC 2.14 from source. I keep getting the error message that cpuid.h was not found. What does that file contain and what purpose does it serve ? I have seen that cpuid.h is placed in two different locations ie. /usr/lib/gcc/x86_64-redhat-linux/4.3.0/include/cpuid.h /usr/src/kernels/2.6.25-14.fc9...
cpuid.h contains definitions of assembly-language fragments to get low-level info out of certain CPUs, plus names for various numeric constants that a program might use to figure out what kind of CPU it was running on, and what features are available. (For example, if the program wanted to use special matrix-math ins...
What does the file cpuid.h do?
1,593,247,601,000
I am trying to compile efivar-0.23 for my LFS, but when I untar it end run the following command: make libdir="/usr/lib/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir=/usr/include/" V=1 -j1 I get an error, that NVME_IOCTL_ID is undeclared. I have looked through the whole internet for the answer, but the onl...
efivar version 0.23 needs a patch to work with kernel headers from 4.4 (and later kernels), because the header defining NVME_IOCTL_ID changed (it was renamed from nvme.h to nvme_ioctl.h). To build efivar on your system, you'll need the "Workaround rename of linux/nvme.h" patch. To apply that, go into the directory con...
How to compile efivar?
1,593,247,601,000
A common thing for people who work on machines without having root rights is to locally build your own little suit of your favorite tools. The workflow goes a little something like this: tar xvzf fav_tool.tar.xvzf cd fav_tool ./configure --prefix=$HOME make install It tends to get a little messy. You get folders like...
It tends to get a little messy. You get folders like bin/, etc/, include, lib/ and source/ in your home folder. By choice, yes. If that seems untidy, you can use ./configure --prefix=$HOME/mytools Instead. You will then need to add that to your $PATH, or, if $HOME/bin is already part of it, you could move everyth...
Organize local builds
1,593,247,601,000
I am trying to install the necessary dependencies for building Chromium on Ubuntu 14.04, and I am facing the following message: The following packages have unmet dependencies: g++-4.8-multilib : Depends: gcc-4.8-multilib (= 4.8.2-19ubuntu1) but it is not going to be installed Depends: lib32stdc++-...
open your terminal and type as sudo apt-get autoclean sudo apt-get autoremove sudo apt-get update sudo apt-get dist-upgrade sudo apt-get autoclean clears out the local repository of retrieved package files in the /var/cache/apt/archives. The difference is that it only removes package filesthat can no longer be downl...
Unmet dependencies when trying to build chromium browser on Ubuntu 14.04
1,593,247,601,000
I am trying to modify the default congestion control algorithm in FreeBSD (NewReno) by creating a copy of the source file (cc_newreno.c, located in /usr/src/sys/netinet/cc) called cc_newreno_mod.c and making changes to it. Suppose I have made some modifications. How do I test them? Compiling the cc_newreno_mod.c dire...
For compiling kernel module you should create Makefile and to include kernel module makefile /usr/src/share/mk/bsd.kmod.mk for example: # Note: It is important to make sure you include the <bsd.kmod.mk> makefile after declaring the KMOD and SRCS variables. # Declare Name of kernel module KMOD = module # Enumera...
How to test modified FreeBSD source code?
1,593,247,601,000
So I have successfully compiled it to ~/.local by editing the prefix option in the makefile to prefix=~/.local the program compiles fine, and I did the same with librtmp. When running ldd on the binary I get the following output: ldd rtmpdump-ksv/rtmpdump linux-vdso.so.1 => (0x00007ffedb4d2000) librtmp.so.1 => not fo...
Programs do not search for libraries in the same directory as the executable by default. The traditional directory organization under Unix has executables in directories called …/bin and libraries in directories called …/lib. if you set prefix=~/.local when compiling software, you'll end up installing the executables ...
rtmpdump compile without root, librtmp.so.1 => not found
1,593,247,601,000
I have downloaded and compiled the latest version of libssl, the result of which is located at /usr/local/ssl. I want to compile libssh2 using the files in this folder, and to do that I've set the switch --with-libssl-prefix=/usr/local/ssl. After performing ./configure --with-libssl-prefix=/usr/local/ssl and make, the...
If you compiled and installed libssl into the default /usr/local path, there is a /usr/local/ssl, but the lib is not in there; it's just directories like certs and misc -- stuff that other things would probably put in a share directory (e.g. /usr/local/share/ssl). The actual library is installed in a normal place, /us...
Compiling LibSSH2 with specific LibSSL
1,593,247,601,000
I am trying build the kde from the source available on https://www.kde.org/info/4.14.3.php, but I am a bit lost about the order of installation of the packages listed on the page, which would give me a hint about the minimum required packages to make the system work. Anyone can indicate to me some link with this order...
The last time I had to build KDE from scratch I used this as a guide. It is from Linux From Scratch (in particular Beyond Linux From Scratch) and should help you through everything. A quick copy and paste shows this order: Automoc4-0.9.88 Phonon-4.8.2 Phonon-backend-gstreamer-4.8.0 Phonon-backend-vlc-0.8.1 Akonadi-1....
Building KDE from source?
1,593,247,601,000
I tried to build a plugin for DNSCrypt, but it keeps telling me that it needs some other files. I need to know how I can build it, and I've never compiled a package from scratch. I've always been able to use a repository. I use Ubuntu 14.04 (64 bit) with gcc on CodeAnywhere Here is the link to the plugin: GeoIP Plug...
Update It looks like terdon added and updated some commands over the Thanksgiving Holiday. These add extra and or needed functionality. I want to thank him for adding these. Task First, let's start with a clean slate. cd ~ && rm -Rv workspace Now, we make sure we have the right tools for Ubuntu: sudo apt-get updat...
How to build dnscrypt plugins?
1,593,247,601,000
The version of glibc in the repository is 2.13 so I couldn't use apt-get to install it. I downloaded the source code of glibc-2.14, but when I run ./configure command I get this error: checking for -z nodlopen option... yes checking for -z initfirst option... yes checking for -z relro option... no configure: error: li...
"testing" in Debian currently has libc6 2.19, does that workbench need exactly 2.14 or (more usually) at least 2.14... see packages.debian.org. I recommend updating your system to testing completely or to use pinning to selectively update packages. Trying to compile glibc yourself is not something undertaken lightly, ...
Error while installing glibc-2.14 from source
1,593,247,601,000
I have a checkout of a source code tree (https://github.com/hautreux/slurm-spank-x11, for the curious) that contains a .spec file for building a RPM package. My question is, what's the simplest way of building the binary RPM from that source tree? In the Debian world, I would just run debian/rules binary from inside t...
The simplest way is to use rpmbuild. rpmbuild <spec file> is the RPM equivalent of fakeroot debian/rules binary. Fedora Before your first build, you need to prepare your build system once by installing the Development Tools group: # yum install @development-tools then: # yum install fedora-packager As a user (never ...
What's the simplest way to build a binary RPM from a source code checkout with a .spec file
1,593,247,601,000
I need the latest libpcre3-dev library to compile a software from source, however, the current distribution of the OS (Ubuntu) on my server only has the older version of libpcre3-dev and no backport is available. I am thinking to compile the binary on a separate server with the latest version of libpcre3-dev and insta...
If the program requires newer features that aren't available on your server, then those features won't be available at runtime and so your program probably won't run. You can link the library statically. This has the downside that you can't upgrade the library separately from the program. If a security vulnerability i...
Compile source with later libraries on one server and use the binary on an older server
1,593,247,601,000
I am running GNU/Linux (Centos 6) on kernel 2.6.32-431.17.1.el6.x86_64. I am trying to update the kernel to 3.2.61. I performed the following steps inside the 3.2.61 folder structure: make menuconfig (took defaults- didn't add anything) make make modules make modules_install make install On step 5, I received the...
It's important to give to the toolchain used to build the kernel the location of the kernel source tree. Otherwise, even if the compilation runs perfectly, the installation may fail with errors about missing modules or parts. The kernel source tree is specified through the KERNEL_TREE environment variable. It defaults...
Error installing kernel on Centos (from source)
1,593,247,601,000
I want to add and compile my custom application code into my kernel. How should I add my .c and .o files into my kernel 'bin' directory and compile them? I made a hello.c and hello.o file and I want to add them into my kernel such way that when kernel start this hello.o file runs. Do I need to edit some makefile?
I want to add these file into my kernel such way that when kernel start this hello.o file execute and run What you are trying to achieve shouldn't be made through kernel edition. Executing a program at boot time can be handled in much simpler ways, without need for kernel programming experience. You can: Execute it ...
How do I compile source into the kernel?
1,593,247,601,000
I am trying to compile Simple Screen Recorder. I had a linker error due to a wrong library path relating to ffmpeg. When I checked installation paths with whereis ffmpeg, I get: ffmpeg: /usr/bin/ffmpeg /usr/bin/X11/ffmpeg /usr/local/bin/ffmpeg /opt/ffmpeg/bin/ffmpeg I installed ffmpeg many times, without uninstalling...
You need to verify $PATH and $LD_LIBRARY_PATH environment variables. make sure they are point to correct version of ffmpeg and does not include older version if LD_LIBRARY_PATH is not already setup then try this : LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ffmpeg
multiple ffmpeg library paths, how can exclude older ffmpeg installations?
1,593,247,601,000
I have been a Windows kernel developer for many years. Now I start to develop Linux kernel modules. To begin with, I installed kernel-devel under /usr/src/kernels/$(uname -r). However, after checking the installation folder, I am confused because there seem a lot of seemingly useless folders and files inside the direc...
The kernel-devel package in Fedora and other Red Hat derivatives does not contain the full kernel source, just headers for public interfaces and makefiles needed for driver development. Most headers can be found under /usr/src/kernels/$(uname -r)/include/ and some architecture specific headers, e.g. for x86 under /usr...
Why does kernel-devel contain so many "empty" directories?
1,593,247,601,000
I cloned the git repository of xbindkeys using: git clone git://git.sv.gnu.org/xbindkeys.git I want to compile it. How can I do this? Where can I find the compile instructions? What are the dependencies?
After downloading it when I run the ./configure command it complained about 2 libraries missing: checking for XCreateWindow in -lX11... no configure: WARNING: Xbindkeys depends on the X11 libraries! checking for guile... no configure: error: guile required but not found I had to install these 2 packages: $ sudo apt-g...
How to compile xbindkeys
1,593,247,601,000
I have been trying to build CUPS 1.7.1 on RHEL 5.6 using $ sudo rpmbuild -ta ./cups-1.7.1-source.tar.bz2 and was getting: error: Failed build dependencies: libusbx-devel is needed by cups-1.7.1-1.x86_64 I've since found this CUPS STR 4336 (https://www.cups.org/str.php?L4336) that described the same issue, wi...
The switch you're trying to pass to rpmbuild is a switch to what you'd typically provide in a configure step if you were building this package from source. The details of how you want your package to build are contained in a .spec file which is likely inside your .tar.gz2 file. You could unpack the tarball and confirm...
CUPS libusbx-devel is needed error when trying to build cups-1.7.1 from source
1,593,247,601,000
I try to install libxcb from source, but I have an error, I do not understand why, this the error: configure: error: Package requirements (pthread-stubs xau >= 0.99.2) were not met: No package 'xau' found I have installed from source pthread-stubs and proto-xcb-proto This is to install qtile. At the moment I use Deb...
You are missing the headers from the pthreads and xau packages. You can get these from installing the -dev version of the respective packages. The easiest thing to do however is to make sure you have a deb-src line in you sources.list and run: apt-get build-dep libxcb which will install all of the necessary packages...
Install libxcb from source
1,370,473,401,000
I would like to make a few changes to the fdupes code. I know I can grab the source code from the website - but is there a better way on Ubuntu / Debian? After getting the source this way where is it stored? If one wanted to make changes to the code and recompile / install - how is that done? Is there a good way to m...
There sure is: apt-get source fdupes Have a look here
How can I build fdupes from source on Ubuntu?
1,370,473,401,000
I have a Lenovo IdeaPad Yoga 13. WLAN won't work out of box with fedora 18. So I googled around and found this 2 links: https://askubuntu.com/questions/139632/wireless-card-realtek-rtl8723ae-bt-is-not-recognized https://ask.fedoraproject.org/question/9633/i-can-not-get-my-realtek-8723-chip-to-work/ So I downloaded the...
So the solutions is really simple take the latest source from: https://github.com/lwfinger make & make install So this works well for realtek-8723. And there is a small blog post I wrote about it -> http://l33tsource.com/blog/2013/05/08/Yoga-with-WLAN.html
I can not get my Realtek 8723 driver source compiled
1,370,473,401,000
I am compiling php 5.3.13 on my server. I want to create an autonome php5 folder. So prefix is: /usr/local/php5 In this folder I have a lib folder, where I put all lib needed for php to be executed such as: libk5crypto.so.3 libxml2.so.2 libjpeg.so.62 .... Even if I compile with --with-jpeg-dir=/usr/local/php5/lib/, ...
There are two distinct linker paths, the compile time, and the run time. I find autoconf (configure) is rarely set up to do the correct thing with alternate library locations, using --with-something= usually does not generate the correct linker flags (-R or -Wl,-rpath). If you only had .a libraries it would work, but...
PHP compilation - link to library
1,370,473,401,000
I would like to have tmux 1.7 on my machine with CentOS 5.8 (64 bit). It requires libevent in version at least 1.4.14b or 2.0.20 and the latest version in yum packages for CentOS 5.8 is 1.4.13 . I know that I need the libevent-devel package as well to build tmux but I cannot get it anywhere. Can anyone give me hint...
You can use the following steps to compile tmux 1.7 on CentOS 5.8: Install developer tools yum groupinstall "Development Libraries" yum groupinstall "Development Tools" yum install rpm-build gcc Setup .rpmmacros file $ cat > /home/<myusername>/.rpmmacros << EOF %packager Your Name %vendor Your Orgnazation %_topdir /h...
How to compile tmux 1.7 on CentOS 5.8?
1,370,473,401,000
From here: http://www.xenomai.org/index.php/FAQs#Which_kernel_settings_should_be_avoided.3F Which kernel settings should be avoided? Note that Xenomai will warn you about known invalid combinations during kernel configuration. - CONFIG_CPU_FREQ - CONFIG_APM - CONFIG_ACPI_PROCESSOR Now, when I look in the .co...
make menuconfig does present this option. If you are in the menu press / and search for CPU_FREQ. This will show all CONFIG parameters containing CPU_FREQ. It does also show how you can access it through the menu, e.g: │ Symbol: CPU_FREQ [=y] │ Type : boolean │ Prompt: CPU Frequency scaling │ Defined at drivers/c...
Edit the .config file when en/disabling a particular option like CONFIG_CPU_FREQ?
1,370,473,401,000
Can I build packages for Debian 5.0 using Debian 6.0 or Debian Wheezy? I assume that I could do a complete chroot'ed installation of Debian 5.0 and do my builds there, but it might be nice to have something lighter-weight. For bonus points - can I build packages for Debian 5.0 using the version of g++ from Debian 6.0 ...
You might find the schroot or pbuilder packages convenient for this, since they are designed to maintain a build environment for multiple versions of Debian. That said, a basic chroot is a couple of hundred MB in size; you could have thousands of them on most modern systems without really noticing. debootstrap is a g...
Compiling for old versions of Debian
1,370,473,401,000
I rebooted a compiled kernel 3.1.0, and those are the errors that I am getting: linux-dopx:/usr/src/linux-3.1.0-1.2 # make install sh /usr/src/linux-3.1.0-1.2/arch/x86/boot/install.sh 3.1.0 arch/x86/boot/bzImage \ System.map "/boot" Kernel image: /boot/vmlinuz-3.1.0 Initrd image: /boot/initrd-3.1....
You must enable module ata_generic and module ext4 in menuconfig. The option are: CONFIG_ATA_GENERIC=y: http://cateee.net/lkddb/web-lkddb/ATA_GENERIC.html CONFIG_EXT4_FS=y: http://cateee.net/lkddb/web-lkddb/EXT4_FS.html
modprobe: Module ext4 not found. WARNING: no dependencies for kernel module 'ext4' found
1,370,473,401,000
I got this error following LFS 6.8, chapter 5, Tcl-8.5.10 to install Tcl: lfs@sam:/mnt/lfs/sources/tcl8.5.9/tools$ ./configure --prefix=/tools ./configure: line 1208: cd: ../../tcl8.5/unix: No such file or directory configure: error: There's no tclConfig.sh in /mnt/lfs/sources/tcl8.5.9/tools; perhaps you didn't speci...
According to the doc you link, you should be in the unix subdirectory of tcl8.5.9 to run the configure script, not in the tools subdirectory.
How to configure Tcl on Linux From Scratch?
1,370,473,401,000
I'm getting strange errors when I try to compile Python 3.2 on NetBSD 5.1: python ./Objects/typeslots.py < ./Include/typeslots.h > ./Objects/typeslots.inc python: not found *** Error code 127 What am I doing wrong? I'm trying to compile Python in the usual fashion: ./configure make su make install
For some reason, you have to touch some files during the make process. When make quits with this Error 127, run: touch ./Include/typeslots.h touch ./Objects/type touch ./Objects/typeslots.py make Inside of the Python source directory. It will complain a second time: ./Python/makeopcodetargets.py ./Python/opcode_targe...
How do I compile Python 3.2 on NetBSD? Error code 127
1,370,473,401,000
I'm trying to compile some software (FocusWriter) on openSUSE 11.3, (linux 2.6.34.7-0.5-desktop). (I can't find an actual download link to the alleged openSUSE RPM...just lots of metadata about the RPMs). So I unpacked the source from git, and, following instructions, ran qmake. I get this: Package ao was not found i...
You have the user libraries installed, but you also need to install the developer libraries and header files. Taking ao as an example: The normal user package includes files like: /usr/lib/libao.so.4.0.0 /usr/lib/libao.so.4 whereas the developer package include files like: /usr/include/ao/ao.h /usr/include/ao/os_type...
qmake looking for lib files named *.pc
1,370,473,401,000
I'm trying to compile a program that uses vulkan hpp and it uses a method in a file named vulkan_driver.h like this: // Evaluate f and if result is not a success throw proper vk exception. #define CHECK_VK_RESULT(x) do { \ vk::Result res = vk::Result(x); \ int tmp = 0; \ vk::createResultValue(res, tmp, __FILE...
I have come across the same error while trying to build https://github.com/jherico/Vulkan (on Ubuntu 22.04 and Windows 10) For example this line in glfw.cpp leads to the same compile error as Ahmed Moselhi had posted. I found that the name AND signature for this function has been changed in vulkan.hpp (see this commit...
vulkan build error : 'createResultValue' is not a member of 'vk'
1,370,473,401,000
I was trying to install a library called Openslide which failed during the ./configure step because it could not find a dependency (libjpeg). I thought I would proceed to build libjpeg and then manually provide the library location to ./configure to make it work. After building libjpeg at ~/libjpeg, I thought I could ...
OpenSlide uses pkg-config to find its dependencies, so you need to tell pkg-config where to find your library: PKG_CONFIG_PATH=~/libjpeg/pkg-config ./configure … replacing ~/libjpeg/pkg-config with the path to the directory containing libjpeg.pc. Unfortunately the libjpeg implementation you used is very old and doesn...
How to provide library path to ./configure script
1,370,473,401,000
I'm using this tool-chian provided by a manufacture of control boards. I followed the instruction step by step but when I tried to compile example code, the compilation process got stuck at "$basename can't execute" branch of the if clause. I'm not exactly a wizard of bash scripts so I have no idea what I'm looking at...
In the beginning of the script, $basename is set to be equal to $0 which means "the name (possibly including a directory path) this script was executed as". The apparent purpose of this script is to be linked/copied to several different names, like cc1-mips-linux-uclibc-gnu for the first phase of the compiler. When ex...
Why this script stuck at "can't execute" branch?
1,370,473,401,000
I'm having trouble to compile kernel modules with KBUILD_CFLAGS_MODULE with new kernel. The compiler shows me a weird error. Such builds used to work with my older kernel (5.5) but does not work anymore with my 5.16 kernel. Here is a minimal reproducible example: Dummy module: #include <linux/init.h> #include <linux/m...
It’s not obvious from the documentation, but you’re supposed to add to KBUILD_CFLAGS_MODULE. Change your declaration to KBUILD_CFLAGS_MODULE += "-O1" "-mcmodel=medium" # Examples and the build will work. The root cause of the build failure is that KBUILD_CFLAGS_MODULE lost its initial -DMODULE contents, which messed ...
Can't compile Kernel module with KBUILD_CFLAGS_MODULE
1,370,473,401,000
I wanted to uninstall conky that I built from source on my arch linux and this thread suggested installing checkinstall. But I am new to all this and makepkg -sic resulted in the following error - makepkg -si ==> Making package: checkinstall 1.6.2-5 (Thursday 22 April 2021 12:28:02 AM) ==> Checking runtime dependencie...
It looks like you're not the only person to have seen this -- it seems that the package you're using has not been updated for glibc-2.33. There's a patch at the end of this thread which is supposed to fix that (though, be warned, it was only posted earlier today).
ERROR: A failure occurred in build(). while installing "checkinstall" help the newbie out
1,370,473,401,000
I am trying to compile the demo for the Acontis etherCAT master stack, but G++ is reporting a number of undefined references when trying to compile, without giving any clue as to which headers or libraries need be included to correct the problem. Since G++ is not reporting any referenced missing headers, how can I fig...
There were two issues preventing the compiling of the program. First, as answered by steeldriver, the library path was not correctly included and the libs were not correctly referenced in GCC. Second, several cpp source files were missing, either accidentally deleted or not successfully decompressed from the archive t...
What is the best way to determine missing dependencies when using G++ to compile a program with headers and static libraries?
1,370,473,401,000
I'm currently developing a Linux Security Module which is stored in the security directory of the kernel source tree. When I compile and install the kernel using the following commands, the module is loaded and everything is working fine: fakeroot make -j9 -f debian/rules.gen binary-arch_amd64_none_amd64 apt remove li...
I found it out thanks to the help of a university professor. You have to delete the file debian/stamps/build_amd64_none_amd64. # The next line make sure only the required parts are rebuild rm debian/stamps/build_amd64_none_amd64 # Rebuild the kernel fakeroot debian/rules source fakeroot make -j9 -f debian/rules.gen ...
How can I recompile only a specific part of the Linux kernel on Debian Buster?
1,370,473,401,000
I am attempting to install rejoystick, and when I run make, I get this: Making all in src make[1]: Entering directory '/home/chrx/Downloads/joystick/rejoystick-0.8.1/src' make[2]: Entering directory '/home/chrx/Downloads/joystick/rejoystick-0.8.1/src' /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -std=iso9899:...
The build is missing -lX11; to work around that, run ./configure LIBS=-lX11 && make
Make error: DSO missing from command line
1,370,473,401,000
I'm interested in modifying and re-compiling one of the wireless drivers in a Linux environment. I know exactly which line in what file I need to modify, however may I know how can I re-compile the source code from .c to .ko? Correct me if i'm wrong, the .ko file is how I am able to specify my modified wireless drive...
You Can recompile kernel module by running make -C /lib/modules/$(uname -r)/build M=$(pwd) modules command in module source directory.
Modifying and Re-compiling Linux Drivers [closed]
1,370,473,401,000
I am trying to compile i3 version 4.14.1 under Cygwin 2.884 (Windows 7). I have installed needed libiconv library via Cygwin setup but while running ./configure I get this error: configure: error: in `/home/msamec/Downloads/i3-4.14.1/x86_64-unknown cygwin': configure: error: cannot find the required iconv_open() funct...
The test is failing as | char iconv_open (); | int | main () | { | return iconv_open (); | ; | return 0; | } configure:6391: /bin/gcc -o conftest.exe conftest.c -liconv -lev >&5 /tmp/ccz9hxNr.o:conftest.c:(.text+0xe): undefined reference to `iconv_open' /tmp/ccz9hxNr.o:conftest.c:(.text+0xe): relocation trunc...
compiling i3 under cygwin - cannot find libiconv library
1,370,473,401,000
I'm running Manjaro Linux and trying to install Discord app. Since Discord doesn't have an official build for Arch-based systems, I've tried to use yaourt and the install gives me this error: ==> Verifying source file signatures with gpg... llvm-6.0.0.src.tar.xz ... FAILED (unknown public key 0FC3042E345AD05D) libcxx-...
When installing Discord, during the install the system will try to validate the PGP signatures for libc++. The signatures should be added by the user, as seen on the package instructions in the AUR (here). During the install the system will ask if you want to edit the PKGBUILD, and you should input "yes". Search for t...
Unknown public key when installing dependency for package in Manjaro Linux?
1,370,473,401,000
I am pretty new Freebsd user. As I am trying to install gnu m4-1.4.18, I get eval fail on eval test section: Checking ./189.eval @ ../doc/m4.texi:6405: Origin of test ./189.eval: stdout mismatch --- m4-tmp.2536/m4-xout 2017-12-18 22:11:42.931036000 +0000 +++ m4-tmp.2536/m4-out 2017-12-18 22:11:42.928582000 +0000 @@ -...
You are having problems installing software but you do not show us what you are doing. You are just showing the output of some command and we are left guessing. If you are new to FreeBSD but previously have been used to working on a GNU sytem (Linux) there are some subtle but important differences. A typical stumbling...
Freebsd 11.1 issues with gnu m4 eval test fail
1,370,473,401,000
How do I compile a pfSense port for ARM? Do I need to be running FreeBSD to do it? How do I then transfer it to a USB drive, SD Card, or ISO so I can boot it? I tried the usual compiling in Ubuntu after I cloned the repo that I found listed in this question, but I get an error.... First off there's no ./configure fil...
I think you can use FreeBSD's package (see here). FreeBSD has packages for ARM (check http://pkg.freebsd.org/) - since 11.0. But if you really want build your packages from ports please read Using the Ports Collection. You can build ARM packages on your (non-ARM) machine using qemu (see a short description here).
How to compile a pfSense port for ARM?
1,370,473,401,000
I am trying to install Fifth Browser (website) (github link) on Xubuntu 16.04.2 LTS. I was able to get all of the dependencies via the official distro repositories, using Synaptic for installation. One of them as listed on fifth's homepage is called liburlmatch (github link). It appears to be a simple library that le...
It looks like the issue is actually to do with how the configure script for fifth-5.0 constructs and runs the conftest for the urlmatch library. First, the error checking for url_init in -lurlmatch... no configure: error: liburlmatch not found turns out to be somewhat misleading: if we look at the config.log we see t...
Fifth Browser - how do I get the configure script to recognise a dependency?
1,370,473,401,000
I use linux-socfpga from Altera's github repository (the master branch which is recently updated) with my DE2-115 FPGA. The output from jtag configuration is: $ jtagconfig1) USB-Blaster [2-2] 020F70DD EP3C120/EP4CE115 I wonder if it can find a USB memory that I attached? When I run lsusb nothing appears. Maybe it...
Partial answer: The User Manual shows on page 9 that two USB ports are connected to the Philips ISP 1362 Host/Device/OTG chip, and one port is connected to an FTDI FT245. The boot log shows you are loading the generic (Intel-compatible) EHCI and OHCI host drivers, and a fotg210_hcd (in the wrong order). So this canno...
How to enable USB with linux-socfpga?
1,370,473,401,000
On a rolling release distribution like openSUSE Tumbleweed, if one wanted to build some software from source, how often would these programs need to be rebuilt considering that dependencies installed from the distribution repositories might be upgrading frequently. For example, if one wanted to build Apache httpd and...
As far as I know the only "painful" in terms of recompiling things scenario is a kernel update. Then you need to compile a kernel itself together with all kernel modules. As of the other relatively high-level packages, you probably won't need to recompile them most of the time when the dependency updated. There are o...
Building software from source on a rolling release distribution [closed]
1,370,473,401,000
I'm trying to build ffmpeg with NVENC support so I can then build obs-studio with NVENC support, using this as a guide. I've sorted out every dependency after a bit of headache, and am now to the point where I should be able to compile ffmpeg with the edits to its rules file just fine. However, my trusty terminal sp...
I could build it without any issue in an LXC Ubuntu 16.04 container. vi /etc/apt/sources.list added source & backports repositories: deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse deb http://secur...
Help compiling ffmpeg with NVENC support under Linux
1,370,473,401,000
How do I compile transmission-gtk torrent client from source on Linux Mint 18 or generally Ubuntu 16.04 based systems? Supposing I want to: Remove the original packaged version. Replace it, while retaining the original settings, desktop item, etc.
In this compilation procedure, let it be clear, that it is written for today's current version 2.92, and for Ubuntu 16.04 based systems as is Linux Mint 18. This guide may differ slightly on later versions of systems and / or Transmission. Go to the official page; over secure protocol, currently the official page doe...
Compiling Transmission-GTK torrent client on Linux Mint 18
1,370,473,401,000
I have found piece of C code which would be very useful for what I want do to under this link: All possible combinations of characters and numbers #include <stdio.h> //global variables and magic numbers are the basis of good programming const char* charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234...
It appears that you initially named the C file permute; when the make failed, you tried to execute it with your shell, which resulted in all of those syntax errors (as the shell does not know how to execute C code). In the second case, you hit the comment: //Must provide length (integer < sizeof(buffer)==50) as first...
Errors while compiling C code [closed]
1,370,473,401,000
I'm trying to compile Pagespeed with Nginx in Ubuntu 14.04, following Google's instructions, and got some errors I don't quite understand. By default, it won't find my OpenSSL location, so I manually input it. However, it still fails. What am I doing wrong? Here's the whole process: alain@a3:~$ bash <(curl -f -L -sS h...
I was trying to manually force it to check on /usr/bin/openssl because that's where wich openssl was targeting openssl, but nothing happened and it was denying me the follow-up installation. After search, I was told to to install libssl-dev. And that resolved my problem. With that the installation will run smoothly.
Pagespeed + Nginx installation from source fails
1,472,033,810,000
I want to compile guile on shared hosting but when I run ./configure I've got error: configure: error: GNU MP 4.1 or greater not found, see README so I've downloaded GMP and tried to install it locally (found in answer to this question on Stack Overflow install library in home directory) mkdir /home/jcubic/lib ./conf...
As a sum up of the comments. One has to add the environment variables as follows. LD_LIBRARY_PATH="/home/<user>/lib" LIBRARY_PATH="/home/<user>/lib" CPATH="/home/<user>/include"
How to use local shared library while compiling the FOSS project?
1,472,033,810,000
I'm trying to compile linux kernel 3.14 on ubuntu 14.04. Before anyone points out, I know newer stable versions of the kernel are available but I have been asked to install 3.14 itself. So, I wrote a script which unpacks the source tar and starts building the kernel. But it stops mid way without generating any errors....
After adding the ARCH=x86_64 flag to all the make commands the Linux kernel was successfully compiled.
Linux kernel 3.14: Cannot find LILO
1,472,033,810,000
I compiled coreutils with --sysconfdir=/test/etc instead of default /etc, moved /etc/group to /test/etc/group, and chgrp failed with chgrp: invalid group: $groupname. How can I fix that and make chgrp work with new sysconfdir?
Recompiling coreutils to look for /etc/group and other files in a different place won't change the fact that most of the system still expects to find those files in the standard places. In your case, you are noticing that the part of libc responsible for looking up groups and other objects in system database, which is...
custom sysconfdir for coreutils
1,472,033,810,000
I try to install tty0tty a null-modem emulatom like in the linked installation guide, but I have a problem at "3. Build the kernel module from provided source": user@linux-bmne:/run/media/.../Downloads/tty0tty-1.2/module> make make -C /lib/modules/3.16.7-29-desktop/build M=/run/media/.../Downloads/tty0tty-1.2/module m...
To build a kernel module, you need some header files which are generated during the build of the main kernel image. The makefile expects those headers to be available under /lib/modules/3.16.7-29-desktop/build where the 3.16.7-29-desktop is determined from your running kernel. Together with the header files, there's a...
"make" stops during installation of tty0tty (null-modem emulator)
1,472,033,810,000
I have installed Linux Mint 17 on my 32-bit laptop and bought a FriendlyARM Mini2440 development board to do some basic programming and learn concepts of Linux. However, I couldn't find any documentation on how to install the cross-compiler and toolchain for FriendlyARM Mini2440 on Linux Mint (I found it for Ubuntu, t...
In the link https://alselectro.wordpress.com/category/friendly-arm-mini2440/ they suggest pasting the following line into /root/.bashrc: export PATH=$PATH:/opt/FriendlyArm/toolschain/4.4.3/bin However, I didn't have the /root/.bashrc file in my Linux Mint, so I was getting an error for arm-none-linux-gnueabi-cc –v. ...
Linux Mint + FriendlyARM 2440: Cannot install and execute cross-compiler and toolschain (arm-linux-gcc-4.4.3.tar.gz)
1,472,033,810,000
I am using a device that is running Yoco Linux on a 32 Bit architecture. It does not provide a package manager or a compiler thus not allowing me to compile on it. Instead I use a Ubuntu Virtual Machine where I compile what I need, copy it to the device and install there. That what I did for example for Python3.4 - i...
When installing programs from the source you can often use the DESTDIR flag to achieve this. Create a new directory: mkdir /tmp/uodbcinst Install: make DESTDIR=/tmp/uodbcinst/ install Archive the result tar -cpzf ~/uodbcinst.tar.gz -C /tmp/uodbcinst . Extract the result on the other system tar -C / -xf uodbcinst.tar....
Configuration of unixODBC after compiling from source
1,472,033,810,000
I have a toolchain generated through Buildroot with which I am trying to compile something statically but the build fails with gcc saying something about "multiple definition". Now looking at the command line in question, gcc is executed with an link option there occurs twice, i.e. gcc -lpthread -lpthread. I mentioned...
As noted in the comments below my question the answer is: No, linkers are too smart nowadays, the problem has to be something else.
GCC: library linked several times can cause "multiple definition" errors?
1,472,033,810,000
I am just wondering if it is a good idea [better optimization, less bugs] to recompile the gcc compiler with the own version. I compiled gcc 4.9.3 with the current system gcc 4.3.4. Once gcc 4.9.3 has been compiled should I compile it again - and all other dependencies [gmp, isl, mpc, mpfr] - with the built version 4....
gcc does this as part of its three-phase build: see the discussion of phase-2 and phase-3 compilers in Installing GCC: Building
Recompile gcc with the built version
1,472,033,810,000
I have this repository cloned on my Sabayon machine, what I would like to do is write a script that will change into each directory of this repo (just the top-level directories, not directories inside these directories) and run ./autogen.sh --prefix=/usr && make && sudo make install. I was thinking that maybe this scr...
I have found that this works: for i in `find . -maxdepth 1 -type d -exec basename {} \;` do pushd $i ./autogen.sh --prefix=/usr && make && sudo make install popd done although, some odd error messages pop out from this, so if anyone has a better answer I will be more than willing to accept it.
How do I write a script to automatically compile and install all Moksha modules?
1,472,033,810,000
I am trying to compile GNU Screen in my home folder on a machine where I don't have super user rights. I am taking GNU Screen version used by Linux from Scratch. tar xvzf screen-4.3.1.tar.gz cd screen-4.3.1 ./configure --prefix=$HOME Its all good until that point and the Makefile is generated. Then the command make e...
It looks like you're missing a few dependencies. That would be a bug in the configure script. You might want to file a bugreport to the screen maintainers.
Trying to compile GNU Screen
1,472,033,810,000
I want to build my own FreeBSD installation media (an .iso file to burn on a DVD) with selected ports. What I mean is: I use a DVD to install new system, and after installing it I can (for example) use git and gcc49. Is that possible? I know it's possible while compiling source code for ARM's (like Raspi or Beaglebone...
I was about to answer this question with a link to the release man page and go into great detail about how to build packages and include them in releases etc. But then I realized that your question is mixing up which packages are installed after the install. Packages are no longer included in the ISO, you can install ...
How do I include a port into FreeBSD distro?
1,472,033,810,000
I have created new module code. And want to compile it for my kernel. But I am not sure about I thing. Should I copy it to some designated directory before I start the compilation? Or I can just compile it wherever I want? Thank you very much!
There isn't anywhere special the source code needs to be. Normally it'd be wherever your repository is. If you want to leave it somewhere for the next admin to find, the most obvious place would be a company VCS server. /usr/src would also be a reasonable place to look, as well as $HOME. Eventually, if you decide to s...
Where (the directory) should I put my newly created module in the kernel?