Error during qt installation - qt

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?

Related

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?

can't compile beta version of igraph from github

I use DevTools tools to install
install_github("igraph/rigraph")
I can install "gaborcsardi/pkgconfig" just fine, which is also required. But "igraph/rigraph" doesn't work. I need it because I'm using an experimental package that requires this version of igraph. I get the following error:
compilation terminated.
make: *** [foreign-graphml.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-33~1.1/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-33~1.1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="igraph.dll" SHLIB_LIBADD='$(FLIBS)' WIN=64 TCLBIN=64 ' havde status 2
ERROR: compilation failed for package 'igraph'
* removing 'C:/Users/emil/Documents/R/win-library/3.3/igraph'
Error: Command failed (1)
NOTE! the line "Warning: running command" in the code is translated by myself, since this was in my OS language which is danish. I think it is an accurate translation, but the wording might be slightly different.
I'm on a 64-bit Windows. I also have Lubuntu 16.04 installed on the same machine, and there I don't have any problems with the install. I need to use the package on a windows machine, unfortunately. RTools 3.3 is installed.
I also filed this at the github page:
https://github.com/igraph/rigraph/issues/165

gcc error when installing Statnet package

Installing statnet on mac 10.10.3 with R 3.2.x (RStudio 0.99.441).
ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [latentnet.so] Error 1
ERROR: compilation failed for package ‘latentnet’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/latentnet’
Warning in install.packages :
installation of package ‘latentnet’ had non-zero exit status
ERROR: dependency ‘latentnet’ is not available for package ‘statnet’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/statnet’
Warning in install.packages :
installation of package ‘statnet’ had non-zero exit status
I tried updating XCode/Command Line Tools. Also tried not installing dependencies. I have been able to install other packages, such as ergm and sna.
It looks like the install is looking for the GCC folder and not finding it.
whereis gcc
reveals that my gcc is in /usr/bin/gcc
It looks like the install is looking for it in /usr/local/lib/gcc/
Is there a way to fix this?
This is a compilation error that you only get if you are trying to install packages from source, or when a package requires a library to be compiled from source. Normally, if you don’t use the latest version of R, you can install statnet from binary and thus R won’t have to compile the source package.
The version you are mentioning at the beginning of your message (0.99.441) is the version of your R-Studio, and not R. The version of your R is 3.2.x (Hence its address in the Library folder: /Library/Frameworks/R.framework/Versions/3.2/Resources…). Before trying to fix the compilation error you may want to try to roll back your R to a version like 3.1.2 or 3.1.3 on which you can probably download and install statnet in binary format.
For the compiler, my guess is that even if you fix the address of your gcc with a symlink, you will still get an error about gfortran or the version of gcc. Once I solved this issue by installing R and the right version of gcc through Homebrew, but right now I don’t have the possibility to try the solution and tell you exactly how.
My experience (on Yosemite) is that if you use 3.1.2 or 3.1.3, even if there is need for compilation, the error with gcc won’t occur.
sudo mkdir /usr/bin/lib && sudo ln -s /usr/bin/gcc /usr/bin/lib/gcc
Creates a new directory in /usr/bin called `lib' and creates a symbolic link to gcc in that new directory.
If that doesn't fix the error, you can undo it with:
sudo rm -i /usr/bin/lib/gcc && sudo rm -id /usr/bin/lib

Unable to install rJava on R platform

I have Ubuntu 10.x OS and I have installed R on it. I want to install rJava on R. For that when I am running installed.packages("rJava) command which is giving error
checking whether Java run-time works... Error: Could not find or load main class getsp
no
configure: error: Java interpreter '/usr/bin/java' does not work
ERROR: configuration failed for package ‘rJava’
* removing ‘/home/hduser/R/i486-pc-linux-gnu-library/2.10/rJava’
The downloaded packages are in
‘/tmp/Rtmp0tlBXn/downloaded_packages’
Warning message:
In install.packages("rJava") :
installation of package 'rJava' had non-zero exit status
If I run system("java -version")
Then it showing same Java version which is given when I run Java -version command from base OS prompt. So it means no problem with Java which I can see reason in output of install package command? As suggested when I use
sudo apt-get install r-cran-rjava
Here also didnt get any luck
Please suggest
I just saw that you wrote installed.packages instead of install.packages, you have to use install.packages("rJava") to install it.
The description of the method you used (installed.packages) says: Find (or retrieve) details of all packages installed in the specified libraries.
Can you please try
install.packages("rJava")
library(rJava)
and tell me the output? (I'm pretty sure it will already work then).
in the terminal run sudo apt-get install default-jdk
then run sudo R CMD javareconf
after that you can continue in R or Rstudio install.packages("rJava")

Build and Install Qt-4.7.3 ERROR on CentOS 5.6 x64

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.........

Resources