date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,472,033,810,000
I try to compile a project, I got the source files from git hub. But when I launch make, the compilation complains that the dependency on wayland-server is not met. However, I have wayland installed. On my system, libwayland-server.so.0 is located in /usr/lib/x86_64-linux-gnu When looking at the Makefile of the projec...
Use command Export LIBDIR=/usr/lib/x86_64-linux-gnu:$LIBDIR And try again. If it works, put this line in your ~/.bashrc
How to tell the compiler to search some libs inside /usr/lib/x86_64-linux-gnu
1,472,033,810,000
I get the following error when I try to compile my application. I have installed all dependencies using Homebrew, looked at output from "brew doctor", nothing clear on how to solve this problem. $ gcc `pkg-config --cflags gtk+-3.0` -o gui gui.c `pkg-config --libs gtk+-3.0` In file included from /usr/local/Cellar/g...
Solved the problem, I used the following to compile my app, I wasn't specifying the vte library. clang -Wall -g gui.c -o gui pkg-config --cflags --libs gtk+-3.0 vte
float.h library not found when compiling gtk+3/vte app with Homebrew
1,472,033,810,000
I have 2 systems that both run Gentoo. I want to use one to build binary packages for the other and have been following this wiki article. One problem I have is that I have different use flags for my 2 systems. As an example, I have vim installed on both my package server and package host. My package server has the US...
For my situation, I found the solution to be distcc, which eyoung100 suggested in the comments.
Different USE flags for a binary package server and host
1,472,033,810,000
To save space and time I copied a large project tree on a network drive as hard links, i.e. cp -a -r --link proj proj_B (background: it's huge, needs to be rebuilt from two incompatible environments, and doesn't have good support for specifying intermediate and product locations. So this was a quick hack to get a reb...
I wouldn't use hard links. Some editors break hard links when they save files, others don't, and some can be configured. However, preserving hard links when saving a file implies that the file is written in place, which means that if the system crashes during the write, you will be left with an incomplete file. This i...
Sharing a project tree between environments
1,472,033,810,000
I built kernel 3.11.3 following the instructions here. There were no issues in the build. The steps I followed automatically made entries in grub and copied the image to /boot too. At boot time, when I choose the new kernel, booting gets stuck with the following message [ 1.563345] MODSIGN: Problem loading in-kernel...
cd to the source directory, type 'make clean', then 'make localmodconfig' then build the kernel as you did before. When you do 'make install' grub.cfg will be autogenerated.
Unable to boot using self built kernel
1,472,033,810,000
In the past when I have compiled applications from source I have extracted the source code to ~/src and compiled from there. I realize now that there may be no need for me to create the ~/src directory, as Linux probably already has an established location for source code for applications such as this. Is this the cas...
There's no pre-determined, or even globally preferred, location. The closest analogue I know of would be the /usr/src tree in Red Hat Enterprise Linux and derivatives, but most applications that you compile are designed to be unrolled into their own directories, compiled as a non-privileged user, and only then install...
Where to place source code for applications compiled from source?
1,472,033,810,000
We are working with an older software product that has some limited programming capabilities - specifically, no bit manipulation functions. This has created a significant problem as we need to implement a HMAC-MD5 Hash to interface with an industry standard software interface. The older software does have the ability ...
The compiler should be gcc, If you don't have it, the package has the same name—install it however you normally install CentOS package (e.g., yum install gcc) There are a lot of open source implementations of HMAC-MD5. Any crypto library will have it. And various other projects have one. Google or a code search will q...
C-library HMAC_MD5 questions
1,472,033,810,000
When installing ZoneMinder 1.25.0 in CentOS 6.4 (64-bit) the following error pops up when executing make: zm_ffmpeg_camera.cpp:105:44: error: missing binary operator before token "(" Full log: zm_ffmpeg_camera.cpp:105:44: error: missing binary operator before token "(" In file included from zm_ffmpeg_camera.cpp:24: ...
Turns out the latest stable release of ffmpeg (1.2.2) does not go along with ZoneMinder 1.25.0. Installing the 0.9 version of ffmpeg solved this issue. wget http://www.ffmpeg.org/releases/ffmpeg-0.9.tar.gz tar -xzvf ffmpeg-0.9.tar.gz cd ffmpeg-0.9 ./configure --enable-gpl --enable-shared --enable-pthreads make make in...
ZoneMinder compiling error: "missing binary operator before token "(""
1,472,033,810,000
I git-cloned the latest version of ldc2, but I don't know how to compile it on my centOS 5 machine: git clone --recursive git://github.com/ldc-developers/ldc cd ldc git submodule update --init cmake doesn't seem to do much. Neither does cmake Unix Makefiles Any ideas? There is no INSTALL file and the README file does...
The README states the following: If you have a working C++ build environment, CMake, a current LLVM and libconfig++ (http://hyperrealm.com/libconfig/libconfig.html) available, there should be no big surprises, though. Do you have the package cmake installed? Additionally I'd install the package group "Developmen...
compiling ldc2 on a centOS 5 system with no root access
1,472,033,810,000
When I run make for flac, I get this gcc: error: @LIBICONV@: No such file or directory make[3]: *** [flac] Error 1 make[3]: Leaving directory `/home/ubuntu/flac/src/flac' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/ubuntu/flac/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving direct...
This bug is documented here. However, none of the suggested fixes worked for me. It's not a header file you need, it's a macrofile: namely iconv.m4 If you use Ubuntu can you see here what provides these files, $ apt-file search iconv.m4 gettext: /usr/share/aclocal/iconv.m4 gnulib: /usr/share/gnulib/m4/iconv.m4 The .m...
When compiling I get an error, `@LIBICONV@: No such file or directory`?
1,472,033,810,000
I have a 3rd party device driver which I am trying to cross-compile. When I build the driver everything goes smooth but I don't see any driver.ko file, however driver.o file is generated fine and I don't see any error during the build process. I have also tried with the option V=1 and I see following error echo; echo...
Ok, I have figured out the problem. I am having square bracket character "[" in the module source directory LD [M] /home/farshad/Work/CSP/boards/imx6q/ar6k3/ar6003_3.1_RC_Linux_release_[posted_2011_8_19_olca3.1RC_553/imx6build/host/os/linux/ar6000.o Removing this from the path worked well and I got my kernel modu...
Building kernel module
1,472,033,810,000
I am trying to compile the last development version of Yap Prolog in OSX (Mountain Lion). The first time I tried I saw this message: ################################################################## # ERROR: Could not find library archive (-larchive). Dropped # library(archive). Library archive is available from # h...
The -devel packages usually contain header files, pkgconfig data and similar - anything one would need to link an application against the library in question. I'm not sure how ports work, but check /opt/local (or /opt/local/include) for archive.h and archive_entry.h. Without these files you won't be able to compile th...
cannot find libarchive when compiling YAP prolog in OSX
1,472,033,810,000
I installed catalyst, so I needed to downgrade to xorg-server-1.11 from xorg-server-1.12. Now I use the [xorg111] repo and I understood that because of the udev, which works for the new xorg-server I have to recompile it. I don't really know how to recompile it so it works with it. Q: How do I do the manual compilatio...
Solution A: use ARM Find and download proper packages here (also dependencies) , and use pacman -U XX.xz to rollback http://arm.konnichi.com/search/index.php?a=32&q=xorg-server&core=1&extra=1&community=1 Solution B: bulid from source Clone this repository: git://pkgbuild.com/aur-mirror.git And find the old version of...
How to recompile my xorg-server in ArchLinux
1,472,033,810,000
My Xen dom0 is a Gentoo x64 pvops. I boot my guest Gentoo, in PV mode, system with the same kernel my dom0 uses. When I emerge in the guest system, building a CPP package, I am experiencing low CPU utilization. From the System Monitor tool on dom0, I see the CPU utilization is about 12% for both cores. But in the gue...
You can start by setting vcpus in the guest. vpus = <number of virtual cpu cores> You could also consider pinning some vcpus to the guest. vcpu-set domain-id vcpu-count Enables the vcpu-count virtual CPUs for the domain in question. Like mem-set, this command can only allocate up to the maximum virtual CPU count con...
How to increase Xen guest CPU utilization?
1,472,033,810,000
I have a bug in a driver (iwlwifi/iwlagn), which I have reported, and the developers are asking me to "build the driver with debug options enabled." More specifically: Debugging output is enabled when compiling the driver with CONFIG_IWLWIFI_DEBUG set to "y". I do have the source. How do I put that option in when c...
This debugging option i.e. CONFIG_IWLWIFI_DEBUG is used for enabling the debugging of your WiFi card. You have to enable this option by adding a line in the .config file in the /usr/src/linux-headers-(kernel-version) directory. CONFIG_IWLWIFI_DEBUG=y This .config file contains all the kernel options which you want to...
Compiling a kernel module with some options
1,472,033,810,000
When I cloned hulahop I had a few possibilities to install it. I have chosen the path with autogen.sh I used commands: $ sh autogen.sh # -> OK $ ./configure # -> OK But make fails: $ sudo make 2> errors.txt $ cat errors.txt hulahop.cpp:28:29: error: pyxpcom/PyXPCOM.h: No such file or directory In file included from...
error: pyxpcom/PyXPCOM.h: No such file or directory You need PyXPCOM. It's not currently in Ubuntu. There are a couple of old PyXPCOM PPAs, you could try them, but both haven't been updated since maverick so they might not work. Otherwise, build PyXPCOM from source. But first, check if PyXPCOMext (which you can get ...
Make errors when compiling hulahop
1,306,699,713,000
Basically I need this specific version of the Tanuki Java Service Wrapper to run a specific Java application. I downloaded the source from the Tanuki website and I'm trying to compile it from source. This is under a Debian Linux system armv5tel architecture. It uses Ant, and there is a build.sh script that invokes a ...
The solution was to use a later version of ant (the one I installed via Debian) instead of the copy provided with the source package.
Issues compiling Tanuki Java Service wrapper version 3.1.2 under armv5tel architecture
1,306,699,713,000
I have little experience with LINUX . I am using Debian. It has a library glibc which has several useful programs. iconv is the program that i want to use to do several charset conversions... However i want to create my charset to use it at a really old from 1978 dot matrix heavy duty printer which has a custom char...
A quick search led me to this HOWTO. I have no experience with this, but your command will look similar like this: gcc -shared -Wl,-soname,your_soname -o library_name file_list library_list
How to build-compile a .c file
1,306,699,713,000
I am trying to compile the mainline Linux kernel with a custom config. This one! Running on a 64 bit system. At the last step, when linking the Kernel, it fails because it goes OOM (error 137). [...] DESCEND objtool INSTALL libsubcmd_headers CALL scripts/checksyscalls.sh LD vmlinux.o Killed make[2]: **...
It's getting unaffordable to develop Linux I am afraid it has always been. 32GB RAM is common on kernel devs desktops. And yet some of them started encountering ooms when building their allyesconfig-ed kernel. Lucky you… who are apparently not allyesconfig-ing… you should not need more than 32G… ;-) On a side note, ...
Linux build with custom config using all RAM (8GB)?
1,306,699,713,000
I am trying to compile coremarks to benchmark one of my CPU cores I generated (from here: https://gitlab.com/incoresemi/core-generators/benchmarks/-/tree/master). I get the following error: In file included from common/syscalls.c:3: /usr/lib/gcc/riscv64-unknown-elf/10.2.0/include/stdint.h:9:16: fatal error: stdint.h: ...
One way to fix this error is: restrict gcc in using stdint-gcc.h This can be done by adding c compiler flag -ffreestanding to gcc For more info on what is freestanding visit here and implied -fno-builtin visit here
stdint.h: no such file or directory
1,306,699,713,000
> install.packages("stringi") [...] * installing *source* package ‘stringi’ ... ** package ‘stringi’ successfully unpacked and MD5 sums checked ** using staged installation checking for R_HOME... /usr/lib64/R checking for R... /usr/lib64/R/bin/R checking for endianness... little checking for R >= 3.1.0 for C++11 use.....
Solved by changing MAKE=${MAKE-'make -j16'} to MAKE=${MAKE-'make'} in /usr/lib64/R/etc/Renviron. I had added -j16 years ago to make system-wide use of multi-threading, and it had been fine through multiple Fedora and R upgrades until now. Multi-threading is still enabled at the user level via ~/.R/Makevars with conte...
Cannot install 'stringi' R package -- C compiler problem?
1,306,699,713,000
I'm trying to install mopidy-spotify on my freebox delta that allow me to install vm and is arm64 based After many problems, i've manage to get most of the dependencies working and to get rid of most of the errors. But am still struggling on libspotify when trying to compile pyspotify. I've compiled successfully (i th...
You're most likely trying to mix 32 bit and 64 bit libraries. 32 bit applications must be linked against 32 bit libraries whereas 64 bit applications must be linked against 64 bit libraries. You can run file /usr/local/lib/libspotify.so to check if your library has been compiled for 32 bit or 64 bit. You can instruct ...
pyspotify compilation ld error
1,306,699,713,000
I have been having problems compiling a router's kernel for QEMU. I have the router working in QEMU using an OpenWRT kernel, but networking does not work. This is why I want to compile the original kernel. The below command is the problematic command that the (main) Makefile indirectly executes. I say indirectly becau...
Using @filbranden's comment, I was able to compile the kernel for my router (there are more error's that need to be solved, but that isn't the scope of this question). I left a log and my config of what I was doing to compile the kernel on Github gist (new logs and config). The config is broken and won't be apparent u...
Why does my Makefile not compile and how can I fix it?
1,549,357,740,000
System: Linux Mint 19 Cinnamon 64-bit, based on Ubuntu 18.04. Pidgin: Built from source, version 2.13.0. Purple Facebook: I'd like to build it from source, version 0.9.5. But I get missing package error which I cannot locate. $ ./configure ... checking for json-glib-1.0 >= 0.14.0... no configure: error: Package req...
I had a missing single development package: sudo apt-get install libjson-glib-dev
Mint 19 - Pidgin IM Purple plugin - Error while configuring: No package 'json-glib-1.0' found
1,549,357,740,000
I downloaded xfstk source and built it. I installed dependencies such as boost, libusb-devel etc... but although I installed boost, I getting error messages, such as the one below, reporting that boost is not installed. ...some output code here [ 0%] Built target docs [ 1%] Built target xfstk-command-line [ 2%] Au...
You typically have 2 paths to take when you're trying to build software on Linux distros. Options Rely on the package manager of the Linux distro to do the heavy lifting for you Incorporate your self compiled libraries into LD's path so that build/config tools are aware of it. Option 1 For number 1, you can install ...
Building XFSTK error on Fedora 28 : /usr/bin/ld: cannot find -lboost_program_options
1,549,357,740,000
I've stumbled across the discontinued bzip-0.21 on the ftp of vim.org which is respectable, so I think it's fine. However the code from 1996 won't compile anymore with today's GCC. Is there a chance in getting it running for a modern device that requires the binary to be compiled for armhf? Merely an enthusiast for ol...
Solved by cross-compiling from a desktop PC: get the requirements sudo apt-get install build-essential g++-arm-linux-gnueabihf gdb-multiarch -y build object code and compile ran@compilestation:~$ arm-linux-gnueabihf-gcc -O3 -g3 -Wall -c -o -fPIC "bzip.c" ran@compilestation:~$ arm-linux-gnueabihf-gcc -o "bzip1" bzip1....
Compiling bzip1 on a raspberry pi 2 with debian server?
1,549,357,740,000
After reading over the great Arch Linux guide for the Dell XPS 13 9560, I am curious about using the patch mentioned for enabling low-power modes on NVMe SSDs. To quote the repo that contains the patch's source: To manually compile the Archlinux kernels from here, follow steps: (1) git clone: https://github.com/damig...
So, jasonwryan basically commented the answer I was looking for here. The patch is applied to a linux kernel which can be compiled and used for any distro. He linked me to a couple great articles including the same Arch Linux guide on kernels. When I asked this question I didn't have enough knowledge about the kernel ...
Using Andy Lutomirski's Arch Linux NVMe patch with another distro
1,464,367,064,000
My system has an old glibc version. I compiled the new version [2.23] into /FaF/glibc. Due to the fact the new glibc version is not compatible with SLES 11 SP2 & SP3 I have to use the linker switch [--rpath=/FaF/glibc/lib] in order the new version is used in my programs. This works perfectly! I cannot set the path to ...
In the end the answer was in the Apache build documentation - Environment variables. In my case the very serious issue is the fact my system [SLES 11 SP2] crashes with the glibc version 2.23. This means I cannot set the path to the new glibc libraries in the ld.so.conf file. The only one solution for me is to set $LDF...
Compiling Apache with another glibc version
1,464,367,064,000
I'm trying to compile VASP 5.4 on Ubuntu 14.04 and running into issues. I believe I'm most the way there but when I run the make command it seems to bottle out with out a specific error. I am unable to run make install: make: *** No rule to make target `install'. Stop. This is very new to me so I am struggling to real...
You have already compiled it. The make is what compiles. The make install simply copies the compiled executables and associated files to their target directories on your system. From what you describe, it sounds like what you are compiling simply doesn't have an install script. I haven't compiled this particular pack...
Problems compiling VASP
1,464,367,064,000
I'm using fedora 23 64 bits here, i suppose i have all dev deps installed, however this last one i don't know how to solve: [sombriks@sephiroth planner]$ sh autogen.sh /usr/bin/gnome-autogen.sh ***Warning*** USE_COMMON_DOC_BUILD is deprecated, you may remove it from autogen.sh ***Warning*** USE_GNOME2_MACROS is depre...
While hitting the same problem I found out that the below helped: touch xmldocs.make
unable to compile GNOME planner from source
1,464,367,064,000
I want to add Python 2.7 to my Unix. I downloaded the sources to the VirtualBox on which the Unix is installed and run ./configure --prefix=/usr \ --enable-shared \ --with-system-expat \ without problems. However, when I try to run make, it fails on: cc –Kpthread –Wl,-Bexport –o pyt...
make is successful when #endif is moved from line 526 of Modules/posixmodule.c to line 513.
Compiling Python 2.7.10 Error
1,464,367,064,000
I am trying to install Kali on my Lenovo Yoga13, but after formatting the disk the setup failed to install grub because of no internet access (no Ethernet, need driver to get Wifi to work). So, I decided to compile the Wifi driver to complete the setup just to realize I am missing kernel headers. I cannot apt-get inst...
If it is not on the install media, then you need to get the deb into /var/cache/apt/archives/. If it is there then the download part of apt-get will be skipped.
Missing kernel headers, but need them to install the Wifi driver
1,464,367,064,000
I am currently trying to upgrade apache from 2.2.8 to 2.2.29 and am running into some trouble. I configured the makefile like so: ./configure --enable-mods-shared --enable-ssl --enable-rewrite --enable-proxy-ftp --enable-proxy-http --enable-proxy-connect --enable-proxy --enable-cache --enable-mem-cache --enable-expire...
After a few days of trying to figure this out here is the solution. There seemed to be an old APR library (< v1.3.0) installed on the system that was in conflict with the version needed for apache. What I did was compile (and run) with the APR embedded in the httpd-2.2.29 archive using: ./configure --with-included-apr...
Trouble updating Apache - mod_deflate APR_INT32_MAX undeclared
1,464,367,064,000
I recently lost my dual-booted HDD (with both Linux and Windows). It did some weird stuff and started changing all files to read-only on every start-up. So, I bought a new HDD and put Fedora 20 on it. Now, the only thing I'm looking to replace is Finale (I have found acceptable substitutes or Linux versions of everyt...
Method #1 - Using Wine + Finale If you have Fedora 20 setup and a copy of Finale already you can apparently run it under Wine, at least according to this thread titled: Finale 2014 without Windows or Mac. excerpt Hey all Heads up: Finale 2014 is working perfectly on Linux. You can use PlayOnLinux (or basic WINE) and...
Pre-compiled Finale substitute for Fedora 20?
1,464,367,064,000
If we install the Red Hat System then can we compile the other distros of linux on the Red Hat server system? If so, please provide me the tutorials and links.
First If by that you mean creating a custom Ubuntu or other distros yes you can and this action is not entirely distro-specific (i.e in your case Redhat). For that you could use two diffrerent approaches. Either use automation tools such as linuxcoe and other different tools or go native and start by LFS (Linux From S...
Do I compile Ubuntu Source code on Red Hat System?
1,464,367,064,000
I'm trying to figure out how to run the make command. I'm trying to make use of fmem (a tool found on the internet), and it is said that "make" must be run from a terminal in the folder. However I get this: root@bakie:/home/tux/Documents/fmem/fmem_1.6-0# make rm -f *.o *.ko *.mod.c Module.symvers Module.markers module...
You're missing the Linux kernel's headers. You can install them like so: $ sudo apt-get install linux-headers-$(uname -r) Any time you're attempting to compile C/C++ software you often need libraries and header files. The header files can contain function prototypes and implementations of said functions. The librarie...
fmem compile error with make
1,464,367,064,000
I'm trying to cross-compile libSDL version 1.2 for a custom made, Debian based Linux system. The toolchain I'm using is already configured properly so that I just run gcc/g++ on the desired code and the resulting output is compatible with the target machine. When I run ./configure --help in the libSDL source directory...
The answer is 'yes', I should specify both. The --build flag will be the architecture of the machine doing the compiling... the scripts can do a good job of guessing what this will be, but it's better to be safe than sorry and actually specify yourself. The --host flag is the necessary part in making this cross-compil...
Cross compiling libSDL
1,367,501,163,000
I bought a barcode printer as Godex. I have to install its drivers. I did it on Ubuntu. However, I have some problems about it.For example: In README file: $ sudo aptitude install libcupsimage2-dev But shell says me sudo:aptitude: command not found Moreover when i write sudo apt-get install aptitude it says sudo:apt-...
Each Linux distribution (or family of distributions) has its own package management system. Ubuntu uses .deb packages and has the APT tool family including Aptitude. Pardus has its own package manager called PiSi. Your immediate problem is “no acceptable C compiler”. You need to install a C compiler, and probably othe...
How to install rastertoezpl on Pardus?
1,367,501,163,000
I did compile a cmake project statically in FreeBSD 12, when I try ldd executable it returns not a dynamic executable. I tried the executable in same computer and It works fine. Then I did port it to my vps that have a FreeBSD 12 and it's working like expected. But when I port it to FreeBSD 8. Some commands are workin...
FreeBSD 12 had serious ABI change called "ino64". IIRC, libc can handle that when linked dynamically, so I'd try that first. If that doesn't work, your only option is to compile on FreeBSD 8. Generally, you shouldn't expect binary compiled on X major release to work on X-1 release. But it works other way around by ins...
Static executable weird behaviour when running it in older FreeBSD
1,367,501,163,000
I'm trying to build tools from source codes. I start with make and get the following error: configure: error: no acceptable C compiler found in $PATH So it means that I need to install gcc. But as you may guess it requires make tool. gcc-9.3.0 installation instructions says: "GNU make version 3.80 (or later) You m...
But I want to build them from source code. You really do need a C compiler to prime the pump. Even in the old days of getting GNU going on systems such as SunOS, you’d start by building the tools using the native C compiler (or later, by using GCC binaries built by someone else). Make is only one of the tools you ne...
How to build gcc without make?
1,367,501,163,000
Forgive my lack of expertise, but I'm wondering if a source code for an open source windows program can be compiled and its executable used on Linux (without Wine). In my case it's Ant Renamer, which I currently use with Wine (I was unsatisfied with the Linux alternatives, which lack some advanced functionalities or a...
The short answer is no. A longer answer is usually not. It depends on what libraries the program relies on. Depending on the language that the program is written in, the standard library shipped with the compiler or interpreter may include more or less functionality. C, a ubiquitous language in the sense that only ext...
can we compile source code of windows programs?
1,367,501,163,000
Suppose I want to: compile and install my own custom application which requires downloading, compiling and installing the source for newest version of libthrift which requires downloading, compiling and installing the latest version of libboost Here, I'm installing these libraries in my system which may interact wi...
Generally, the solution is "don't try to install from source into directories managed by your packaging system". You can install your custom-compiled code into /usr/local, for example, and having anything that depends on it look to /usr/local for libraries and include files using appropriate invocations of your build ...
How can I get self-compiled packages to play nice with packages managers (e.g. apt-get, yum) [duplicate]
1,367,501,163,000
I have read that python will compile the source file .py by itself to produce .pyc, but this doesn't happen in my case. I have the source file inside /opt/osqa folder where I always have to use sudo privileges. How can I compile this source file manually. I am using ArchLinux. Do I need any specific package?
The .pyc files are created when files are imported. Usually running a script by itself will not create a compiled file. For instance: % cat tmp.py print 'in tmp.py' When I run the file normally: % python tmp.py in tmp.py there is no .pyc file created: % ls tmp.py* tmp.py However, if I import tmp from a live Python...
Compiling python .py to .pyc doesn't happen
1,367,501,163,000
A4: main.o testA4.o helper.o miscFunctions.o queueFunctions.o headerA4.h gcc -Wall -std=c99 main.o testA4.o helper.o miscFunctions.o queueFunctions.o main.o: main.c headerA4.h gcc -Wall -std=c99 -c main.c -o main.o testA4.o: testA4.c headerA4.h gcc -Wall -std=c99 -c testA4.c -o testA4.o helper.o: helper...
The link/load command is missing the -o A4 option. You might want to write it as -o $@. Similarly, you might write the object list in the command as $^, causing GNU make to copy the dependency list. (Alas, not all makes have this feature.) Make will also provide a pattern for the compiles. You could set CFLAGS and...
Make file not working c
1,367,501,163,000
I do a lot of software testing and that requires me to build many different projects from source. I've recently upgraded to Fedora 33 from 31, and essentially, I have a group of issues that involve either not being able to run software that I had previously built due to "missing" dependencies, and/or when I try to bu...
Compiling any non-trivial piece of software from source can be a complex task, although nowadays there's quite a bit of automation to hide much of the details. But when something goes wrong in the process, you'll need to be able to understand the process to effectively troubleshoot it. Unfortunately, it seems to me th...
What types of things break regarding building of native software when upgrading versions of Fedora, and what are some solutions? [closed]
1,367,501,163,000
I'm currently working my way through the Linux From Scratch (LFS) book, but I'm a bit confused about when to apply patches. In Section 5.7 the goal is to build glibc. The section have a pretty straight forward build instruction, but I noticed in a previous chapter, that I downloaded the patch Glibc FHS Patch and there...
The patch is not needed in Section 5.7, it's needed in Section 6.9. There is a note in the general compilation instructions which says: Several of the packages are patched before compilation, but only when the patch is needed to circumvent a problem. A patch is often needed in both this and the next chapter, but...
LFS - Should Glibc be patched in Section 5.7?
1,367,501,163,000
I have a bash script that uses source to make the script more modular. Here's how it would look copied into a user's bin directory: /bin modules/ script-1 script-2 script-3 script-4 script-5 main-app However, this doesn't work if you want to execute main-app from a dire...
Use the $0 positional parameter and dirname: #!/bin/bash echo running "$(dirname "$0")/$(basename "$0")" source "$(dirname "$0")/modules/script-1"
How to add a modular bash script to `bin`?
1,367,501,163,000
I want install mdbtools from source and I get the following error fatal error: sql.h: No such file or directory so I read the following solutions, but I don't really understand them https://forums.freebsd.org/threads/46299/ https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189382 I did the following: $ sudo apt insta...
Seeing how you're on Ubuntu, most likely you need unixodbc-dev : sudo apt-get install unixodbc-dev . Usually on Debian-based systems when you are asked for a header file (.h or .hpp) you need the corresponding -dev package.
mdbtools fatal error: sql.h when installing
1,367,501,163,000
Am using a RHEL 5.5 shared server, my user has complete access to /opt folder. No root access, cant write to /etc, /usr etc. So, I downloaded httpd-2.4.6 and httpd-2.4.6-deps onto /opt (ie. /opt/httpd-2.4.6) I installed Apache on /opt/httpd. By using ./configure --prefix=/opt/httpd --with-included-apr It installed an...
I found that the issue was a mistake with handling double quotes in configure file of the source of subversion. I had to compare the line which gave the mismatch error with the configure file in subversion 1.7.14. I had to change the line $EGREP "[apache_minor_version= *"$apache_minor_version_wanted_regex"]" >/dev/nul...
Error while Compiling Subversion with a custom-compiled Apache on a shared server
1,367,501,163,000
I want to download aptitude to build it from source on my 64bit machine. It is a Thinkpad with a normal x86_64 CPU, nothing special. The download page only has: alpha amd64 armel armhf hppa hurd-i386 i386 ia64 kfreebsd-amd64 kfreebsd-i386 m68k mips mipsel powerpc powerpcspe ppc64 s390 s390x sh4 sparc sparc64 x...
What you're looking for is called "amd64". "ia64" it's Itanium, "i386" is 32bit Intel 386. The 64bit architecture was originally developed by AMD, and then adopted by Intel.
Debian package available for ia64 but not for x86_64?
1,367,501,163,000
I just downloaded libevent-2.0.21-stable, which I am hoping to compile so that I can use tmux. However, when I run: ./configure --prefix=/path/to/libevent-2.0.21-stable/ make make install everything seems to work well until the last few lines, where I get the following error: ... make[3]: Leaving directory `/nfs/tita...
It seems that you want to install the files to the same place where you extracted the tarball. Extract the tarball to a different place or try a different prefix and it should work (worse option: use make install -i to ignore all error messages).
Unable to install libevent without admin priviledges
1,367,501,163,000
Issue This question, and answers containing various approaches to solving it comes up many times almost daily on our exchange here. If a search result brought you here Welcome! If a comment I left in your question linked here, you can safely assume your question could be added to the list below, as it fits in the sam...
My Solution First off, I guess I would be considered a purist in that if a package isn't in your repository, or can't be added from a third party repository, you shouldn't attempt to compile it from scratch or "force it to work" because doing so short-circuits your package manager. With that in mind, I present a rock...
I'm Using Distribution $X That was shipped With Compiler $Y, but I Need Compiler Version $Z
1,367,501,163,000
As the title suggests it is the output file it cannot find, not sure why this is an issue here is my c_cpp_properties.json: { "configurations": [ { "name": "Linux", "includePath": [ "${workspaceFolder}/**", "~/edu/doa/code_base/datastructures-v1.0.13....
In your task.json file, you have -I followed by a directory path. This seems ok, but then you have another directory path, ~/../../usr/include/, before the -g debug option. The compiler would see the second directory path and, since it's not an argument to any option, would try to use it in the compilation as if it ...
gcc doesn't find output fine and therefore cannot compile my c program (vscode)
1,367,501,163,000
Wanted to try out st terminal. In the Requirements section in its README: Requirements ------------ In order to build st you need the Xlib header files. What are 'Xlib' & 'Xlib header files'? What packages should I install? Using Debian stable.
Xlib is the X11 client library, and the headers are files needed to build programs using it. On Debian you need to install libx11-dev.
What are the Xlib header files and how can I install them?
1,367,501,163,000
I wonder how one could force, for some real example: CFLAGS='-O2 -march=native' CXXFLAGS='-O2 -march=native' CC='gcc-10' CPP='gcc-10 -E' CXX='g++-10' when running the configure script in my case for Transmission 3.00 BitTorrent client? Editing the configure file does seem a bit tricky and more importantly not univer...
The documented way to override variables when running configure is to specify their values as arguments to configure, as explained by ./configure --help: `configure' configures transmission 3.00 to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC...
Forcing overrides when configuring a compile (e.g. CXXFLAGS, etc.)
1,367,501,163,000
I've been writing a script that can compile a Linux Distro, which you can find here. Essentially, it creates /mnt/semcos, and throws up a linux-based system there. At the moment, I'm stuck at compiling busybox-1.31.1 - I get the following error: date.c(.text.rdate_main+0xe4): undefined reference to `stime' collect2: e...
The error you reference is a problem finding the symbol stime(). Looking at man 2 stime I see: NOTES Starting with glibc 2.31, this function is no longer available to newly linked applications and is no longer declared in <time.h>. My guess is that you have glibc 2.31 or greater. Note that the calls to s...
Failed compiling Busybox: very long and confusing error
1,367,501,163,000
I try to compile a program by typing (lets assume here I'm cd'd into the directory) clang++ file_name.cpp. It compiles and should autorun, but it doesn't, and just ends the event, and opens the terminal back for input. I see a file named 'a.out' in the folder directory. And if I type clang++ file_name.cpp, nothing ha...
A compiler like clang++ only does compiling of the source code. In your case, it creates the executable file a.out (since you didn't explicitly tell it to use some other output filename using the -o option). The compiler will not automatically run the resulting executable. These things also holds true for g++ (the ...
Clang++ Compiles, but doesn't run
1,367,501,163,000
Ok, maybe this is not the right thread, if so, please point me to the right one. ​Some background: I've seen other Open Source projects derived from FreeBSD (FreeNAS, PFSense, etc) that called themselves "an OS". They do give (marginal) credit to FreeBSD, but apparently they have little or no modification to the OS i...
The FreeBSD license has a copyright notice, one line with two conditions, and a warranty disclaimer. After having to read some other contracts and license agreements, this one is quite easy to get through. This is known as the 2-clause BSD license which is a derivative of the 3-clause BSD license. IANAL, but the BSD...
Why some projects are a 'repacked-rebranded' FreeBSD and call themselves a 'different' OS? [closed]
1,367,501,163,000
I just compiled xdebug as instructed on the official site. But where can I find the resulting .so file? I found one in the folder ./libs/xdebug.so and one in modules/xdebug.so. Questions Which one do I need, there is no info on the official site? Why is there not simply a folder called result or similar?
The last part of the build, as run by make, tells you explicitly where the library is installed: ---------------------------------------------------------------------- Libraries have been installed in: /tmp/user/1000/xdebug/modules If you ever happen to want to link against installed libraries in a given directory...
Where to find the resulting .so file of a compilation?
1,367,501,163,000
I installed Intel Parallel Studio on Ubuntu 18.04, but when I try to use ICC (/opt/intel/bin/cc), I receive the error: /opt/intel/composer_xe_2015.3.187/compiler/include/math.h(1214): error: identifier "_LIB_VERSION_TYPE" is undefined According to the Intel forum, the error is because Ubuntu 18.04 is an unsupported ...
In this particular case the solution really has to come from Intel, and they do appear to be working on it; quoting the reply given to the forum post you linked: Currently our latest version doesn't support Ubuntu 18.4LTS. We will let you know when it's available. 2018 release 2 supports Ubuntu 17.10, and 2019 beta ...
How to use Intel Compiler in Linux?
1,367,501,163,000
As a user of OpenSUSE I am used to type: gcc -lz myfile.c I was surprised that on Ubuntu this command would fail with something like: myfile.c:(.text+0x5): undefined reference to `zlibVersion' collect2: error: ld returned 1 exit status With gcc -v I found that the collect2 command generated by the GCC C compiler on ...
This is documented on the Ubuntu wiki. It’s set by default to reduce the number of dependencies in packages, but as you discovered it means the order of libraries is significant: you need to ensure that objects (of any type) appear before the libraries they use. You can disable this with --no-as-needed.
Why should I put the source file name before library names on compiler command line?
1,367,501,163,000
I have Linux with a kernel that was compiled with the real-time patch, but the config option CONFIG_PREEMPT_RT_FULL was not enabled (it says in /proc/config that it is not set). Do you now if there is any way to turn this on, without having to recompile the kernel? I guess it's not possible but maybe there's some way?...
No, it’s a solely compile-time configuration option, there’s no runtime equivalent. You’ll need to rebuild your kernel.
Enable CONFIG_PREEMPT_RT_FULL after the kernel compilation
1,518,444,908,000
I'm doing a compilation of PHP for an application with make. The problem is when I do a ldd php I have something like this: libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f5b4e661000) But libk5crypto.so.3 is a symlic that point to libk5crypto.so.3.1 I would like my php to point directly to libk...
Adding this as another answer because the other one can still stand on its own, but your problem (after you clarified) is different. If this is about libraries that are shipped with your application and also by the system, then the situation is not comparable. You're almost at what you need to do to fix it, but not qu...
Compilation with make: link to library
1,518,444,908,000
I'm attempting to install automake-1.13.4 on my system. First, I do ./configure which creates a Makefile compatible with my system. However, when I execute make, it runs for a bit, but then returns the following error message: /bin/sh: -c: line 5: syntax error near unexpected token || /bin/sh: -c: line 5: ` { || ...
I've figured it out. This error is related to the amhello-1.0.tar.gz file. The originally provided file was not configured properly for my system. Therefore, if I rebuild the file myself, and replace the original amhello-1.0.tar.gz, then I can run make with no errors. To see how to rebuild amhello-1.0.tar.gz so that i...
Error in bin/sh when installing automake-1.13
1,518,444,908,000
OS: Linux Mint 18.2 Cinnamon 64-bit. I would like to compile the following: p7zip_16.02_src_all.tar.bz2 with SHA256: 5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f I extracted it as follows: tar -xjf p7zip_16.02_src_all.tar.bz2 I read README file, specifically, that I need to replace the makef...
You need to build the dependencies before make command : sudo apt-get build-dep p7zip It will install the missing dependencies.
wx/wxprec.h: No such file or directory
1,518,444,908,000
I thought my compliation was okay because no errors were printed out, yet when I try to run the executable, he tells me that it's unreachable... coppan12@b048-08:~$ gcc -Wall prog.c -o prog coppan12@b048-08:~$ prog La commande « prog » est introuvable any hint?
Try ./prog to run prog in the current working directory, as . is typically not (nor should be) in PATH. Also, a Makefile is perhaps much more sensible, as then you can simply type make test and have the program built (if necessary) and tested: prog: prog.c test: prog echo blah de blah | ./prog A Makefile ca...
Is my compilation false?
1,518,444,908,000
I'm trying to compile Caribou 0.4.18.1 on Xubuntu 14.04. In the INSTALL document it says, that I should run ./configure && make && make install. But the ./configure step ended with: checking for python platform... linux2 checking for python script directory... ${prefix}/lib/python2.7/dist-packages checking for python ...
The dependencies are expressed not as package names, but as pkg-config dependencies. I think that on RPM-based systems you can search for these directly, but on Debian-based systems you need to search for the corresponding files. To do that, the easiest approach is to install apt-file, update its indices with sudo apt...
Why does ./configure give me unmet packages, that do not exist?
1,518,444,908,000
I am using the release version of OpenBSD 5.6 and have to apply a patch called 004_kernexec.patch.sig (URL: http://ftp.openbsd.org/pub/OpenBSD/patches/5.6/common/004_kernexec.patch.sig ) An excerpt of the said patch is as follows: OpenBSD 5.6 errata 4, Oct 20, 2014: Executable headers with an unaligned address will tr...
The OpenBSD FAQ is your friend in this case. They have extensive documentation on how to build your own kernel. In particular you want section 5.3.4 but before you do that make sure and read all of section 5.3 to get a feel for the bigger picture. I'd also recommend taking a look at Absolute OpenBSD by Michael Lucas...
When building a new kernel in OpenBSD 5.6, can the name of `config` be something else?
1,518,444,908,000
Is there a python crypto library that does not rely on anything besides python? Or pre-complied bundles of PyCrypto for Linux?
Cryptography involves intensive numerical computations that are significantly faster when implemented in a low-level language such as C and compiled to machine code, than when implemented in a high-level language such as Python and executed as interpreted bytecode. This is why you should expect any library that provid...
Why does PyCrypto require a C compiler?
1,518,444,908,000
I upgraded kernel on my CentOS 5.8 from 2.6.18 to 3.5.3 and now it is unable to mount the root filesystem: I could not find any explanation through Google. Can you point me in the right direction? I use Grub 0.97. I tried to point to the root device in the grup.conf by label, by /dev/hda and by UUID and nothing chang...
According to this website (which cites this forum thread), you need to enable a kernel option. First, get into the kernel's menuconfig: # cd /usr/src/linux # make clean && make mrproper # cp /boot/config-`uname -r` /usr/src/linux/.config # make menuconfig Then go into the "General settings" section, and include "enab...
Kernel upgrade 2.6 to 3.5.3 on CentOS 5.8 -> switchroot: mount failed: No such file or directory
1,518,444,908,000
Working on rebuilding some AWS linux servers. I see my company's server has Apache Portable Runtime (APR) downloaded within our Apache webserver instance as well as Tomcat. What are the implications of configuring to install into multiple different locations/softwares, such as APR into Tomcat and Apache webserver? If ...
You can do that, yes. That's kind of the point of the prefix! However, when then running these servers, you need to make sure to adjust PATH, LD_LIBRARY_PATH, and other environment variables accordingly, so that the libraries and executables are actually taken from the different prefixes. Also, installing the same bin...
Using same unpacked tarball to configure to install software into multiple different spots on server
1,518,444,908,000
I want to simulate Tiago robot in Gazebo and I am using ROS available package. Before, I simulated it without problem but right now I can not. I am using ROS melodic and ubuntu 18.04 on KVM virtual machine. When I use catkin_make command to build the workspace, the below error happens: [ 1%] Built target _tiago_pick_...
You're running out of RAM, so badly that your operating system kills your compiler. So, reduce the parallelism, or assign more RAM to the building VM.
Invoking "make -j16 -l16" failed
1,518,444,908,000
For compiling the linux kernel, If I do make_runner.sh && echo "hello" it prints hello even if some of the kernel compilation fails. Is there a way for it to only print if all of the compilation targets built correctly? Where make_runner.sh is the following: #!/usr/bin/env bash set -xe make O=out ARCH=arm64 CC=clang ...
Because of the pipe to tee, the second make’s exit status is ignored. To get the behaviour you want, you need to enable pipefail: change the set -xe line to set -xe -o pipefail See Debugging scripts, what is the difference between -x to set -euxo pipefail? for details.
make && echo "hello" only print hello when make succeeds (kernel)
1,518,444,908,000
I am trying to compile linux kernel (version 4.4) with KASAN support on a 32 bits machine, but i can't enable it. It seems that it depends on 64 bits architecture only. So my question is about the possibility of using KASAN in 32 bits architecture CONFIG_x86 ?? Is there a relation between KASAN and 64 bits arch ??
As the documentation says: Currently KASAN is supported only for the x86_64 and arm64 architectures.
KASAN config in 32 bits architecture?
1,518,444,908,000
when i run gcc -c *.c, it runs:- gcc -c file1.c -o file1.o gcc -c file2.c -o file2.o gcc -c file3.c -o file3.o ... but as *.s runs:- as file1.s -o a.out as file2.s -o a.out as file3.s -o a.out ... by default, gcc replaces the only the file extension while compiling into an object file but gnu as sets the default fil...
I don’t think you can get as to do that on its own, but you can use gcc to drive as: gcc -c *.s This will produce file1.o, file2.o etc. If you need to provide as-specific options, you can add them with -Xassembler, e.g. gcc -c -Xassembler -mindex-reg *.s
as .*s does not work like gcc .*c
1,518,444,908,000
I want to run a set of commands from a bash script. How ever I don't know how to put the quotation in a bash script. The following is the bash script which I want to run, how ever in the cmake -DCMAKE_C_FLAGS I want to add another flag -gcc-name=/path/bin/gcc. I want to do it through a shell script and eventually run ...
Quote the whole value: cmake -DCMAKE_INSTALL_PREFIX=/g/g92/bhowmik1/installTF/ROSS \ -DCMAKE_C_FLAGS='-O3 -gcc-name=/path/bin/gcc' \ -DCMAKE_C_COMPILER=mpicc -DARCH=x86_64 -DROSS_BUILD_MODELS=ON ..
Add multiple options in cmake flag in a shell script and run the shell script
1,518,444,908,000
I have a related question, but was asked to open a new one. I would like to recompile the Debian package wpasupplicant with IPv6 disabled. I know basics of Debian package compilation, ie: apt-get source wpasupplicant dpkg-buildpackage --build=binary --no-sign What do I have to change, to disable IPv6 completely? Also...
Here is an example how to compile wpasupplicant posted in linuxfromscratch . To disable IPV6 support you need to remove CONFIG_IPV6=y from wpasupplicant build configuration file (.config). You need to install some dependencies: sudo apt install -t buster-backports checkinstall sudo apt install desktop-file-utils libx...
recompile wpasupplicant Debian package with IPv6 disabled
1,518,444,908,000
After inspecting this question and the unaccepted answer, I tried to test it. First I tested the recommended command with: fswatch -o report.tex | xargs -n1 -I{} pdflatex report.tex Which led to an infinite compilation loop, which I consider slightly inefficient, and furthermore, it does not create a long enough wind...
fswatch uses various backends depending on various OS. Let's assume the overall behavior is the same. On my Linux system, attempts with fswatch (and option -x) give PlatformSpecific events which doesn't help to distinguish between a read event, a write event, an open event and a close event among many other possible e...
How prevent to auto-compilation loop with fswatch upon changes in Texmaker?
1,518,444,908,000
I have a build that fails, it complains about the lack of the following header files: /usr/include/Availability.h /usr/include/AvailabilityInternal.h /usr/include/_types.h I know for sure that my environment must have, i.e., stdio.h or cmath (and find / -iname stdio.h gives me the expected answer)... but how can I k...
The easiest way to search for files (and what packages they belong to) is the apt-file command. For example, searching for stdio.h: $ apt-file search /usr/include/stdio.h libc6-dev: /usr/include/stdio.h Now, I tried searching for your missing header files (on Debian 10.6) and all came up empty. However, when I remove...
How can I know whether a bunch of header file are part of a "standard" C++ toolchain on Debian
1,518,444,908,000
Initially, My approach was to re-compile whole kernel from scratch but all hopes went down the moment I found out that it requires large amount of disk space. Now, I'm trying to figure out how to compile only part of it. The file I modified is net/ipv4/tcp_ipv4.c I then followed following steps but lost at middle, Dow...
If you look at net/ipv4/Makefile, you’ll see that tcp_ipv4.o is part of obj-y, which means it can only be built as part of the kernel, it can’t be built as a module. If you want your changes to be taken into account, you’ll have to rebuild the complete kernel. Since you’re short of disk space, you can build only the k...
How to compile only net/ipv4 of Linux Kernel?
1,518,444,908,000
I'm using FreeBSD 13.0-CURRENT (for more information see here), and I want to use GNU m4. Downloaded this version of it, configured, and tried to make. But it gives error as stated in the title: error: don't know how to make ../../build-aux/snippet/c++defs.h. For the whole log, see here. Any idea? Thanks to all sugges...
Just unpacked m4-1.4.17 here (Fedora 31; your latest might be another version... but it seems to date from 2013). The offending file is there (in build-aux/snippet). There is a script called bootstrapincluded, but that presumably is only needed for sources straight from version control. The traditional ./configure; ma...
Building m4 from source on FreeBSD error: don't know how to make ../../build-aux/snippet/c++defs.h
1,518,444,908,000
What I've tried: gcc -L/path/to/lib/ -llib ... gcc -l/path/to/lib/lib.so.x.x.x ... Update ldconfig Added path to LD_LIBRARY_PATH file shows correct build version and link to the correct file No matter what, I still get /usr/bin/ld: cannot find -lavfilter Any ideas?
ld looks for shared libraries or linker scripts named libsomething.so, or static libraries named libsomething.a, where something matches the -lsomething parameter given to ld. Libraries named libsomething.so.x.y.z, where x.y.z is the library’s version, are used at runtime, not for building, and ld won’t use them. You ...
LD cannot find lib even with specified path
1,518,444,908,000
For a project I intend to compile various *NIX OSs and their relative packages with different CPUs in order to maximize optimization and performance for specific systems. In order to save time and money I'd like to know if there really is a difference between compiling code with similar architectures. For example: If ...
If you are truly intending to maximize optimizations, then you'll be using target-specific optimizations, including those that rely on knowing the cache sizes of the processor. This means you'll almost certainly want one compile per processor, though you can compile on the fastest available processor for any of the ot...
Actual compilation differences between CPUs
1,518,444,908,000
Do I need the latest gcc? Can I use the gcc binaries included with my distro? Does it matter?
The kernel build requirements are quite conservative: for kernel 4.18, GCC 3.2 and binutils 2.20 are sufficient. Thus your distribution’s compiler should work fine. In practice pretty much any version of GCC will do, although one can sometimes run into problems with versions of GCC which are too new. I’m currently usi...
What version of gcc should I use to compile the latest stable Linux kernel?
1,518,444,908,000
I am trying to install pgbouncer using source on RHEL 7.4. I am following this tutorial. While running ./configure --prefix=/usr/local/ --with-libevent=/usr/lib64, I am getting below error: checking for libevent... configure: error: not found, cannot proceed. However, running rpm -qa|grep libevent gives libevent-2....
checking for libevent... configure: error: not found libevent-2.0.21-4.el7.x86_64 : That's only the run time files. You are missing the files required for compiling an application with libevent → # yum install libevent-devel Provides /usr/{lib64/[libs].so, /include/{files.h, event/files.h, event2/files.h}}
Unable to install pgbouncer
1,518,444,908,000
I want to install PHP 5.6 in Debian Jessie and I'm following the procedures listed in this page (the server is using ISPConfig and I want to add this PHP version to the list of PHP versions available). When I run: ./configure --prefix=/opt/php-5.6 --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring ...
Please make sure you've installed the following packages: # apt-get install libxml2-dev libz-dev libbz2-dev libcurl4-openssl-dev libmcrypt-dev libpq-dev libxslt-dev I've tried the configuration command within a Docker container [1] and the command finished successfully. Mind the change in ./configure command: --with...
Can't compile PHP 5.6 in Debian 8
1,518,444,908,000
I've been trying to compile the GnuTLS package from source, as part of a BLFS (Linux From Scratch) system. Here is the LFS page for it. I have installed all of the required and recommended packages that are listed on that page; however, when I ran ./configure at the top of the source tree for GnuTLS, according to the ...
config.log should contain the exact reason why configure failed, but it can be hard to find it. To do so, you should start from the end of config.log; there you’ll see a dump of the full configure state at the point where it stopped, which is daunting, but if you skip past that, you should find the error which broke c...
How best to troubleshoot a source package configure script?
1,518,444,908,000
I have downloaded mandoc from mandoc | UNIX manpage compiler. I execute these command in my Ubuntu 14.04 to install- tar -xzvf mandoc.tar.gz cd mandoc-1.14.3 ./configure Then sudo make install results as follows- read.c:34:18: fatal error: zlib.h: No such file or directory #include <zlib.h> ^ com...
The program obviously makes use of zlib, a compression library, probably to be able to decompress compressed manual sources. Depending on your Unix, you will need to install the zlib development files (headers etc.). On Debian based Linux distributions, and Ubuntu, these come packaged in the zlib1g-dev package, for e...
mandoc installation problem
1,518,444,908,000
I don't find an answer on the web. '-' $ cmake .. -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done --...
Slingswarm expects newer versions of valac than 0.26.1; later versions define default values for the missing parameters to Gtk.Grid.attach. To build the package on Debian 8, change the erroneous line in slingshot.vala to this.grid.attach (item, c, r, 1, 1); and run make again. (So really this is a bug in Slingswarm.)...
I cannot compile the Slingswarm package from GitHub on Debian 8
1,518,444,908,000
There is a flag called CPU_FREQ_STAT, which exports CPU frequency statistics information through sysfs file system. More info available here: cpufreq driver kconfig Then, one can guess constant I/O operation due to the statistic information exporting can cause memory overhead or any decrease of the performance ...
sysfs is a virtual filesystem. It doesn't really exist on disk, so there is no (disk) I/O. Nor is there any I/O at all, even virtual, except when something reads the file. It's just a kernel API that's being exposed to userspace through open/read/write/close instead of, e.g., adding another syscall. There is probably ...
Could disabling kernel cpu frequency monitoring improve performance and/or battery life?
1,518,444,908,000
I tried to compile awusb.ko on my Linux Mint with make make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. Dies ist Freie Software; siehe die Programmquellen für Vervielfältigungsbedingungen. The makefile: obj-m := awusb.o KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default...
Your problem is the space in /home/ger/progentp/Flash droid/ Remove the space from the folder name, or move your git clone to another location without spaces.
Kernel module compilation fails: No rule to make target droid/sunxi-livesuite-master/awusb'' [closed]
1,518,444,908,000
Just starting out with Xubuntu 14.04 on a refurbished machine (2GB mem, 2GHz dual core), and have a cursory/reading knowledge of c, but am not a c programmer. I'm trying to compile code I found here to create a visual notification for the action of moving between workspaces. The code: // wschanged.c #include <libwnck...
The order of arguments to gcc is significant, so you need to split the --cflags and --libs variants of the pkg-config invocations: gcc -O2 -DWNCK_I_KNOW_THIS_IS_UNSTABLE -o wschanged `pkg-config --cflags libwnck-3.0` wschanged.c `pkg-config --libs libwnck-3.0`
Undefined reference error to glib components even with glib included
1,518,444,908,000
I'm trying to build Firefox 51 from source on Mint 17. I already ran the boostrap script and it installed rust, but ./mach build apparently can't find it? The error is: 0:03.58 checking for rustc... not found 0:03.58 checking for cargo... not found 0:03.58 ERROR: Rust compiler not found. 0:03.58 To compile rust la...
Installing Rust manually seemed to fix the issue: curl https://sh.rustup.rs -sSf | sh
Firefox build "you must have 'rustc' in your path"?
1,518,444,908,000
I'm trying to compile and install the kernel-4.9.8 sources from https://kernel.org on Debian 8 (jessie). I'm following this procedure: make defconfig make menuconfig make I managed to compile the sources succesfully, but I can't install the kernel, I've tried with both sudo make install and sudo dkms autoinstall -k ...
Try using make-kpkg instead. When run from a kernel source tree it'll compile a kernel and build a full set of debian packages using that source and config -- linux-image, linux-headers, linux-doc, all as per your version specified. It's part of the kernel-package package, so what you want to do is: sudo apt-get inst...
Compile and install pure Kernel on Debian
1,486,153,211,000
I am using a webserver that is administered by someone else. The version of mysqldump on this server is from 2011: $ mysqldump --help mysqldump Ver 10.13 Distrib 5.1.63, for debian-linux-gnu (x86_64) Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. As a result, when I try to do a database...
Your link also contains the quickest solution: Andre Couture • 3 years ago Hi, I had the same issue trying to mysqldump a 5.6 database in order to downgrade. I took a slightly different approach as I did not had the luxury to install mysql-client5.6 I simply did a copy of /usr/bin/mysqldump, vi -b mysqldump look ...
Download / Compile local version of mysqldump
1,486,153,211,000
Now that the vc4 DRM/GBM driver has been making progress, is it possible to build Linux (not just the kernel but the entire operating system eg. Linux From Scratch) without libraries and programs from /opt/vc? Would it work? Right now having /opt/vc means the normal BLFS (Beyond Linux From Scratch) setup for X11 does ...
The only things special you should need for building Raspberry Pi with graphics support, compared to other ARMs currently: linux-next kernel (to get the devicetree for vc4, until 4.7 is released) rasperrypi/firmware on a vfat partition However, building everything from scratch will be an exercise in frustration, and...
Build Linux for a Raspberry Pi without /opt/vc?
1,486,153,211,000
I'm trying to build opencv for my x86_64 Centos 6 operating system. I think the problem is make is trying to use the 32 bit version of the bz2 library instead of the 64 bit version. I get this error from make: [ 17%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_decoder.cpp.o [ 17%]...
After browsing several other Q&A sites, I came up with the problem being that cmake is using the 32 bit library as if it were the 64 bit one. I solved this on Fedora 22 by doing this: remove your CMakeCache.txt file run cmake to regenerate it cmake -D blah blah flags and values Edit your CMakeCache.txt file and chan...
Having problems with make and opencv
1,486,153,211,000
I am compiling linux red hat stable kernel on red hat linux and the error which I am facing is as below
First install XZ yum -y install xz then tar -xvf yourfile.tar.xz
how to untar file in linux red hat?
1,486,153,211,000
Position Independent Code means that the generated machine code is not dependent on being located at a specific address in order to work. and the jumps are relative. So is it OK to declare -fPIC system wide in a Linux distro. specially the normal intel PC machines?
First, PIC is a compiler issue and not Linux distro issue. PIC should be allowed to set as a compiler flag instead of hardcoding globally. Not all machine architectures support PIC. If your builds are static (non-shared), you do not need PIC, and it can be inefficient. Some architectures/compilers might have a differe...
-fPIC Flag System-wide?
1,486,153,211,000
I'm trying to build php-5.3 on arch linux using phpenv + php-build. The problem is bison is too new: $ phpenv install 5.3.29 [Info]: Loaded apc Plugin. [Info]: Loaded pyrus Plugin. [Info]: Loaded xdebug Plugin. [Info]: Loaded xhprof Plugin. [Info]: php.ini-production gets used as php.ini [Info]: Building 5.3.29 into /...
The trick was to install the latest openssl-0.9.x version, apparently php-5.3 doesn't work with openssl-1.x one. Then: PHP_BUILD_CONFIGURE_OPTS=--with-openssl=/usr/local/ssl phpenv install 5.3.29 Also, it might be necessary to specify mysqli.default_socket = /run/mysqld/mysqld.sock in ~/.phpenv/versions/5.3.29/etc/ph...
building php-5.3 on arch linux