I am running Fedora 24 on an i386 system with 1GB RAM.
I am attempting to run a Makefile and I am getting the error:
/usr/bin/ld: cannot find -ldb
collect2: error: ld returned 1 exit status
I have used dnf to install the latest packages for libdb and libdb-devel but I am still getting the error - any suggestions on how to resolve this?
It is libdb-devel. Running sudo dnf install libdb-devel should do the job. If not, make sure that the /usr/lib/libdb.so is in place on your system.
Also using libdb-cxx-devel might do the job.
Related
I have problems while executing ./configure. I am quite new with these things and I don't really know where the problem is. In configure.log file I get the following errors (I couldn't upload it because it was too heavy):
gfortran: error: unrecognized command-line option '-V'
gfortran: fatal error: no input files
collect2: error: ld returned 1 exit status
configure: failed program was:
| program main
| call dgemm
| end
Does anyone know which is the real problem?
Thank you in advance
As explained in this link, running
sudo ./configure --disable-parallel --with-internal-FFTW --with-internal-blas --with-internal-lapack ARCH="mac686"
is generally recommended on Mac. I just installed Quantum Espresso successfully using it.
I've tried following the intel instructions to install sgx, but it requires the sgx_linux_x64_psw_.bin file, which i cannot find anywhere. I've got the driver installer (sgx_linux_x64_driver_1.35.bin) and the sdk installer(sgx_linux_x64_sdk_2.10.100.2.bin), intel seems not to have a psw for linux? If so, how do i properly work with sgx? I tried simply executing the driver and sdk .bin files, but the sample code in the sdk would not compile (after make SGX_MODE=SIM), even after setting the sgxsdk directory to /opt/intel/sgxsdk. I'd get the following compile error:
/usr/bin/ld: warning: libsgx_uae_service_sim.so, needed by /opt/intel/sgxsdk/lib64/libsgx_urts_sim.so, not found (try using -rpath or -rpath-link)
/opt/intel/sgxsdk/lib64/libsgx_urts_sim.so: undefined reference to `get_launch_token'
collect2: error: ld returned 1 exit status
Makefile:235: recipe for target 'app' failed
make[1]: * [app] Error 1
make[1]: Leaving directory '/opt/intel/sgxsdk/SampleCode/SampleEnclave'
Makefile:180: recipe for target 'all' failed
make: * [all] Error 2
Any help with either issue would be much appreciated!
So at least in my case, it seems the issue was that I was A, using a virtual machine, which can ONLY run in simulation mode, so getting a fully working version of sgx is impossible. Secondly, I was using an outdated installation guide, for anyone else trying to use this stuff, make sure to get the installation guide from the intel download page along with the version you are downloading.
download source code from https://github.com/intel/linux-sgx, compile according to the instructions and then install psw.
I am using Ubuntu 18.04.2 LTS under windows 10 by using "Windows subsystem for Linux." I am experiencing some issues with XV6.
I set up XV6 by using the command:
git clone git://pdos.csail.mit.edu/xv6/xv6.git
sudo apt-get install libc6-dev
chmod 700 -R xv6-riscv
But when I typed in make command, I having the following issue:
***
*** Error: Couldn't find an riscv64 version of GCC/binutils.
*** To turn off this error, run 'gmake TOOLPREFIX= ...'.
***
gcc -c -o kernel/entry.o kernel/entry.S
kernel/entry.S: Assembler messages:
kernel/entry.S:17: Error: no such instruction: `la sp,stack0'
kernel/entry.S:18: Error: no such instruction: `li a0,1024*4'
kernel/entry.S:19: Error: no such instruction: `csrr a1,mhartid'
kernel/entry.S:20: Error: no such instruction: `addi a1,a1,1'
kernel/entry.S:21: Error: too many memory references for `mul'
kernel/entry.S:22: Error: too many memory references for `add'
kernel/entry.S:26: Error: no such instruction: `j junk'
<builtin>: recipe for target 'kernel/entry.o' failed
make: *** [kernel/entry.o] Error 1
Can anyone help me with this? (I am using an x64 system)
you should check this link: https://pdos.csail.mit.edu/6.828/2019/tools.html
for me I am running ubuntu, so I compiled the toolchain myself and then it works
I was running MacOS and had the same error. I solved it by updating the ~/.bashrc with:
PATH=$PATH:/usr/local/opt/riscv-gnu-toolchain/bin
before sourcing it or open a new interactive session. Then make qemu under xv6-riscv just ran!
So I would suggest you go back and check if you've finished each step: install toolchain, update env vars, source, and make.
For Suse you can install cross-riscv64-gccX package, where X is the gcc version
Then use
TOOLPREFIX=/usr/bin/riscv64-suse-linux-
it worked for me
I'm trying to compile the latest release of vlc for Windows using this tutorial: https://wiki.videolan.org/Win32Compile/
I'm compiling with Ubuntu 13.04 and using the host triplet i686-w64-mingw32.
Everything runs fine until "Building VLC". This is the error:
make[4]: Entering directory `/home/nuno/tpplugins/vlc/win32/modules'
CCLD libavio_plugin.la
/home/nuno/tpplugins/vlc/contrib/i686-w64-mingw32/lib/libavutil.a(time.o): In function `av_usleep':
/home/funman/vlc-git/contrib/win32/ffmpeg/libavutil/time.c:60: undefined reference to `_nanosleep'
collect2: ld returned 1 exit status
make[4]: * [libavio_plugin.la] Error 1
Any ideas how to solve this? My gcc version is 4.8.1.
Recently had the same issue.
To resolve, try the following steps:-
sudo apt-get install yasm
cd contrib/win32
make .ffmpeg
make .gnutls
Then try to continue your make of vlc and hopefully all will be well.
i already discussed this issue with the maintainer of ruby-build and followed his advice by googling for similar errors. i found similar ones but they do not seem to match my specific problem:
i'm trying to install ruby with rbenv install 2.0.0-p247 (using the ruby-build plugin) on archlinux – but the command fails.
here the last 10 log lines:
rbconfig.rb updated
generating enc.mk
compiling dln.c
compiling encoding.c
generating prelude.c
compiling prelude.c
linking static-library libruby-static.a
verifying static-library libruby-static.a
collect2: error: ld returned 1 exit status
make: *** [libruby-static.a] Error 1
i would appreciate any hints on this problem – thanks!
To find out what's wrong here, the best bet is to run the Ruby installation yourself to see exactly what's amiss. ruby-build typically downloads and extracts Ruby in /tmp (it should be the same path where it also saves the log file of the failed install).
Go to that directory and run:
$ ./configure
$ make
To see if you get the same error. If you do, then try to re-run the command that failed again. In your case this is probably:
$ ranlib libruby-static.a
To see why it fails.