Build and Install Qt-4.7.3 ERROR on CentOS 5.6 x64 - qt

I am having an error when trying to install the Qt-4.7.3 libraries on CentOS 5.6. The error I am getting is:
/usr/bin/ld: cannot find -ltcg
collect2: ld returned 1 exit status
gmake[1]: *** [../../../bin/moc] Error 1
gmake[1]: Leaving directory `/home/chlong/Libraries/qt-4.7.3/src/tools/moc'
gmake: *** [sub-moc-make_default-ordered] Error 2
My CentOS is running off of VMWare 3.1.3. I have tried re-downlading and re-installing Qt as well as re-installing VMWare and re-installing CentOS, but to no avail.
Any insights would be greatly appreciated.

A work around is to compile with '-no-ltcg'
Alternatively, the EPEL repository has qt give that a shot.

try running the command gmake install as a root user
otherwise you may avoid installing lctg by providing configuration flag --no ltcg,if you dont need ltcg.........

Related

Cannot install nloptr (R 4.0.3, Ubuntu 20.04)

I tried to install nloptr on R 4.0.3, however I get this error:
/usr/bin/ld: /usr/local/lib/libnlopt.a(general.o): relocation R_X86_64_TPOFF32 against `nlopt_srand_called' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libnlopt.a(mt19937ar.o): relocation R_X86_64_TPOFF32 against `mti' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libnlopt.a(timer.o): relocation R_X86_64_TPOFF32 against `start_inited.4301' can not be used when making a shared object; recompile with -fPIC
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/share/make/shlib.mk:10: nloptr.so] Error 1
ERROR: compilation failed for package ‘nloptr’
* removing ‘/home/giovanni/R/x86_64-pc-linux-gnu-library/4.0/nloptr’
Warning in install.packages :
installation of package ‘nloptr’ had non-zero exit status
Can someone point me to a solution?
Thanks in advance.
The latest (2.6.2) package of libnlopt-dev is broken in Ubuntu 20, for some reason it is compiled into a static library (.so shared object is missing)
I faced the similar problem a couple of days ago. The quick fix is to download NLOPT fron Github and compile it yourself
https://nlopt.readthedocs.io/en/latest/NLopt_Installation/
At least, it worked for me.
I had a slightly related issue with this package, apt install cmake which was suggested by cli itself fixed the issue.
I also failed to install the nloptr but had another error.
g++: error: nlopt/lib/libnlopt.a: No such file or directory
I followed others suggestion to install the nlopt first as described in nlopt website. The installation process was
mkdir build
cd build
cmake ..
make
sudo make install
But I found the cmake version which nlopt needed should be higher than 3. The default cmake in my computer was version 2.8.12.2 which was /usr/bin/cmake. So I installed cmake version 3.24.2 in my home directory and compiled the nlopt using absolute path of cmake as ~/software/install/cmake-3.24.2-linux-x86_64/bin/cmake ... And I used sudo to install the nlopt in the computer. I could see the libnlopt.so libnlopt.so.0 libnlopt.so.0.11.1 files in /usr/local/lib64
When I went back to install the nloptr in R. It still failed. I found the cmake failure in the output information of installation. So I add the cmake(version 3.24.2) to my PATH in .bashrc file and then I installed the nloptr successfully.

recipe for target 'runtime_ccall.o' failed in installing julia (llvm?)

I just downloaded and installed the latest version of linux mint, mate. I want to install julia again but I get an strange error during the installation of v1.3.0
(... lots of output)
/home/usr/julia/usr/include/llvm/Support/MathExtras.h:545:38: required from here
/home/usr/julia/usr/include/llvm/Support/MathExtras.h:189:16: error: ‘static_assert’ was not declared in this scope
Makefile:165: recipe for target 'runtime_ccall.o' failed
make[1]: *** [runtime_ccall.o] Error 1
Makefile:75: recipe for target 'julia-src-release' failed
make: *** [julia-src-release] Error 2
This is somehow strange, but it appears to be related to LLVM. In trying to update LLVM I typed
sudo apt-get update -y
sudo apt-get install -y llvm
But the error keeps showing... any idea what am I missing?

Error during qt installation

When I tried to run
qt-linux-opensource-5.0.2-x86-offline.run
I got the following error:
Error during installation process (qt.502.gcc.essentials):
Execution failed(Unexpected exit code: 127)
Some threads say this is because of absence of gcc on the machine, however my Ubuntu machine has gcc installed. Can someone tell me how to install qt?

Install RPostgreSQL to connect to Postgres.app

I am trying to install RPostgreSQL on a Mac running OSX 10.9.5 (Mavericks) and R 13.4.0 (Darwin). I guess I don't have a running Postgres installation on my system since, from Terminal:
% which postgres
postgres not found
I use [Postgres.app][1]
I tried installing RPostgreSQL from source
library(devtools)
install('~/Downloads/rpostgresql-read-only/RPostgreSQL')
but I get the error
clang: error: unknown argument: '-Kthread'
clang: error: unknown argument: '-kthread'
make[1]: *** [fe-auth.o] Error 1
make: *** [libpq/libpq.5.dylib] Error 2
ERROR: compilation failed for package ‘RPostgreSQL’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/RPostgreSQL’
Error: Command failed (1)
which is not exactly self-explanatory. I google it but I couldn't find any relations with RPostgreSQL.
I was able to do a hack install by removing the 2 -KThread flags from the MakeFile.global.darwin. I can't tell you what the -KThread flag was and why its needed, but it seemed to install fine for Mavericks (10.9.5)
PTHREAD_CFLAGS = -Kthread -kthread -pthread -pthreads -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
changed to
PTHREAD_CFLAGS = -pthread -pthreads -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
There's a possibly more user-friendly approach described at this blog with additional notes at the bottom of the PecanProject GitHub repo issue thread.
You'll probably have to manually link to the directory with pg_config file to address the 'libpq-fe.h' file not found issue. In my case, the command was different from that mentioned in the PecanProject issue thread:
sudo ln -s /usr/local/Cellar/postgresql/9.4.0/bin/pg_config /usr/local/bin/
I then had to
sudo ln -s /usr/local/Cellar/postgresql /usr/local/opt/postgresql
to get around a Library not loaded: /usr/local/opt/postgresql/lib/libpq.5.dylib error.
A final hat-tip to Chris Chou for that last point.

native client tutorial can't find libstdc++

I'm new to native client. I'm trying to follow the official tutorial on my newly installed ubuntu 14.
I'm getting the following when running "make serve" under the getting_started folder. I googled, it seems to be related to 32/64 bit. my system is 64bit, but pnacl seems to think it is 32.
Anyway I couldn't find a solution. do you know how?
/media/shi/work/nacl_sdk/pepper_34/toolchain/linux_pnacl/bin/pnacl-clang++ -o hello_tutorial.bc hello_tutorial.cc -O2 -I/media/shi/work/nacl_sdk/pepper_34/include -L/media/shi/work/nacl_sdk/pepper_34/lib/pnacl/Release -lppapi_cpp -lppapi
/media/shi/work/nacl_sdk/pepper_34/toolchain/linux_pnacl/host_x86_32/bin/clang: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
make[1]: * [hello_tutorial.bc] Error 127
make[1]: Leaving directory `/media/shi/work/nacl_sdk/pepper_34/getting_started/part1'
make: * [part1_ALL_TARGET] Error 2
It's probably easiest to install the i386 C/C++ libraries:
sudo apt-get install libc6:i386 libstdc++6:i386
There are 64-bit binaries included in the SDK as well (in toolchain/linux_pnacl/bin64/), but they are not run by default (and I'm not certain of an easy way to make the SDK use them).

Resources