I installed GNU Octave, version 4.2.0-rc2 on my Mac[0] using Homebrew[1].
But now I tried to install the image pkg[2].
I tried downloading it and then using this line:
"pkg install image-2.6.0.tar.gz"
Then I tried installing it with this line of code:
"pkg install -forge image"
Both resulted in the following output:
configure: error: *** A compiler with support for C++11 is required
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for octave... /usr/local/Cellar/octave/4.2.0-rc2/bin/octave-4.2.0-rc2
checking for mkoctfile... /usr/local/Cellar/octave/4.2.0-rc2/bin/mkoctfile-4.2.0-rc2
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -std=gnu++11 accepts -g... yes
checking for clang++ -std=gnu++11 option to enable C++11 features... unsupported
pkg: error running the configure script for image.
error: called from
install at line 200 column 5
pkg at line 392 column 9
But I think I installed GCC correctly:
gcc -v
Has the following output:
Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/6.2.0/lto-wrapper
Ziel: x86_64-apple-darwin15.6.0
Konfiguriert mit: ../gcc-6.2.0/configure --enable-languages=c++,fortran --with-gmp=/usr/local
Thread-Modell: posix
gcc-Version 6.2.0 (GCC)
What is my mistake? Or what have i done wrong?
[1] http://wiki.octave.org/Octave_for_MacOS_X#Homebrew
[2] http://octave.sourceforge.net/image/index.html
[0] Macbook Specifications:
MacBook Pro (13-inch, Mid 2012)
2,5 GHz Intel Core i5
16 GB 1600 MHz DDR3
macOS Sierra (Version 10.12)
I had the exact same problem. Just download the older version 2.4.1 of image and installation should work as expected.
Download Link:
https://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/image-2.4.1.tar.gz/download
Related
I'm working on a project from https://github.com/luigifreda/pyslam which uses only python 3.6.9, so I tried to install it:
pyenv install 3.6.9
and encountered a build failed:
python-build: use openssl#1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.6.9.tar.xz...
-> https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz
Installing Python-3.6.9...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 13.2.1 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/01/bx2q2rbn099ch5d1gr1zm5fc0000gn/T/python-build.20230216230654.91605
Results logged to /var/folders/01/bx2q2rbn099ch5d1gr1zm5fc0000gn/T/python-build.20230216230654.91605.log
Last 10 log lines:
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for a sed that does not truncate output... /usr/bin/sed
checking for --with-cxx-main=<compiler>... no
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report
make: *** No targets specified and no makefile found. Stop.
MacOS Venture 13.2.1
Pyenv: 2.3.13
Home brew 4.0.1
Available python versions: 3.6.8
I have tried uninstalling and reinstalling and followed the installation from https://github.com/pyenv/pyenv#set-up-your-shell-environment-for-pyenv, but it's still not working. Any suggestions?
I have followed instructions provided in other articles to fix the below issue but still doesn't appear to work for my system. I am trying to upgrade glibc to v2.27 on my CentOS 7.3 machine. I downloaded the package and running into the below compiler dependency during the configure script execution:
../configure --prefix=/opt/glibc-2.27
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
...
...
checking if gcc is sufficient to build libc... no
checking for nm... nm
checking for python3... no
checking for python... python
configure: error:
*** These critical programs are missing or too old: compiler
*** Check the INSTALL file for required versions.
So I upgraded my gcc and verified the upgraded version:
gcc --version
gcc (GCC) 8.2.0
I also have the following environment variable set in my bashrc:
export CC=/usr/local/bin/gcc
For some reason, the configure script still throws the same error based on which it appears that the upgraded gcc version isn't being used.
What am I missing?
I have managed to successfully launch the most recent RStudio AWS EC2 instance (louisaslett.com, RStudio-1.1383_R-3.4.2…ubuntu-16.04-LTS-64). R operates mostly as expected in this instance, and I can install and open a number of packages. However I get an error if I try to install either of the rgdal of gdalUtils packages.
Below is the console output when I attempt to install rgdal. The output for the gdalUtils install is too long to include here, but both include the text "error: upgrade GDAL to 1.11.4 or later" which I suspect is the problem, but have no idea how to correct.
Any thoughts or advice would be greatly appreciated.
Cheers
> install.packages("rgdal")
Installing package into ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/rgdal_1.3-3.tar.gz'
Content type 'application/x-gzip' length 1670656 bytes (1.6 MB)
==================================================
downloaded 1.6 MB
* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgdal: 1.3-3
checking for /usr/bin/svnversion... yes
configure: svn revision: 759
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
configure: C++11 support available
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 1.11.3
checking GDAL version >= 1.11.4... no
configure: error: upgrade GDAL to 1.11.4 or later
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.4/rgdal’
Warning in install.packages :
installation of package ‘rgdal’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpGUxbcA/downloaded_packages’
I have since run into the same issue running Rstudio on the google cloud. In both cases a solution was relatively simple - install a recent but older rgdal package from cran (https://cran.r-project.org/src/contrib/Archive/rgdal/) which wasnt dependent on the most recent gdal libraries, and therefore installed without throwing the error about upgrading GDAL.
I have recently installed Ubuntu 14.04 64bit and tried to compile MPICH from the source using Intel Compilers 2013. I use this command to configure mpich:
./configure CC=icc CXX=icpc F77=ifort FC=ifort -prefix=/home/user/mpich-install
and I get this error after a while:
.
.
checking whether <iostream> available... no
checking how to run the C++ preprocessor... icpc -E
checking iostream.h usability... no
checking iostream.h presence... no
checking for iostream.h... no
configure: error: C++ compiler icpc has neither iostream nor iostream.h.
configure: error: ./configure failed for test/mpi
It seems that this is a known issue in Intel C++ compiler 14 update 1. It can be solved by updating to ICC 14 update 2. check this link for more information:
software.intel.com/en-us/forums/topic/531138#comment-1799768
Thanks a lot for taking a look. There's a previous post on here with the same error message "cannot compile a simple JNI program" and the solution was to update to R 1.15. But I've already had everything in the newest version. Although it says "see config.log for details", it doesn't give a location, and "find / -name config.log" at the terminal returns nothing.
It's be an exhausting and frustrating process trying to get this to work. Any help will be much appreciated.
R version 2.15.1, 64-bit (I used Homebrew install, but it shouldn't be the problem)
Eclipse 4.2 Cocoa, 64-bit (tried 3.7 as well, didn't work either)
OSX 10.7.5
Here's the error message:
install.packages(c("rj"), repos="http://download.walware.de/rj-1.1")
Installing package(s) into '/Library/Frameworks/R.framework/Versions/2.15/Resources/library'
(as 'lib' is unspecified)
trying URL 'http://download.walware.de/rj-1.1/src/contrib/rj_1.1.0-4.tar.gz'
Content type 'application/x-tar' length 314501 bytes (307 Kb)
opened URL
==================================================
downloaded 307 Kb
* installing *source* package 'rj' ...
checking R config... found
R_HOME : /usr/local/Cellar/r/2.15.1/R.framework/Resources
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking Java support in R... ok
JAVA_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
JAVA : /usr/bin/java
JAVAC : /usr/bin/javac
JAVAH : /usr/bin/javah
JAVA_CPPFLAGS: -I/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/include
JAVA_LIBS: -framework JavaVM
JAR : /usr/bin/jar
configure: creating ./config.status
config.status: creating src/Makevars
=== configuring in jri (/private/var/folders/7p/q7qb1n2d277c9tqt65s5wy_c0000gn/T/RtmpVlP2YK/R.INSTALL2c9175fac4e/rj/jri)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=.
checking build system type... i386-apple-darwin11.4.2
checking host system type... i386-apple-darwin11.4.2
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking whether Java interpreter works... checking whether JNI programs can be compiled... configure: error: Cannot compile a simple JNI program. See config.log for details.
configure: error: ./configure failed for jri
ERROR: configuration failed for package 'rj'
* removing '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rj'
* restoring previous '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rj'
The downloaded source packages are in
'/private/var/folders/7p/q7qb1n2d277c9tqt65s5wy_c0000gn/T/RtmpNM4Pyx/downloaded_packages'
Warning message:
In install.packages(c("rj"), repos = "http://download.walware.de/rj-1.1") :
installation of package 'rj' had non-zero exit status
Here is the session info.
sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-apple-darwin11.4.0 (64-bit)
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tcltk_2.15.1 tools_2.15.1
I faced the same issue and below Solution worked for me. Please follow the steps
1.) You need to run this command on the terminal - R CMD javareconf
2.) After that check the compatibility of StatET with rJ package which is in below order.
For RJ 2.0 (StatET 3.4 - 3.5):
install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-2.0")
For RJ 1.1 (StatET 3.0 - 3.3):
install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-1.1")
For RJ 1.0 (StatET 2.0):
install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-1.0")
For RJ 0.5 (StatET 0.10):
install.packages("rj", repos="http://download.walware.de/rj-0.5")
3.) Once you know your compatible version in accordance with StatET then run the package installation command.
for example. I am using a StatET 3.5 thus for me RJ 2.0 will work and not others .
So command would be
{install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-2.0")}
4.) Once your installation is done then do check the environmental variable are set correctly in case you are using any IDE ( Like Eclipse ). Library paths should be set in Eclipse or any other IDE.
Follow this link in case of any issues - http://www.walware.de/?page=/it/statet/installation.html