date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,486,153,211,000 |
I was trying to build R myself and put it in a temp_R folder by giving a command like ./configure --prefix=/dir/where/I/wanted/to/put/R. But it seems that some of the important stuff was put into the temp_R folder all the same.
Should I have extracted the archive to the folder where I wanted to have R before compiling... |
When you run ./configure --prefix ... it typically puts all the files in the directory you just downloaded to anyway. The --prefix option is utilized during the make and make install steps that you run afterwards.
Primarily the make install step will install all the software that the make step compiled to the locatio... | Can the --prefix path be the same as the directory where I downloaded/unzipped the source? |
1,486,153,211,000 |
I compiled an application with a Makefile and g++ and it turned out, that g++ doesn't have to recompile the whole application again when I modify the Makefile (I changed to paths to the dynamic link libraries). At that time the application haven't yet compiled successfully, so there was no final executable applicatio... |
GCC stores what it generates wherever you (or in this case, the Makefile) tell it to (with the -o output option). It doesn't do compilation result-caching by itself.
What makes partial recompiles possible is the Makefile itself. It's a set of targets (executable, object files, possibly other things) with what they dep... | Where does g++ store compiled sources? |
1,486,153,211,000 |
I'm having a problem building GPG on my system; when I try to run make it fairly well before it suddenly bails out with an error. Here's my latest result from running it:
make all-recursive
Making all in m4
make[2]: Nothing to be done for `all'.
Making all in gl
make all-am
make[3]: Nothing to be done for `all-am'.
... |
Your version of the GPG source code has a typo on line 69 in scd/pcsc-wrapper.c: someone mistyped unsigned as unsinged. Fix that, and GPG will compile.
| Problem building GPG |
1,486,153,211,000 |
I am trying to install the linux_monitor package under Centos 5.5. When I try make I get:
make[3]: Entering directory `/tmp/linux_monitor-2.0RC3/src/server'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I/usr/include/openssl -g -O2 -Wall -MT linux_mond.o -MD -MP -MF ".deps/linux_mond.Tpo" \
-c -o linux_mond.o ... |
If you know it's in /usr/include/glib-1.2 then you should be able to add -I/usr/include/glib-1.2 to the 'INCLUDE' definition in your Makefile. I don't have the package or it's source so I can't be any less vague than that.
EDIT
I just downloaded the package you indicated above. Go to src/server and add -I/usr/include... | mon linux monitor install on centos - can't find glib.h although present |
1,486,153,211,000 |
Did anybody here manage to install GCC 13.1.0 on their computer? When I try to build it from source on my 64-bit Debian Linux, I get the following error message:
/usr/bin/ld: .libs/hwasan.o: relocation R_X86_64_PC32 against undefined symbol `__ehdr_start' can not be used when making a shared object; recompile with -fP... |
This error seems to be caused by a bug in ld 2.31.1: https://sourceware.org/bugzilla/show_bug.cgi?id=24458.
The bug was fixed in ld 2.32 and a later point release of 2.31 (but not one that seems to have made it into the Debian 10 package repository).
While I have not tried it, a likely workaround is to obtain a newer ... | Installing GCC 13.1.0 on x86_64 Debian |
1,486,153,211,000 |
I'm wondering what are good practices about compilation and manual installation of software on Linux systems.
I mean getting, building and installing code by this usual way :
git clone https://a-repo/foo.git
cd foo/
./configure
make
make install
Should that be avoided ? Or is it recommended ?
Maybe it is better to m... |
The problem with your method is figuring out what files have to be deleted when you want to uninstall the software.
The best practice is to build a package for the distribution. This has several advantages. It allows you to easily install, upgrade, & remove packages. It allows you to compile the software on a seper... | Good practices when installing from sources on Linux |
1,486,153,211,000 |
GNU Typist is a well-known typing practice program for the terminal. I wanted to use it so I downloaded the .tar.gz from https://ftp.gnu.org/gnu/gtypist/?C=M;O=D. But when I untarred it and ran configure, it gives me the error
Error: both library and header files for the ncursesw library are required to build this pa... |
Nevermind, I was being too pedantic with "everything must be managed by the package manager". In the configure file, the error was triggered by
if test -n "$HAVE_NCURSESW_H" -a -n "$HAVE_LIBNCURSESW"; then
LIBS="-lncursesw $LIBS"
else
echo -e "Error: both library and header files for the ncursesw library\n"\
... | How do I compile gtypist-2.9.5 on Alpine Linux? |
1,486,153,211,000 |
Do .config file in /boot has any role other than an information about the modules' presence? A .configXXXX in linux kernel source tree is used while building the kernel to ON/OFF a feature. But after installing what is it's role in /boot?
|
Their only role is to provide the configuration of the corresponding kernel, for information purposes. They are not required for anything else.
(Note that they don’t only provide information about the presence of modules; they include all the kernel’s build configuration.)
| Do config file in /boot has any role other than an information about the modules presence? |
1,486,153,211,000 |
TL;DR: Once I already compiled the Linux (Debian) kernel with "make deb-pkg", how to generate a new one after minor changes in .config?
Hello,
I'm trying to compile the kernel following https://www.debian.org/doc//manuals/debian-handbook/sect.kernel-compilation.pl.html. Well, I did. It took a while, then I installed i... |
In the beginning of Chapter 8.10.4 of the very handbook you linked:
NOTE Clean up before rebuilding
If you have already compiled once in the directory and wish to rebuild everything from scratch (for example, because you substantially changed the kernel configuration), you will have to run make clean to remove the co... | Recompile kernel after editing .config in Debian |
1,486,153,211,000 |
I am new to linux and ran into this issue. I am trying to run USSD commands and i was recommended to use atinout, however checking from their page, I can;t seem to find how to install it. I downloaded the zip from sourceforge, it is atinout-0.9.1.
I tried to run make (though I wasn't sure it could work) and got this o... |
I get the same error with GCC 9.3.0. One possible fix is to remove
-Werror from this line in Makefile:
CFLAGS = -W -Wall -Wextra -Werror \
so that it looks like that:
CFLAGS = -W -Wall -Wextra \
It's possible when atinout was developed GCC didn't have
implicit-fallthrough warning yet (it was implemented only in 2016... | How do i install atinout on linux |
1,486,153,211,000 |
I've been trying to compile digikam and as part of that process needed to compile jasper. Jasper developers use cmake, I wanted to make a .deb package -- in fact was trying to learn how to make a package to share -- and so tried to do this (which errors as below):
sudo checkinstall -D "sudo cmake --build '/home/userna... |
IIRC you're supposed to run checkinstall with the actual install command as arguments, not as a single quoted argument. So:
sudo checkinstall -D cmake --build '/home/username/Downloads/jasper/buildlocal' --target install
This is not very clear from the manpage, but the README has some examples:
Run checkinstall:
ch... | Using checkinstall in place of sudo cmake? |
1,486,153,211,000 |
I'm trying to hack a MSYS package, so I found https://www.msys2.org/wiki/Creating-Packages/ - as an example:
git clone "https://github.com/msys2/MSYS2-packages"
cd MSYS2-packages/flex
makepkg -sCLf
So, if I run this, I get the sources built, and I get a package.
Now, let's say, I change something in the source of the... |
The makepkg(8) manual states for the option -C:
-C, --cleanbuild
Remove the $srcdir before building the package.
Try the command without the option -C to not remove the $srcdir:
$ makepkg -sLf
| Using PKGBUILD to build after hacking/changing sources? |
1,486,153,211,000 |
As far as I understand, an interpreter runs code line by line; but I find probable that my reasoning is incorrect. If in this example case the first if line returns true, will the program know to skip to fi after echo "APPROVED" (and will it know which line fi is in?) or will it still take some time to check the next ... |
As Michael Horner pointed out, a shell must parse the entire command first because if it's in a pipeline or is backgrounded, that will affect the execution of the command. This is true of any command that the shell executes, and it's pretty obvious if you write a multi-line shell command at an interactive prompt that... | Does the shell script interpreter optimize if else chains? |
1,486,153,211,000 |
I am trying to get the buttons on my Canon CanoScan LiDE 60 to work. So far I installed the sane-utils, the printer is detected and I can scan. However the front buttons on the scanner are not detected by SANE. I read in this case, one should compile scandb from sources and run ./configure --enable-scanbuttond which I... |
The warning that's being treated as an error By the C compiler is causing the compilation to fail.
You can have it treated as a warning by compiling with the following:
make CFLAGS="-Wno-error=stringop-truncation"
If you receive errors where it's the CXX compiler:
make CXXLAGS="-Wno-error=format-truncation"
| How can I compile scanbd on Raspberry Pi? |
1,486,153,211,000 |
I installed ViM by compiling the source code from GitHub and then I used checkinstall to install it on my system.
Now I'd like to install another program with the apt package manager (which is vifm), but when I try to install it it tells me that it will install vim-common and vim-addon-manager. As far as I understand ... |
The apt command uses dpkg as its package database.
If the application was not installed by either of these utilities as a .deb package, there is no way they would know about it.
You would want to create a proper .deb package for the new version, you should be able to reference the sources of the current packages t... | Manage manually compiled ViM (Debian) |
1,486,153,211,000 |
The most current xf86-input-wacom version on Debian is 2 years old (0.34.99.1-1) it seems like and there is a bug where the touchscreen would not work spontaneously anymore which is fixed in version 0.36.1. I now obviously want that version on my Debian (currently still Buster, but I could update). Is building the pac... |
There are a couple of approaches to upgrade a package to a newer version which isn’t packaged yet, without risking the upgraded version being overwritten by a new package:
package the new version yourself, or build an updated source package (in this case, Ubuntu has a package of version 0.36);
uninstall the package a... | Updating Software on Debian to non packaged version |
1,486,153,211,000 |
I'm running an alpine linux box, and am trying to install radare2. I downloaded the git repo, then ran the install.sh script. It seems to run fine until running into an error:
In file included from p/native/linux/linux_debug.c:6:
/home/nomad/GitRepos/radare2/libr/include/r_debug.h:609:115: note: expected 'r_ptrace_da... |
On Alpine Linux, the asm/ptrace.h header is provided by the linux-headers package.
For installing the Linux headers package, run the following:
apk add linux-headers
Then, try repeating the install process.
| Make Error installing radare2 on alpine linux |
1,567,237,870,000 |
I have f30 installed 3 weeks and I keep seeing this error when I try to compile C++ of maybe fortran code.
It is an error connected to ld : error: ld returned 126 exit status
I've tried to look into it and so far I have no explanation.
What I can share is that ld resides in /usr/bin which is a soft link from /etc/alte... |
I don't really know why it happened or if it could be fixed otherwise or if it will have an effect somewhere else but I just reinstalled binutils and it seems it solved it.
So just type
sudo yum reinstall binutils
and it should be ok.
| Cannot execute ld : error 126 |
1,567,237,870,000 |
I need to install MySmartUSB Light in linux LMDE 3 Cindy as programer for avr in linux,so i downloaded this driver (Linux_3.x.x_4.x.x_VCP_Driver_Source) from this link:
based of it's note shown below:
Last modified July 12, 2019
This bundle contains a modified CP210x driver for the 4.10.0 kernel
(Ubuntu 17.04).
It... |
Have you used this system to run make to build drivers before? It's possible you need a few extra packages.
This guide might be somewhat helpful as it describes the necessary steps prior to compiling a software package, although the most important step in your case is probably the first:
sudo apt-get install build-es... | Error on Installing MySmartUSB Light in linux LMDE 3 Cindy (Makefile: No such file or directory) |
1,567,237,870,000 |
I need custom patch my linux kernel so it can access the MacBook Pro (2018/2019) SSD for Ubuntu installation. Luckily, someone made a patch that seems to work. I have a second computer with a 1TB drive and there was several hundred GB's (maybe 500GB?). So I thought I would go ahead and compile from source (kernel 5.2)... |
In general, you can do:
make clean
to clean up most artifacts generated by the build.
| How to free up space after kernel compile fail - where are the extraneous stuff |
1,567,237,870,000 |
I'm trying to compile libtorrent on Alpine Linux.
autogen and configure work fine but after invoking make it fails with the following message:
local_addr.cc:45:10: fatal error: linux/netlink.h: No such file or directory
I looked in /usr/include and found only netlink/netlink.h. However the next include in the source ... |
It appears that the linux-headers package contains netlink.h, so install it:
apk add --update linux-headers
| Alpine Linux - can't build libtorrent, missing linux/netlink.h |
1,567,237,870,000 |
In OS Windows I used openconnect-gui. After I changed the OS on Debian, I didn't find a version for Debian and I don't understand how to build openconnect-gui for Debian.
|
From the application sources you're linking:
Supported Platforms
Microsoft Windows 7 and newer
macOS 10.11 and newer
This isn't made readily available for Linux.
There is no need to compile a GUI for openconnect, it's already available as a NetworkManager plugin called network-manager-openconnect-gnome at Debian. ... | How to build openconnect-gui? [closed] |
1,567,237,870,000 |
after removing the default exfat-fuse package version 1.2.5 from my Debian Stretch system and replacing it with version 1.3.0, compiled from source, running mount using type exfat results to an unknown filesystem error. Checking with /proc/filesystems reveals that exfat is not listed.
Manually mounting exfat drives wi... |
Install or symlink it as /sbin/mount.exfat.
(I checked strace -f mount -t nosuchfs nowhere nowhere. It tries /sbin/mount.nosuchfs, /sbin/fs.d/mount.nosuchfs, and /sbin/fs/mount.nosuchfs only).
What's the worst that could happen :). If you forget and try to apt install exfat-fuse again, it's either going to give you ... | Configure mount to recognize self compiled fuse exfat |
1,567,237,870,000 |
When compiling the kernel, if I choose Ethernet Gadget (with CDC Ethernet support) or Network Control Model (NCM) instead of the Android composite device, I get an error:
drivers/built-in.o:coresight-tmc.c:function tmc_etr_store_out_mode: error: undefined reference to 'usb_qdss_close'
drivers/built-in.o:coresight-tmc.... |
coresight-tmc.c seems to refer to Coresight Trace Memory Controller, which seems to be a kernel/hardware debugging tool on ARM architecture.
You may have found an undeclared dependency in the kernel configuration: the Trace Memory Controller seems to depend on the Android composite device, but the kernel configurator... | Android kernel compiling error |
1,567,237,870,000 |
This is a follow up to my previous question regarding Building QuantLib on Amazon Linux.
I followed the instructions in the answer posted by MLu:
Download the source RPM (QuantLib-1.4-7.el7.src.rpm)
Install rpmbuild
Run rpmbuild --rebuild QuantLib-1.4-7.el7.src.rpm
However the result was a series of QuantLib-(devel/... |
rpmbuild --rebuild QuantLib-1.4-7.el7.src.rpm will "just" extract the source package to ~/rpmbuild/{SPEC,SOURCES}/ and run rpmbuild -ba ~/rpmbuild/SPEC/QuantLib. Nothing else.
You want to rebase to new version, which can be easy or tricky. Hard to say in advance.
The easy version is that you
rpm -Uvh QuantLib-1.4-7.e... | Rebuild from src.rpm using new version |
1,567,237,870,000 |
I'm trying to compile a very basic magic file with the command:
$ file -C -m foo
I get this error:
foo, 1: Warning: type `' invalid
foo, 2: Warning: offset `search' invalid
foo, 3: Warning: type `' invalid
foo, 4: Warning: offset `Itis42file' invalid
My file looks like this:
42
search
42
Itis42file
I have followed ... |
The format of the magic file is described in the magic(5) manual on your system (man 5 magic).
On an Ubuntu system I have access to (as well as on my OpenBSD system), the format is described as a collection of lines with the following fields:
offset type test message
I'm guessing that your file should therefore not c... | When trying to compile magic file : Warning: type `' invalid and Warning: offset `search' invalid |
1,567,237,870,000 |
Hi i have a problem in linux terminal line. So i tried compiling a file to .o like this
gcc -c palindrome.c
and the error is
palindrome.c:2:21: fatal error: reverse.h: No such file or directory
compilation terminated.
The file reverse.h indeed is in the directory because i copied everything from lab2 directory to... |
From inlab3 either
add -I../inlab2 to compiler (e.g. gcc -I../inlab2 -c palindrome.c, this will tell gcc to look in ../inlab2 for the header file)
use #include "../inlab2/reverse.h" in include line (this will give relative path for the header file)
copy from inlab2 cp ../inlab2/reverse.h . (this will make a copy of t... | fatal error no such file or directory [closed] |
1,567,237,870,000 |
I built OpenCV library from source on Raspberry Pi 3 and I don't want to repeat same, time consuming task on my other Raspberry Pis. Is there any way to generate binary or deb files of the built opencv library so that I can copy them and install using dpkg or apt ?
As you might know, make for opencv takes forever (app... |
If those are libraries you can build with the classical
./configure
make
make install
you can install checkinstall:
apt-get install checkinstall
and simply change the last step to:
./configure
make
checkinstall
Answer the questions and have your debian package. Please note that checkinstall will not free you from c... | How to make a binary or .deb from application built from source? |
1,567,237,870,000 |
I am trying to compile software that was meant for windows from source. The software I am specifically trying to compile is an application called Keeperfx for Dungeon Keeper. I enjoy that game so I thought I could compile its source on linux and see if it works. However, I am not having so much luck.
Doing the make co... |
The first set of errors happens because the source code is only intended for 32-bit targets. When building KeeperFX, you can force this (if your compiler is set up correctly) by running
make CPP="g++ -m32"
but then you run into missing headers — windows.h, winbase.h, io.h, basetyps.h when building src/main.cpp — whic... | Is it possible to cross-compile C++ source code, that was originally written for Microsoft's Windows to Gnu/linux? |
1,567,237,870,000 |
I'm trying to build a simple application using Qt 5.7 on CentOS 7.3. But when I try to compile it, I get the following errors:
cannot find -lGL
collect2: error: ld returned 1 exit status
The application code is irrelevant because any GUI application (Qt Widgets or QtQuick) gives the same errors.
My graphics card is ... |
-lGL means libGL.so. Finding the package providing libGL.so :
yum provides */libGL.so
Install the package(s) : # yum install mesa-libGL-devel mesa-libGLU-devel
| ld cannot find -lGL on CentOS 7 |
1,567,237,870,000 |
I've followed this tutorial which shows how you can enable the GCC compiler on ChromeOS, which uses the following commands below.
sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partitions 2
sudo mount -i -o remount,exec /home/chronos/user/
export C_INCLUDE_PATH=~/Toolchain/usr/include/
export... |
The problem is that when you repeatedly use sed in this way, you keep appending to the shared object file ~/Toolchain/usr/lib/libc.so. So after the first run, this corrupts the file path.
If your path is corrupted, navigate to the file and manually change the contents of libc.so to the following:
/* GNU ld script
U... | Why does GCC stop working? |
1,567,237,870,000 |
The commands I use to compile a Latex terminal is:
$latex <file>.tex
$dvips -Go -ta4 -Ppdf <file>.div
$ps2pdf <file>.ps
What I want to do is make an script that I will run like $./ltx <file>.tex and it will make all the commands listed above, changing the .tex extension to .div and .ps when necessary.
How do I that... |
I'll enter another Answer just to give some additional perspective for future efforts.
Part of your Question says
run like $./ltx <file>.tex ...
which implies (via the ./ syntax) that the ltx script exists in your current directory. This is an artificial limitation, IMHO, as maybe next week you want to work on some ... | Script to compile a Latex file |
1,567,237,870,000 |
Following the steps on Samba wiki page, I was able to build the samba source code. However, after sudo make install, I could not start the samba service since there is no systemd entry under /usr/lib/systemd/ folder. Am I missing any steps? Thanks!
|
When compiling/installing from source, as with most software distributions like this, the service will not be installed. You need to do those steps manually (or with configuration management of some type). Here's an example that I find, specifically for Samba 4 on a systemd based Linux system.
Translating from here:... | Install samba4.4.4 from source on centos7 |
1,567,237,870,000 |
I wrote a simple module for the Linux Kernel and it has a stack buffer overflow vulnerability. I want to exploit the module, but I have to turn off the stack protector in the kernel first. How could I do this quickly and simply?
Is it required to compile the kernel every time?
Is there any other way to turn off sta... |
Those options work by passing options to the compiler, so the most straightforward way is to recompile the kernel.
However for a reproducible and module-specific way kbuild allows you to set custom CFLAGs on a per-module basis.
https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt
You particularly want to set... | How to turn off stack protector in linux kernel easily? [duplicate] |
1,567,237,870,000 |
I have a shell script (build.sh) that ends by attempting to copy some files into a new directory. However it says:
mkdir: cannot create directory
‘/files/ondisk/shared//comp/auto/bleeding-1169-b28d31a’: Permission
denied
when running the script.
The command is:
( umask 000; mkdir -p "${BASE}/${TARGET}" ) || exit... |
That double-slash in the pathname looks odd. Perhaps you have no permission to write the ${BASE}, which might be /files/ondisk/shared. The umask value is irrelevant, because it only affects the permissions of the directories and files which mkdir and cp create — not the permissions of the existing directory into whi... | Shell script getting 'permission denied' despite using umask 000 before command |
1,567,237,870,000 |
My linux cluster has installed ifort compiler now.
But for some purpose, I need pgi compiler in the same computer.
Can they coexist? I'm not familiar with this area, afraid of meeting trouble.
|
You'll be fine, using multiple compilers (Fortran or any other language) is pretty common, and their default installations shouldn't interfere with each other.
Of course, anytime you're using multiple compilers for a language, you should organize your projects so that you remember which compiler you targeted. At a mi... | Can ifort and pgi complier coexist in the same system? |
1,567,237,870,000 |
I'm trying to install kiwix on fedora 23
when I tried to compile kiwix sourcecode under my computer. and when I want to run make, it shows me this message!
[ar.lnx@host kiwix-0.9] $ make
make: *** No targets specified and no makefile found. Stop.
Log
NOTE: I follow the installation steps here
[ar.lnx@host kiwix-0... |
The error is right in the output. It says:
configure: error: cannot find xapian-config
So, you'll need that — and it looks like we have it packaged in Fedora... do
sudo dnf install /usr/bin/xapian-config
Then, rerun ./configure. You may have further problems; continue to resolve them in the same way (check for error... | can not install, No targets specified and no makefile found. Error |
1,567,237,870,000 |
I unpacked the .tar.gz file. I installed the gcc compiler. I ran the ./configure command with various flags and options. I ran make check and found an error. The exit status is 2. Only 0 is without errors. In the output I see this:
/bin/ld: cannot find -lcap collect2: error: ld returned 1 exit status
make[6]:... |
I don't know what "-lcap" is
The -l flag to the GCC C compiler tells it to link in a library, in this case called cap, which is an abbreviated version of the library name.
The full name is libcap.so.2.22 on CentOS 7, with the alias libcap.so.2. Chasing such details down is not your problem; leave it to the linker.
... | How do I install NTP from source on CentOS v7? (/bin/ld: cannot find -lcap) |
1,567,237,870,000 |
I'm attempting compile BFLT Utils (https://github.com/nihilus/bflt-utils), but keep getting the following error:
$:/tmp/bflt-utils/flthdr# make
gcc -Wall -g -O2 compress.c -c
gcc -Wall -g -O2 stubs.c -c
gcc -Wall -g -O2 flthdr.c -c
flthdr.c:22:23: fatal error: libiberty.h: No such file or directory
#include <libi... |
Mark's comment above is correct: Your CFLAGS addition should use -I, not -L. The -L flag to the compiler tells it where to find libraries, but you're failing to find a header file instead.
(Yes, the header file is called libiberty.h, but that doesn't make it a library.)
Generally you use -L flags in makefiles in LDFLA... | Having trouble compiling BFLT Utils: can't find libiberty.h, despite being installed |
1,567,237,870,000 |
I tried to compile GNU Freedink as described in the BUILD file but when I try to configure it couldn't find SDL2.
Log: http://pastebin.com/GYHHa4T0
|
To install the build-dependencies:
apt-get build-dep freedink
That will ensure all the files required to build Freedink are available, but with SDL 1.2 only. To use SDL2:
apt-get install libsdl2-dev libsdl2-image-dev libsdl-ttf2.0-dev libsdl2-mixer-dev
If you just want to be able to play Freedink, it's in Debian alr... | Compile freedink couldn't find SDL2 |
1,567,237,870,000 |
When I run
make-kpkg --initrd buildpackage
with concurrency_level set to 17, all cores are at 100% according to gnome-system-monitor, when running the cc1-jobs.
When I run
fakeroot make-kpkg --initrd buildpackage
with concurrency_level set to 17 as well, the cores stay at around 40-60%.
What am I doing wrong?
Do I h... |
make-kpkg --rootcmd fakeroot --initrd kernel_image kernel_headers kernel_source kernel_manual kernel_debug
is the way to go.
I don't know why
make-kpkg --rootcmd fakeroot --initrd buildpackage
has problems.
| fakeroot make-kpkg buildpackage |
1,567,237,870,000 |
I've inherited some Centos servers (6.2) that I want to get up to date, we have one dev machine. I'm starting off on the dev machine going through updates with security amendments, and applying ones that look most critical first (feel free to shout if there's any recommended sites or processes to follow relating to th... |
Minor versions like 6.2, 6.3 etc. are designed to be compatible after update (i.e. as long as 6.2 stays 6.2, and upgrades are made within it). Most importantly, kernel major and minor versions as well as glibc major and minor versions will stay the same. Any updates to these will not mean you need to re-compile appl... | Safely updating packages on Centos and custom compiled applications |
1,567,237,870,000 |
Is there an automatic way to understand the order in which individual libraries of the X11R7.7 package should be built when I want to build all of util, lib and xcb?
|
Either in the order listed in the X.Org build.sh script or by figuring out the dependency tree in the X.Org jhbuild modules file.
Note that X11R7.7 is nearly three years old now, and many of the modules have had newer versions, with security fixes, released since then, in the X.Org individual releases archive.
| build X11R7.7 from sources - in which order |
1,421,228,458,000 |
I executed the minimal building directions of xcape:
$ sudo apt-get install git gcc make pkg-config libx11-dev libxtst-dev libxi-dev
$ mkdir xcape
$ cd xcape
$ git clone https://github.com/alols/xcape.git .
$ make
But when I press xcape it says xcape: command not found. It errors even when I'm in the xcape folder wi... |
Have you tried ./xcape ? You have to execute it this way, because the location is probably not defined in the $PATH variable.
| Installing Xcape (question involving the "make" command) |
1,421,228,458,000 |
I'm trying to build a custom kernel from a git repository on my Ubuntu virtual machine. I run the make command as follows :
sudo apt-get install vim libncurses5-dev gcc make git exuberant-ctags
mkdir -p git/kernels; cd git/kernels
git clone -b staging-next git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.g... |
staging-next is, as of right now, currently broken, specifically f823182bc289 of staging-next is broken.
If you really want to use staging-next, check out fcf1b73d08cd, which is near the top and does compile.
| Compilation error when building a custom kernel |
1,421,228,458,000 |
I'm a starting security/Linux student and I'm having headache-problems getting my wireless to work on Kali Linux.
Recently I've bought a new laptop, to be specific the: Lenovo IdeaPad Z50-70-01418NL
It comes with the wireless card: Realtek RTL8723BE Wireless LAN 802.11n PCI-E
Lenovo only supports Windows, so I went se... |
For the rtl8723be drivers, just update the kernel.
Click here and follow all steps:
https://forums.kali.org/showthread.php?22638-rtl8723be-wireless-driver-installation&p=37193&viewfull=1#post37193
| Unable to 'make' anything.. Kernel-headers problem? Trying to get my RTL8723BE working |
1,421,228,458,000 |
When installing a library with configure, make and make install,
does make install copy <libraryname>.pc to some place?
If yes: Where is it?
If no: Should we copy it somewhere rather than leave them where they are?
I am asking that, because on an old notebook of mine, I saw:
add the directory containing libraryna... |
In general, ./configure && make && make install without any parameters sticks everything under /usr/local, which would place foo.pc in /usr/local/lib/pkgconfig/foo.pc
To make use of this, you'd need to do basically PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags foo, or, compile in this... | Where is <libraryname>.pc? |
1,421,228,458,000 |
According to FreeBSD, from version 10 they use Clang/LLVM instead of gcc. on the surface of it all things should perform as been before even better. but I have faced this reality more than I want to. Some codes can't be compiled this way.
For example I tried to compile Snapwm. First native FreeBSD make is actually pma... |
Sometimes needs some patch. I've createad which you can apply and can build with gmake. I didn't try the compiled snapwm I've tested only building process.
diff -ur Nextwm-master.orig/Makefile Nextwm-master/Makefile
--- Nextwm-master.orig/Makefile 2014-03-12 19:46:34.000000000 +0100
+++ Nextwm-master/Makefile 2014-04... | Building Snapwm on FreeBSD (Problem of gcc and clang)? |
1,421,228,458,000 |
I have on my Arch linux system, php compiled with --enable-calendar=shared, what does that mean?
I couldn't find any relevant information on that topic on the web.
Problem is, that I have to recompile it with --enable-calendar flag, for some application to work, should I remove =shared, as it is not working right now... |
PHP extensions can be compiled statically or shared.
Static compilation puts the extension directly into PHP (therefore it does not need to be loaded and cannot be unloaded).
When using shared compilation --enable-calendar=shared that will create file calendar.so. You can enable or disable it by editing php.ini.
| php --enable-calendar=shared |
1,421,228,458,000 |
I want to compile bash 4.2 from source. but http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz is more 2 years old.
Should i apply all the patches from http://ftp.gnu.org/gnu/bash/bash-4.2-patches?
|
You can checkout the source with git and then compile:
git clone git://git.sv.gnu.org/bash.git
cd bash
./configure --prefix=/usr
make
sudo make install
that should get you bash version 4.2.45 (ie 4.2 including patch 45)
cvs would be faster but the repository for bash is empty for some reason. git clones the whole h... | compiling bash 4.2 with patches |
1,421,228,458,000 |
I have SerNet Samba 4.0.9 installed on CentOS 6.4. How can I tell if it was compiled with CUPS support?
|
The docs, which say they're valid for Samba 3 and 4, say:
"...make sure, that your smbd is compiled with CUPS support:"
# smbd -b | grep CUPS
HAVE_CUPS_CUPS_H
HAVE_CUPS_LANGUAGE_H
HAVE_CUPS
HAVE_LIBCUPS
| Does SerNet compile Samba 4 with CUPS support? (How to tell in general?) |
1,421,228,458,000 |
I see that I can get the latest stable Rekonq through http://sourceforge.net/projects/rekonq/, but I want to get the latest developmental-version/daily-build. Where can I obtain the developmental source code?
|
Looks like you can get it here:
$ git clone git://anongit.kde.org/rekonq
Page on installing and compiling it is here:
https://techbase.kde.org/Projects/rekonq/Compiling_rekonq
| Get latest Rekonq developmental source code |
1,421,228,458,000 |
I have built cairo-1.7.6 for use in building pango-1.32.6, and I have installed it to a directory in my home directory: /home/me/local/cairo-1.7.6. Under this directory are the expected include, lib and share directories.
However, I don't seem to be able to get the pango ./configure to suck in the cairo dependency fro... |
You could try setting LD_LIBRARY_PATH to /home/me/local/cairo-1.7.6/lib
then try ./configure --prefix=/home/me/local/pango-1.32.6
| Specifying local install directory for ./configure for pango-1.32.6 |
1,421,228,458,000 |
I needed to enable SCSI support in CentOS 7.9 so I followed the instructions here:
https://wiki.centos.org/HowTos(2f)I_need_the_Kernel_Source.html
to add SCSI support and recompile, which worked as expected, but instead of uname -r reporting 3.10.0-1160.108.1.el7.x86_64, it only reports 3.10.0, and the vmlinuz files i... |
By default, uname -r will only give the output of VERSION, PATCHLEVEL & SUBLEVEL as defined by the kernel Makefile as all other settings would by default be blank. In this case, 3.10.0.
However, there is also EXTRAVERSION within the Makefile & LOCALVERSION which can be set during config. As such I would have expected ... | CentOS 7.9 not reporting full version number after recompiling kernel |
1,421,228,458,000 |
I need to install SAGA GIS for some interpolations. Sadly, sudo apt-get install saga will only install version 7.3.0, but I need version 9, preferably 9.3.0.
The SourceForge repo doesn't contain Linux binaries. The wiki page on binaries mentions a Launchpad package, but the last build is from 2017.
There's also a 9.3.... |
Recently, an upgrade from Zorin 16.3 to 17 was released, and now everything works as expected.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Zorin
Description: Zorin OS 17
Release: 17
Codename: jammy
$ uname -a
Linux dell-zorin 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 1... | How to install SAGA GIS 9.3.0? |
1,421,228,458,000 |
Instead of downloading the ISO, is there a way to download all the source packages and compile it locally?
I came across the following URL https://knopper.net/knoppix-sources/ and would like to know whether it is possible to somehow download everything and compile everything in sequence locally.
|
Yes, there is.
Let's first look into the documented way of setting up a knoppix image:
http://knoppix.net/wiki/Knoppix_Remastering_Howto documents the process.
Like with many Linux distributions, you set up an initial installation in a chroot directory, then create a bootable image from that.
Because current knoppix i... | Is there a way to compile KNOPPIX from source? |
1,691,001,434,000 |
I am trying to build "Transmission" on my machine with Linux Lite v3.6, but cmake is needed. Successfully installed it with sudo apt install cmake, but it installed only cmake 3.5.1. And transmission needs at least 3.9. How to install 3.9?
|
Linux lite is just an adoption of the Ubuntu long-time stable releases.
The oldest still supported of these is Ubuntu 18.04, which already shipped with cmake 3.10. I think Linux lite v3 is based on the now-defunct Ubuntu 16.04.
So, your Linux lite must be very very ancient, and you will very likely encounter much more... | Cmake on Linux Lite 3.6 |
1,691,001,434,000 |
I can't understand why including a text file that contains some C lines in a fortran77 code gives me a warning if I do not use #include. I wrote an example of a code that is supposed to read some text to be added to the main file, test.F:
program testInclude
include 'includetest.txt'
end program
... |
Files included by the preprocessor #include directive can contain #defines and the like; files included with the compiler INCLUDE statement must contain only FORTRAN statements.
| Why compiling Fortran code with include is different from #include? |
1,691,001,434,000 |
I'm running Debian Buster where I build some packages with the devscripts package. I want to build these packages for the current stable Debian release (bullseye) without upgrading my system. I'm not sure where to start. Update my build packages? Set some flag in the build scripts?
|
You can use pbuilder for this; install it, then run
sudo pbuilder create --basetgz /var/cache/pbuilder/bullseye.tgz --distribution bullseye
to initialise the Debian 11 build tarball. Then use pdebuild to build your package:
pdebuild -- --basetgz /var/cache/pbuilder/bullseye.tgz
See the pbuilder tricks page on the De... | Build package for debian stable on old-stable |
1,691,001,434,000 |
Background
Hello, OpenDKIM is available on the official apk repository, but does not include important configuration flags I need such as --with-odbx and --with-sql-backend.
I was able to compile it relatively easily. However, the resulting OpenDKIM binary cannot verify DKIM headers since it does not support RSA-SHA25... |
Okay, I figured it out. I fully don't understand why, but I needed to set this env var for ./configure:
CPPFLAGS="-I/usr/include/openssl"
So the full RUN command becomes:
RUN apk add --no-cache \
openssl-dev \
libmilter-dev \
&& cd /opt/data \
&& tar xzf 2.11.0-Beta2.tar.gz \
&& cd OpenDKIM-2.11.0-Beta2... | Properly compile OpenDKIM on Alpine |
1,691,001,434,000 |
I've tried building packages from qt's website but everytime I try to cmake a specific file that requests qt version 5.15 I'm always told it fails because I'm using the default version 5.12.8. How can I make it so I'm using a new version of qt? APT packages don't seem to solve the issue.
I'm attempting to cmake some l... |
From the Qt forum:
cmake -DCMAKE_PREFIX_PATH=~/Qt/6.1.2/gcc_64/lib/cmake CMakeLists.txt
you can use a specific version of Qt as such. The path should be accurate to wherever you've installed your Qt directory.
| Can't change Qt version from 5.12.8 to 5.15.X |
1,691,001,434,000 |
I am using the latest stable Linux from Scratch book version. In Step 5.5.1, when configuring Glibc I run the provided script, and receive an error telling me to use the --with-headers configure option, however I am already using it.
The book states to configure using:
../configure \ --prefix=/usr \ --host=$LFS_TGT \ ... |
Resolved. Simple error on my part. In case someone else runs into this in the future: In the previous step (5.4.1) there may have been an error in the installation of the Linux headers, and to run "cp -rv usr/include $LFS/usr" root may be required. In my case I must have missed this specific command, thus in the next ... | When configuring Glibc prior to compiling it I recieve an error concerning kernel headers telling me to use "--with-headers" |
1,691,001,434,000 |
someone suggested me this would be the right place for asking this question and it seems so from other questions. I hope to get an answer here.
(by the way, the reason I'm trying to build ubuntu is to add some debug info in the ubuntu kernel to debug an ubuntu install failure on a virtual machine using qemu. The virtu... |
Based on the ARM cross-compilation instructions, you need to export the following:
export $(dpkg-architecture -aarm64)
export CROSS_COMPILE=aarch64-linux-gnu-
But it asks me Do you want to edit config: amd64/config.flavour.generic?
If you reply “no”, it will eventually ask you if you want to edit the arm64 configur... | how to build ubuntu for arm64? (how to give ARCH and CROSS_COMPILE variable to `debian/rules` command) |
1,691,001,434,000 |
so I've cloned this github repository https://github.com/xiangzhai/rt5370
It's a drive for my wifi adapter.
My problem is that whenever I try to use the "make" command, it returns this error
/lib/modules/5.3.7-gentoo--g243aa7022-dirty/build No such file or directory
This is what I've tried so far
emerge --sync
emerg... |
Apparently my kernel wasn't actually compiled.
Compiling my kernel fixed the issue.
| Build not found when using the command "make" in gentoo linux |
1,691,001,434,000 |
I'm trying to build an LFS system but I've hit a roadbloack, what am I supposed to do for the 2nd passes. I thought maybe I had to re-untar again then compile their but that didn't make a new directory, then I thought a build directory had to be made inside the existing folder but that doesn't work out either, then I ... |
Chapter 5.3, more precisely the second Important box, tells you to extract the package, go to the directory that was created by the extracting process, follow the instructions, go back to the parent directory and delete the extracted sources.
So yes, you have to untar again, since you deleted the extracted directory s... | What are you supposed to do for "pass 2" sections in LFS |
1,691,001,434,000 |
I am trying to understand creation and use of static libraries and shared libraries in Linux using Program Library HOWTO. There are two statements in the link that I am confused about:
Static libraries permit users to link to programs without having to recompile its code, saving recompilation time.
Static librar... |
I think the guide is supposed to be understood in the order it’s presented in, without assuming external knowledge about libraries. Thus in chapter 2, “Static Libraries”, comparisons don’t involve shared libraries, which haven’t been introduced yet.
So both excerpts are comparisons to source code only: compared to pro... | Static Libraries: Recompilation and sharing of the source code |
1,605,709,891,000 |
I purchased a new Jinco Wifi Adapter wifi adapter, but I am getting this error every time when issuing the make command:
[superusr@developer-pc ~]$ cd /opt/rtlwifi_new-rock.new_btcoex/
[superusr@developer-pc rtlwifi_new-rock.new_btcoex]$ sudo make
[sudo] password for superusr:
make -C /lib/modules/5.8.18-300.fc33.x8... |
According to the provided lsusb info, 0bda:f179 Realtek Semiconductor Corp. 802.11n, what you're looking for is this driver:
https://github.com/kelebek333/rtl8188fu
(Turning a comment into an answer to make it easily accessible).
| Errors while installing wifi drivers on Fedora |
1,605,709,891,000 |
I need help with installing a software.
In general: I try to install PostGIS on a cluster (CentOS) and do not have admin rights. There is a sqlite3 installation (connected to the error), but this seems corrupt. My own one usually works and has (also by install-process) been used previously.
I cannot use yum.
In detail... |
One of the dependencies (proj) linked in its .la file to the malicious sqlite3 version. Reinstalling this dependency solved the issue.
What would help in similar cases would be to search the 'wrong path' in the dependencies:
find <deps lib dir> -type f -exec grep -l "<wrong path>" {} +
Kudos go to https://stackoverflo... | Libtool searches wrong directory while path specified |
1,605,709,891,000 |
I'm trying to run busybox on my waveshare stm32 development board but my SOC has "armv7-m" architecture not "armv7-a". so I've put the march flag in the menuconfig of busybox (-march=armv7-m) Additional CFLAGS. But when I'm trying to compile it, it throws me thousands of instants of this Conflicting architecture profi... |
You should use -mcpu flag instead of -march.
Example:
-mcpu=cortex-m7
| How to compile busybox for cortex-m7 (-march=armv7-m)? |
1,605,709,891,000 |
I've configured my busybox in menuconfig and made it as a static binary (no shared libs) + forced no MMU build.
I'm using the prebuilt arm cross compiler and when I enter the below command, it gave me error while building the source code.
sudo make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
it gave me this log:
... |
Use Linaro arm toolchain instead of glibc. the default arm gnu compiler on ubuntu is not stable.
https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/
| cannot cross-compile busybox for arm |
1,605,709,891,000 |
I tried to compile an Android 8 kernel to contain a driver for TP-Link TL-WN722N USB Wi-Fi card for a smartphone, the kernel is flashed successfully, but when I plug the Wi-Fi card via OTG to the phone, it's not recognised by software.
Here are some debugging I have done:
The Wi-Fi card is showing in lsusb -t output, ... |
I finally got it working, it turns out the Atheros device requires a .fw firmware file to be placed in right directory to work, I noticed this because an error of loading firmware failed message shows in dmesg every time I plug in the wifi card.
I also tried to bind driver to device like @nobody suggested, but I'm not... | Why is a loaded module not being driver of the device? |
1,605,709,891,000 |
If I installed a new kernel via rpm, I can see the kernel source ( /usr/src/kernel/4.xxx-xxxx-xxxx ) for me to build the driver. It seems covered by kernel-devel rpm.
ex:
kernel-ml-4.14.15-1.el7.elrepo.x86_64.rpm
kernel-ml-devel-4.14.15-1.el7.elrepo.x86_64.rpm
Now, I want to install/build the new kernel from the upst... |
Now, I want to install/build the new kernel from the upstream source, what should I do to also have the kernel source be installed as kernel-ml-devel-4.14.15-1.el7.elrepo.x86_64.rpm did?
As you want to rebuild your kernel from scratch, your entry point will be the sources :-)
So, just download a kernel from kernel.... | How to install kernel source from upstream kernel |
1,605,709,891,000 |
The current version of Kodi in Debian10's repositories is v17.6. This version didn't work properly (it wasn't usable). Hence I'm trying to install the latest version.
I followed the steps of the "Debian/Ubuntu build guide" of the Kodi repository except that I didn't add the PPA. I used sudo apt build-dep kodi as packa... |
The latest version is in Debian bullseye now so the below isn't needed anymore. If you're running Debian 11, just run sudo apt-get install kodi.
The latest version is in Debian buster-backports now so the below isn't needed anymore. If you're running Debian 10, just run sudo apt install -t buster-backports kodi.
Ther... | How to install latest Kodi on latest Debian? |
1,605,709,891,000 |
I have downloaded pcre from https://ftp.pcre.org/pub/pcre/pcre2-10.34.tar.gz and extracted it to
/usr/local/lib
when I run
./configure --with-included-apr --with-pcre=/usr/local/lib/pcre2-10.34
I am getting following error
configure: error: Did not find pcre-config script at
/usr/local/lib/pcre2-10.34
|
yum install pcre-devel -y
fixed the issue, the devel(development) package was missing.
| build apache on linux server |
1,605,709,891,000 |
I want to make some changes in ath9k drivers for learning purposes.
My problem is that when I try to compile the driver, the make command is giving many implicit declaration errors, setup_timer, ACCESS_ONCE, DECLARE_EWMA are the most frequent ones that show up in the errors.
My kernel version is Ubuntu 4.15.0-20-gener... |
I was compiling the driver module from the torvalds linux kernel, that was the problem, now I am compiling it from the Ubuntu source code, and it is working...
| How to compile ath9k drivers from source? |
1,605,709,891,000 |
As a novice in linux kernel compilation, it's my first time to compile a Linux kernel for myself (I'm trying to use other TCP congestion control algorithms).
I followed the steps in How to Compile a Linux Kernel. When trying to run make, I get an error:
✘ XPS-13-9360 ~/linux_compile/linux-5.1.18 make ... |
Actually I figure out this by myself.
It's look like the compiler could not find the header as my view.
use the env command, the CPATH is not in /usr/include/ but /home/user/.local/include:$CPATH,so I change the CPATH to /usr/include/, using the method of lkraemer,but it's still could not work out, and the env reveal ... | Compile linux kernel error |
1,605,709,891,000 |
My current use case is installing PyODBC via poetry in a Jenkins job build, which is failing because sql.h can't be found.
For background, I have two servers, one RHEL 6, one RHEL 7; the RHEL 6 server has unixODBC installed and working with (among other things) odbc.ini in /etc/, sql.h and other headers in /usr/inclu... |
The installation on your RHEL 6 server was probably done using the RHEL package of UnixODBC. This is easy to replicate on your RHEL 7 server:
yum install unixODBC-devel
will install the headers, development files and all their dependencies.
We won’t be able to tell you why the two installations were performed differe... | UnixODBC-dev installed in /usr/local/, resulting in gcc reporting sql.h can't be found |
1,605,709,891,000 |
I'm adding a generic-package to Buildroot 2019.02.1. This package (fbi) includes <asm/page.h> in the fbtools.c, but the headers are not available in output/target. Compiling the package causes the following error:
$ make fbi-rebuild
[...]
CC fbi.o
CC fbtools.o
fbtools.c:24:30: fatal error: asm/page.h: No... |
It seems impossible to compile against the headers without integrating them into the root file system. I tried to compile fbi out of the Buildroot tree, but this takes too much effort.
I'm trying fbv instead of fbi, because it's already in Buildroot.
| Buildroot: compile fbi against kernel headers |
1,605,709,891,000 |
I used to have OpenCV3 from the Arch Linux pckage manager(pacman) and it worked fine but when I removed it and install OpenCV 3.4.1 and OpenCV-Contrib from source code nothing worked even the old project when I tryied to recompile them, here is the CMakeLists.txt file:
cmake_minimum_required(VERSION 2.8)
cmake_policy(... |
I have solved it by recompiling OpenCV and recompiling LPACKE
for Compiling OpenCV I've used their docs and this blog post
*Note for block post I haven't used the last two commands
sudo sh -c 'echo "/usr/local/lib" >> /etc/ld.so.conf.d/opencv.conf'
sudo ldconfig
I used this blog as a guid, I didn't need all the stuf... | Can't link opencv libraries via Cmake in Linux |
1,605,709,891,000 |
Here is the information about my system and the compiler I use:
Linux version 4.9.0-5-amd64 ([email protected]) (gcc version
6.3.0 20170516 (Debian 6.3.0-1
8) ) #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
clang version 5.0.1-svn325091-1~exp1 (branches/release_50)
Target: x86_64-pc-linux-gnu
Thread model: posix
Instal... |
I have finally found out what really caused this error.
The cmake was using gnu golden linker, and the archieve libLLVMSupport.a was composed of LLVM IR code, no wonder it went wrong.
After I switched to using ld.lld-5.0, all errors were gone.
| Can't add symbols to ../../lib/libLLVMSupport.a when building llvm-6.0.0 using llvm-5.0 |
1,517,398,443,000 |
So ages ago I knew how to do this but now I have forgot the last command.
So for some odd reason alot of python apps I compile to the system and not just python apps don´t have uninstall options in the MAKEFILE. So someone told me to run python setup.py install --record installed-locations.txt instead of the usuall py... |
Found it. cat files.txt | xargs rm -rf
So in summory to uninstall apps from system compiled with python follow these steps
1)
Download the source code for the exsact version of said app if you do not have it already
2)
Extract the file and cd into the extracted files
3) Run as root python setup.py install --record fil... | Uninstall Python Compiled App on Debian |
1,517,398,443,000 |
I am writing a set of bash scripts.
The first, wrapper calls two scripts: do_something and do_something_else.
In pseudo code:
$ wrapper
do_something
if exitcode of do_something = 0 then
do_something_else
else
exit with error
fi
exit success
This would generate a log file:
$ cat /var/logs/wrapper.log | tail ... |
Here's a sample of how to handle this scenario in one script, without losing the functionality that the OP wants, which is:
ability to run multiple blocks of logic, all of them, at once, or one at a time.
Ability to log these actions to a file.
This is a simple example. If you treat the scripting language like you ... | Create a multi-script bash script that is compiled and keeps a log |
1,517,398,443,000 |
I'm trying to install last TauDEM (Terrain Analysis Using Digital Elevation Models) release in GNU/Linux Debian for using with Python Processing in QGIS. Installing instructions can be watched here. After installing some dependencies (cmake, mpi-default-bin) in my system, when I ran following command:
CXX=mpicxx cma... |
To install Taudem in GNU/Linux Debian you can download installation script from this link:
taudem_ubuntu.tar.bz2
After unpacking it, move to that folder and run script (as superuser) with following command:
./taudem_ubuntu.sh
Successfully execution of script also requires these dependencies:
cmake, mpi-default-bin
... | How to solve building error where a variable "... was not declared in this scope" |
1,517,398,443,000 |
I am trying to run code for a video processing application on litmus rt using this, however I am getting the error below.
bin/base_task.c: In function ‘main’:
bin/base_task.c:151:6: error: ‘codec’ is deprecated [-Werror=deprecated-declarations]
if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO) {... |
It's not an error per se, it's a warning that's treated as an error because of the -Werror=deprecated-declarations flag. If you disable that the build will proceed further.
| codec is deprecated [closed] |
1,517,398,443,000 |
I have to compile buildroot to generate embedded os for raspberry pi. I have an error when I compile buildroot source code this is the error below
drivers/staging/olpc_dcon/Kconfig:36: syntax error
drivers/staging/olpc_dcon/Kconfig:35: unknown option "should"
drivers/staging/Kconfig:37: can't open file "drivers/stagin... |
This is not a Buildroot error, it's an error happening while Buildroot is compiling the Linux kernel source code, so the problem is in the specific Linux kernel version you have selected, not in Buildroot.
| buildroot compiling error |
1,517,398,443,000 |
I'd like to install a very old PHP version on debian 8. Namely PHP 5.1.0. I will not use this in production, it is just for testing purposes. However, if I try to compile it I run into problems with the dom module. After a little bit of research I found out that libxml2 versions >= 2.9 cause problems with those older ... |
You definitely can do this, but it can get annoying.
I'd put libxml 2.8 in a separate prefix (./configure --prefix=/path/to/prefix/) alongside PHP 5.1.0 (e.g. /opt/php510/ or /usr/local/php510/), since you don't want to risk overriding the newer library with an older one. You'd definitely be best off if you build libx... | How can I compile an old PHP version and dependencies on debian 8? (PHP 5.1.0 in this case) |
1,517,398,443,000 |
I want to compile supertuxkart for notebook on my main computer (v-mint, with distcc daemon). My actions:
Clone git+svn repos from official sources. (compile/{stk-code,stk-assets}).
cd compile/stk-code
mkdir cmake_build && cmake_build
cmake .. -DCMAKE_CXX_COMPILER=/usr/bin/distcc -DCMAKE_CXX_FLAGS_RELEASE=g++
export ... |
Create small script (I'm using distg++ in my PATH) contains it:
distcc g++ "$@"
and run cmake:
cmake .. -DCMAKE_CXX_COMPILER=distg++
| Distcc ld error |
1,517,398,443,000 |
Conspy is a neat remote control program for the TTY virtual consoles in Linux.
I am trying to compile the latest v1.10-1 version, but after installing all the supposedly needed packages, I still have a compilation error that stops the procedure:
luis@utilite-desktop:~/Temporal/conspy/conspy-1.10$ make clean
test -z ... |
For those arriving here, these are the needed packages for ConSpy:
# apt-get install libtool libncurses5-dev fakeroot sudo automake devscripts
The problem (or so I believe): as @SteelDriver pointed, between each make attempt I was not doing the needed ./configure.
UPDATE 2015-10-16:
There is no need to do /configure... | Conspy: "Undefined reference" errors when trying to compile the latest version |
1,517,398,443,000 |
Trying to compile obs on debian like here described: https://github.com/jp9000/obs-studio/blob/master/INSTALL
gives me this error:
Linking C shared library libobs.so
/usr/bin/ld: /usr/local/lib/../lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object;... |
I just followed this guide here then it worked: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
| Compile OpenBroadcaster on Debian |
1,431,359,411,000 |
I'm trying to compile Solr 4.10.4 (on Ubuntu 14.04) from source so that I can make use of a patch. I've applied the patch, and successfully compiled the source code. But where do I find the compiled Solr WAR file? When you download the binary Solr distribution, it exists under dist/solr-<version>.war. No dist director... |
After you've compiled Solr, you must go to the solr/ directory, and run the ant command dist in order to build the JARs:
ant dist
The Solr WAR file will now be present at solr/dist/solr-<version>.war.
| Compile Solr source code into WAR |
1,431,359,411,000 |
I am building my first LFS 7.5 using Linux Mint-13 (32-bit)
While preparing Binutils for compilation(5.4.1):
../binutils-2.24/configure \
--prefix=/tools \
--with-sysroot=$LFS \
--with-lib-path=/tools/lib \
--target=$LFS_TGT \
--disable-nls \
-... |
There must be space between parameters.
| Getting error during Installation of Cross Binutils in Linux From Scratch -7.5 |
1,431,359,411,000 |
Can I use a native build from fedora on ubuntu? What is the difference in compilation between distributions?
|
The location of libraries might differ between fedora on ubuntu. This could cause a build for fedora not to function on ubuntu and vice versa.
| Same native compilation for different distributions |
1,431,359,411,000 |
Somewhere between the 13 and 13.1 releases I was no longer able to compile XBMC from source. I was able to compile v13 when it was first released (from the Gotham branch). Then, 13.1 was announced and I decided not to try the betas/RCs; so I have not attempted to compile those. When the final 13.1 version was released... |
I had to update zlib1g and now it worked :)
For the record, here's what I said in the comments above and why I don't have everything updated:
I must be missing some package update. The thing is, I'm on Debian
Squeeze and most dependencies for this to work must come from Wheezy.
I just need to find out which one I... | Library missing compiling XBMC from source |
1,431,359,411,000 |
I am tryting to make initrd file system following [this tutorial][1]
My host system is RHEL 6 64 bit.
I am unable to get the required command: genext2fs
No rpm is available for it, neither yum is helping me.
I hope there is an alternate to this command.
|
If you want genext2fs, it's easy to find; build it from source. But you probably don't want it. Create an initramfs instead. That's the normal method these days.
| Is there any alternative to genext2fs in RHEL? |
1,431,359,411,000 |
I am building the sunxi-linux kernel for a cubieboard and I need the carl9170 driver to make a usb wifi adapter work. I am using the 3.4 sunxi kernel, and no matter what I do in xconfig, I cannot enable the option CONFIG_CARL9170 because it is greyed out. I tried satifying all of its dependcies, but it is still greyed... |
It took a long time, but I got it. After running make sun4i_defconfig run make menuconfig and enable wireless and then under wireless make sure CONFIG_80211 is enabled, its probably called mac80211 driver. Then go down to wireless lan and enable atheros wifi. Then finally it will allow you to enable the carl9170 drive... | Enabling carl9170 in xconfig |
1,431,359,411,000 |
I wonder, is it possible to compile Unix along with a my custom program so that it runs only my custom program on start up of computer, as if my program starting with boot up?
|
If you mean you only want users to be able to run one program, you can replace the user's shell with the absolute path to the program in the passwd file - assuming a local passwd file..
| Compile Unix with a custom application [duplicate] |
1,431,359,411,000 |
I have successfully build OpenCV using this linux install tutorial on an Ubuntu distribution in the past, but recently, I needed to build it on a Arch Linux distribution.
The command
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. -Wno-dev produces an apparently error free log including the... |
I copied the opencv directory from my Ubuntu machine and assumed that cmake would overwrite any previously set variables. However, I believe the CMakeCache.txt was not overwritten, leading to the misidentified path.
Easy fix:
Download clean opencv distribution from http://opencv.org/
Follow tutorial as before.
| Building OpenCV on Arch Linux can't find gcc [closed] |
1,431,359,411,000 |
Where's the path of compiled packages from source on debian?
for example:
git clone git://github.com/lightspark/lightspark.git
cd lightspark
dpkg-buildpackage
[...long output...]
dpkg-buildpackage: full upload; Debian-native package (full source is included)
Then the packages is compiled successfully, but where the p... |
The binary and source packages that are generated are written to the directory that is one level above the top level source directory. In your case the top level source directory is lightspark, so it will be in the directory above lightspark. However, you could have easily discovered this by a look at some of the ext... | Where's the path of compiled packages |
1,431,359,411,000 |
When I type the command
./configure --prefix....
the result goes like this :
checking whether the C compiler works... no
configure: error: in `/root/Downloads/agensgraph':
configure error: C compiler cannot create executables
See `config.log' for more details
My config.log is the following:
This file contains ... |
You are setting CFLAGS to
-ggdb -0g -g3 -fno-omit-frame-pointer
Out of these, -0g is not valid. You may have meant -g0 (which would disable the debugging enabled by -ggdb). The later -g3 flag enables debugging again.
| configure error: C compiler cannot create executables [closed] |
1,431,359,411,000 |
I want to download and build a release of vim, but on the vim github repo - there are over 12,000 releases, and a release is made every few hours. What should I do?
|
The Vim project has the slightly unusual custom to provide a new release per source code commit, with each commit incrementing the patch release number by 1. It's unlikely to matter too much what patch version of the latest major release you get, unless you want to get a particular patch. Just use the latest release ... | I want to download a vim release - but there are thousands! |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.