I want install package ROOT on my computer, It should be done with command ./configure && make && make install, at the step of make, I met an error:
In file included from /home/wm/root-6.10.02/hist/unfold/src/TUnfoldBinningXML.cxx:123:0:
include/TUnfoldBinningXML.h:47:22: fatal error: TXMLNode.h: No such file or directory
compilation terminated.
Makefile:723: recipe for target 'hist/unfold/src/TUnfoldBinningXML.o' failed
make: *** [hist/unfold/src/TUnfoldBinningXML.o] Error 1
my OS is Ubuntu 16.04 LTS
Then I check for config.log
98 Checking for libXpm ...
99 libraries to check for: libXpm.so libXpm.sl libXpm.tbd libXpm.dylib libXpm.dll.a libXpm.a libXpm.lib libXpm
100 Checking in directories /usr/local/lib64 /usr/local/lib/x86_64-linux-gnu /usr/local/lib64 /usr/local/lib for libXpm.so libXpm.sl libXpm.tbd libXpm. dylib libXpm.dll.a libXpm.a libXpm.lib libXpm
101 Checking for library libXpm.so in directory /usr/local/lib
102 Checking /usr/local/lib/libXpm.so
103 libXpm.so not found in /usr/local/lib
104 Checking for library libXpm.sl in directory /usr/local/lib
105 Checking /usr/local/lib/libXpm.sl
106 libXpm.sl not found in /usr/local/lib
107 Checking for library libXpm.tbd in directory /usr/local/lib
108 Checking /usr/local/lib/libXpm.tbd
109 libXpm.tbd not found in /usr/local/lib
110 Checking for library libXpm.dylib in directory /usr/local/lib
111 Checking /usr/local/lib/libXpm.dylib
112 libXpm.dylib not found in /usr/local/lib
113 Checking for library libXpm.dll.a in directory /usr/local/lib
114 Checking /usr/local/lib/libXpm.dll.a
115 libXpm.dll.a not found in /usr/local/lib
116 Checking for library libXpm.a in directory /usr/local/lib
117 Checking /usr/local/lib/libXpm.a
118 libXpm.a not found in /usr/local/lib
119 Checking for library libXpm.lib in directory /usr/local/lib
120 Checking /usr/local/lib/libXpm.lib
121 libXpm.lib not found in /usr/local/lib
122 Checking for library libXpm in directory /usr/local/lib
123 Checking /usr/local/lib/libXpm
124 libXpm not found in /usr/local/lib
125 Checking in directories /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib64 /usr/lib for libXpm.so libXpm.sl libXpm.tbd libXpm.dylib libXpm.dll.a libX pm.a libXpm.lib libXpm
126 Checking for library libXpm.so in directory /usr/lib/x86_64-linux-gnu
127 Checking /usr/lib/x86_64-linux-gnu/libXpm.so
128 Found file /usr/lib/x86_64-linux-gnu/libXpm.so
129 Checking if /usr/lib/x86_64-linux-gnu/libXpm.so is a 64-bit library
130 file -L /usr/lib/x86_64-linux-gnu/libXpm.so | grep '64-bit'
131 result: 1
132 is a 64bit library
and several mistakes like this. I think that I have installed for example libxpm-dev
$ sudo apt-get install libxpm-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxpm-dev is already the newest version (1:3.5.11-1ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 321 not upgraded.
but there is no output of ldconfig -p | grep libxpm-dev,
the output of locate libxpm-dev is
/usr/share/doc/libxpm-dev
/usr/share/doc/libxpm-dev/changelog.Debian.gz
/usr/share/doc/libxpm-dev/copyright
/usr/share/doc/libxpm-dev/xpm.PS.gz
/usr/share/lintian/overrides/libxpm-dev
/var/cache/apt/archives/libxpm-dev_1%3a3.5.11-1ubuntu0.16.04.1_amd64.deb
/var/lib/dpkg/info/libxpm-dev:amd64.list
/var/lib/dpkg/info/libxpm-dev:amd64.md5sums
Then I try :
$ export PATH=$PATH:/usr/share/doc
$ ~/root-6.10.02$ export PATH=$PATH:/var/cache/apt/archives
$ ~/root-6.10.02$ export PATH=$PATH:/var/lib/dpkg/info
still doesn't work.
so what to do now?
Related
I'm trying to install ruby#2.7.4 using rvm but have been struggling with errors for the past day. I have checked that my Xcode version is up to date (14.1) and Command Line Tools (14.1) on macOS Ventura 13.0.1.
I have rvm 1.29.12. Would appreciate any help, please let me know if more information is needed
$ rvm install "ruby-2.7.4"
Warning! PATH is not properly set up, /Users/kenjohnson/.rvm/gems/ruby-2.6.2/bin is not at first place.
Usually this is caused by shell initialization files. Search for PATH=... entries.
You can also re-add RVM to your profile by running: rvm get stable --auto-dotfiles
To fix it temporarily in this shell session run: rvm use ruby-2.6.2
To ignore this error add rvm_silence_path_mismatch_check_flag=1 to your ~/.rvmrc file.
ruby-2.7.4 - #removing src/ruby-2.7.4..
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/13.0/x86_64/ruby-2.7.4.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl#1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/kenjohnson/.rvm/rubies/ruby-2.7.4, this may take a while depending on your cpu(s)...
ruby-2.7.4 - #downloading ruby-2.7.4, this may take a while depending on your connection...
ruby-2.7.4 - #extracting ruby-2.7.4 to /Users/kenjohnson/.rvm/src/ruby-2.7.4.....
ruby-2.7.4 - #configuring..
Error running './configure --prefix=/Users/kenjohnson/.rvm/rubies/ruby-2.7.4 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/openssl#1.1 --disable-install-doc --enable-shared',
please read /Users/kenjohnson/.rvm/log/1668894405_ruby-2.7.4/configure.log
There has been an error while running configure. Halting the installation.
configure.log:
[2022-11-19 13:25:34] ./configure
current path: /Users/kenjohnson/.rvm/src/ruby-2.7.4
GEM_HOME=/Users/kenjohnson/.rvm/gems/ruby-2.6.2
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/mysql/bin:/opt/anaconda3/bin:/usr/local/sbin:/Users/kenjohnson/.pyenv/shims:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/kenjohnson/Documents/Classes/Year 4 Term 1/CPEN 322/project-Kojon74/node_modules/.bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/mysql/bin:/opt/anaconda3/bin:/usr/local/sbin:/Users/kenjohnson/.rvm/gems/ruby-2.6.2/bin:/Users/kenjohnson/.rvm/gems/ruby-2.6.2#global/bin:/Users/kenjohnson/.rvm/rubies/ruby-2.6.2/bin:/usr/local/opt/ruby/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/kenjohnson/.rvm/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin
GEM_PATH=/Users/kenjohnson/.rvm/gems/ruby-2.6.2:/Users/kenjohnson/.rvm/gems/ruby-2.6.2#global
command(5): ./configure --prefix=/Users/kenjohnson/.rvm/rubies/ruby-2.7.4 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/openssl#1.1 --disable-install-doc --enable-shared
checking for ruby... /usr/local/opt/ruby/bin/ruby
tool/config.guess already exists
tool/config.sub already exists
checking build system type... x86_64-apple-darwin22.1.0
checking host system type... x86_64-apple-darwin22.1.0
checking target system type... x86_64-apple-darwin22.1.0
checking whether the C compiler works... no
configure: error: in `/Users/kenjohnson/.rvm/src/ruby-2.7.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
config.log: had to delete cache variables, output variables, confides.h since stack overflow was complaining about too much code
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/Users/kenjohnson/.rvm/rubies/ruby-2.7.4 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/libksba:/usr/local/opt/readline:/usr/local/opt/zlib:/usr/local/opt/openssl#1.1 --disable-install-doc --enable-shared
## --------- ##
## Platform. ##
## --------- ##
hostname = Kens-MBP-2.hitronhub.home
uname -m = x86_64
uname -r = 22.1.0
uname -s = Darwin
uname -v = Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3
Primary memory available: 16.00 gigabytes
Default processor set: 909 tasks, 3399 threads, 4 processors
Load average: 10.61, Mach factor: 0.63
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/opt/coreutils/bin
PATH: /usr/local/opt/pkg-config/bin
PATH: /usr/local/opt/libtool/bin
PATH: /usr/local/opt/automake/bin
PATH: /usr/local/opt/autoconf/bin
PATH: /usr/local/mysql/bin
PATH: /opt/anaconda3/bin
PATH: /usr/local/sbin
PATH: /Users/kenjohnson/.pyenv/shims
PATH: /usr/local/opt/ruby/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /Users/kenjohnson/Documents/Classes/Year 4 Term 1/CPEN 322/project-Kojon74/node_modules/.bin
PATH: /opt/X11/bin
PATH: /Library/Apple/usr/bin
PATH: /Library/Frameworks/Mono.framework/Versions/Current/Commands
PATH: /usr/local/mysql/bin
PATH: /opt/anaconda3/bin
PATH: /usr/local/sbin
PATH: /Users/kenjohnson/.rvm/gems/ruby-2.6.2/bin
PATH: /Users/kenjohnson/.rvm/gems/ruby-2.6.2#global/bin
PATH: /Users/kenjohnson/.rvm/rubies/ruby-2.6.2/bin
PATH: /usr/local/opt/ruby/bin
PATH: /Applications/Visual Studio Code.app/Contents/Resources/app/bin
PATH: /Users/kenjohnson/.rvm/bin
PATH: /Applications/Visual Studio Code.app/Contents/Resources/app/bin
PATH: /Applications/Visual Studio Code.app/Contents/Resources/app/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3017: checking for ruby
configure:3035: found /usr/local/opt/ruby/bin/ruby
configure:3048: result: /usr/local/opt/ruby/bin/ruby
configure:3121: checking build system type
configure:3135: result: x86_64-apple-darwin22.1.0
configure:3221: checking host system type
configure:3234: result: x86_64-apple-darwin22.1.0
configure:3254: checking target system type
configure:3267: result: x86_64-apple-darwin22.1.0
configure:3680: checking for C compiler version
configure:3689: gcc --version >&5
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:3700: $? = 0
configure:3689: gcc -v >&5
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:3700: $? = 0
configure:3689: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3700: $? = 1
configure:3689: gcc -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:3700: $? = 1
configure:3720: checking whether the C compiler works
configure:3742: gcc conftest.c >&5
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.ios.a, file is universal (armv7,armv7s,arm64,arm64e) but does not contain the x86_64 architecture: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.ios.a
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/lib/libSystem.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/lib/libSystem.tbd (4 slices)
ld: building for iOS, but linking in object file built for iOS Simulator, file '/var/folders/s3/v3l8xgqd3xdgc1ll_pmdv1qr0000gn/T/conftest-3b5ab3.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3746: $? = 1
configure:3784: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3789: error: in `/Users/kenjohnson/.rvm/src/ruby-2.7.4':
configure:3791: error: C compiler cannot create executables
See `config.log' for more details
After upgrading python 3.8.6 to 3.9.10 using homebrew, my Cython extensions no longer without explicitly adding /usr/local/include (for my Intel MacBook) or /opt/homebrew/include to the include_dirs of my extension.
My setup.py.in:
import os, sys
from numpy.distutils.core import setup, Extension
from Cython.Build import cythonize
link_arguments = []
extra_include_dirs = []
if (sys.platform == 'darwin'):
link_arguments.append("-Wl,-rpath")
link_arguments.append("-Wl,#loader_path/")
if os.path.exists('/opt/homebrew/'):
extra_include_dirs.append("/opt/homebrew/include/")
else:
extra_include_dirs.append("/usr/local/include/")
else:
link_arguments.append("-Wl,-rpath=${CMAKE_SOURCE_DIR}/lib/")
pynwp_extension = Extension(
name="pynwp",
sources=["${CMAKE_CURRENT_SOURCE_DIR}/lambert.f90", "${CMAKE_CURRENT_SOURCE_DIR}/pynwp.f90", "${CMAKE_CURRENT_SOURCE_DIR}/readAtmosphereGen.f90", "${CMAKE_CURRENT_SOURCE_DIR}/ptogrot.f", "${CMAKE_CURRENT_SOURCE_DIR}/bilin1.f", "${CMAKE_CURRENT_SOURCE_DIR}/fl2pres_f.f","${CMAKE_CURRENT_SOURCE_DIR}/message.c","${CMAKE_CURRENT_SOURCE_DIR}/gridWindDirCorrection.F"],
libraries=["HirlamUtils_fPIC", "eccodes_f90", "jasper"],
library_dirs=["${PROJECT_BINARY_DIR}", "${CMAKE_SOURCE_DIR}/build${CMAKE_BUILD_TYPE}/src/libHirlamUtils/", "/opt/homebrew/lib/"],
extra_link_args = link_arguments,
include_dirs=["${CMAKE_SOURCE_DIR}/include", "/usr/lib64/gfortran/modules/",
"${CMAKE_SOURCE_DIR}/build${CMAKE_BUILD_TYPE}"] + extra_include_dirs,
extra_f90_compile_args=["-DLINUX", "-DIS_LITTLE_ENDIAN", "-DUSEWALLTIME", "-DHAS_BLAS", "-DHAS_LAPACK", "-DGRIB32", "-DTIMING", "-DPREC32", "-fno-whole-file", "-g", "-fbounds-check"]
#compiler_directives={'language_level' : "3"}
)
setup(name="pynwp",
author="me",
author_email="me!me.com",
version="1.0.1",
description="Python wrapper for pynwp",
package_dir={"": "${CMAKE_CURRENT_SOURCE_DIR}"},
url="http://emaddc.eu",
license="MIT License",
ext_modules=[pynwp_extension]
)
In the file above, I have hardcoded the location (temporarily) of the homebrew library dir and added some functionality for the include dir based on /opt/homebrew being found. If I remove this from the file, compilation fails as eccodes.mod cannot be found, see the output when I run the command generate by python/CMake manually:
buildDebug git:(master) ✗ /opt/homebrew/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops -I<project_dir>//include -I/usr/lib64/gfortran/modules/ -I<project_dir>//buildDebug -Ibuild/src.macosx-12-arm64-3.9/build/src.macosx-12-arm64-3.9 -I/opt/homebrew/lib/python3.9/site-packages/numpy/core/include -Ibuild/src.macosx-12-arm64-3.9/numpy/distutils/include -I/opt/homebrew/opt/python#3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c -c <project_dir>//src/pynwp/readAtmosphereGen.f90 -o build/temp.macosx-12-arm64-3.9<project_dir>//src/pynwp/readAtmosphereGen.o -DLINUX -DIS_LITTLE_ENDIAN -DUSEWALLTIME -DHAS_BLAS -DHAS_LAPACK -DGRIB32 -DTIMING -DPREC32 -fno-whole-file -g -fbounds-check
f951: Warning: Nonexistent include directory '/usr/lib64/gfortran/modules/' [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory 'build/src.macosx-12-arm64-3.9/build/src.macosx-12-arm64-3.9' [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory 'build/src.macosx-12-arm64-3.9/numpy/distutils/include' [-Wmissing-include-dirs]
<project_dir>//src/pynwp/readAtmosphereGen.f90:3:7:
3 | use eccodes
| 1
Fatal Error: Cannot open module file 'eccodes.mod' for reading at (1): No such file or directory
compilation terminated.
This extension is part of a larger project that is build using CMake. When running the gfortran command manually, the same errors indicating that eccodes.mod cannot be found. The file is however located on a default location on the gfortran/gcc search path:
locate eccodes.mod
/opt/homebrew/Cellar/eccodes/2.24.2/include/eccodes.mod
/opt/homebrew/include/eccodes.mod
And the search path for gfortran:
gfortran -E -Wp,-v -
#include <...> search starts here:
/opt/homebrew/include
/opt/homebrew/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/aarch64-apple-darwin21/11/include
/opt/homebrew/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/aarch64-apple-darwin21/11/include-fixed
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks
End of search list.
Another project uses gcc/ld and has a similar problem. I need to explicitly add LINK_DIRECTORIES(/opt/homebrew/lib) to CMakeList.txt in order for gcc to find the eccodes library. Without that, I get:
gcc-11: warning: this compiler does not support X86 (arch flags ignored)
ld: library not found for -leccodes
collect2: error: ld returned 1 exit status
make[2]: *** [src/smoothModeS-v51/smoothModeS-v51.x] Error 1
make[1]: *** [src/smoothModeS-v51/CMakeFiles/smoothModeS-v51.x.dir/all] Error 2
make: *** [all] Error 2
Adding the paths to CPATH and LIBRARY_PATH had no effect.
This method works but seems hard to maintain. What am I missing and what has changed that gfortran/gcc no longer search in the default paths for but libraries and headers/modules?
EDIT
Just found that the standalone executable that uses similar code as the python extension and also uses eccodes has a similar issue. If I do not include INCLUDE_DIRECTORIES(/opt/homebrew/include) in CMakeLists.txt , I get:
cd <project_dir>/buildDebug/src/collocEHS && /opt/homebrew/bin/gfortran -I<project_dir>/buildDebug -I<project_dir>/include -I<project_dir>/src/readASTERIX2 -I<project_dir>/src/geomag70_linux -I<project_dir>/src/libDTG -fallow-argument-mismatch -ffpe-trap=invalid,zero,overflow -DPREC32 -DLINUX -DIS_LITTLE_ENDIAN -DUSEWALLTIME -DHAS_BLAS -DHAS_LAPACK -DGRIB32 -DTIMING -ffixed-line-length-none -g -fcheck=all -Wall -fcheck=bounds -O0 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -c <project_dir>/src/pynwp/readAtmosphereGen.f90 -o CMakeFiles/collocEHSv2.dir/__/pynwp/readAtmosphereGen.f90.o
<project_dir>/src/pynwp/readAtmosphereGen.f90:3:7:
3 | use eccodes
| 1
Fatal Error: Cannot open module file 'eccodes.mod' for reading at (1): No such file or directory
compilation terminated.
make[2]: *** [src/collocEHS/CMakeFiles/collocEHSv2.dir/__/pynwp/readAtmosphereGen.f90.o] Error 1
make[1]: *** [src/collocEHS/CMakeFiles/collocEHSv2.dir/all] Error 2
make: *** [all] Error 2
So I guess the problem is unrelated to python but more with gcc/gfortran (gcc version 11.2.0 (Homebrew GCC 11.2.0_3).
EDIT 2
A reboot of the laptop fixed the issue with the python extension build and setup.py requiring additional directories. For normal builds using CMake, I still require the extra INCLUDE_DIRECTORIES and LINK_DIRECTORIES order for gcc/gfortran to find libraries installed by brew in /opt/homebrew (or /usr/local for intel MacBook).
As per homebrew devs, this is desired behaviour: /opt/homebrew and /usr/local are "special" directories to be manually added in e.g., CMake projects. This is explained in my bug report on home-brew's GitHub, see https://github.com/Homebrew/homebrew-core/issues/95561.
I haven't been able to confirm this with documentation.
Before I begin, I should note that I never had this problem on macOS 10.15 Catalina, and the responses in this similar thread did not solve the problem, unfortunately.
I'm experimenting with latexindent on a fresh install of macOS 11 Big Sur and I'm having issues with File:HomeDir: running latexindent returns a whole list of errors, beginning with Can't locate File/HomeDir.pm in #INC. I've tried using cpan to install that module, but I end up with following:
Reading '/Users/myname/.cpan/Metadata'
Database was generated on Thu, 24 Dec 2020 05:41:03 GMT
Running install for module 'File::HomeDir'
Checksum for /Users/myname/.cpan/sources/authors/id/R/RE/REHSACK/File-HomeDir-1.006.tar.gz ok
Scanning cache /Users/myname/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring R/RE/REHSACK/File-HomeDir-1.006.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Mac::SystemDirectory 0.04 not found.
Generating a Unix-style Makefile
Writing Makefile for File::HomeDir
Writing MYMETA.yml and MYMETA.json
REHSACK/File-HomeDir-1.006.tar.gz
/usr/bin/perl Makefile.PL -- OK
Running make for R/RE/REHSACK/File-HomeDir-1.006.tar.gz
---- Unsatisfied dependencies detected during ----
---- REHSACK/File-HomeDir-1.006.tar.gz ----
Mac::SystemDirectory [requires]
Running install for module 'Mac::SystemDirectory'
Checksum for /Users/myname/.cpan/sources/authors/id/E/ET/ETHER/Mac-SystemDirectory-0.13.tar.gz ok
Configuring E/ET/ETHER/Mac-SystemDirectory-0.13.tar.gz with Makefile.PL
HASCOMPILERjIOx/TESTn6oE.c:2:10: fatal error: 'EXTERN.h' file not found
#include "EXTERN.h"
^~~~~~~~~~
1 error generated.
Couldn't execute cc -g -pipe -fno-strict-aliasing -fstack-protector-strong -DPERL_USE_SAFE_PUTENV -Os "-I/System/Library/Perl/5.28/darwin-thread-multi-2level/CORE" -c HASCOMPILERjIOx/TESTn6oE.c -o HASCOMPILERjIOx/TESTn6oE.o: Inappropriate ioctl for device at Makefile.PL line 14.
Requires a compiler
Warning: No success on command[/usr/bin/perl Makefile.PL]
ETHER/Mac-SystemDirectory-0.13.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
REHSACK/File-HomeDir-1.006.tar.gz
Has already been unwrapped into directory /Users/myname/.cpan/build/File-HomeDir-1.006-2
REHSACK/File-HomeDir-1.006.tar.gz
Has already been prepared
Running make for R/RE/REHSACK/File-HomeDir-1.006.tar.gz
Warning: Prerequisite 'Mac::SystemDirectory => 0.04' for 'REHSACK/File-HomeDir-1.006.tar.gz' failed when processing 'ETHER/Mac-SystemDirectory-0.13.tar.gz' with 'writemakefile => NO '/usr/bin/perl Makefile.PL' returned status 6400'. Continuing, but chances to succeed are limited.
cp lib/File/HomeDir/Driver.pm blib/lib/File/HomeDir/Driver.pm
cp lib/File/HomeDir/MacOS9.pm blib/lib/File/HomeDir/MacOS9.pm
cp lib/File/HomeDir/Darwin/Carbon.pm blib/lib/File/HomeDir/Darwin/Carbon.pm
cp lib/File/HomeDir/Darwin/Cocoa.pm blib/lib/File/HomeDir/Darwin/Cocoa.pm
cp lib/File/HomeDir/Windows.pm blib/lib/File/HomeDir/Windows.pm
cp lib/File/HomeDir/FreeDesktop.pm blib/lib/File/HomeDir/FreeDesktop.pm
cp lib/File/HomeDir.pm blib/lib/File/HomeDir.pm
cp lib/File/HomeDir/Test.pm blib/lib/File/HomeDir/Test.pm
cp lib/File/HomeDir/Darwin.pm blib/lib/File/HomeDir/Darwin.pm
cp lib/File/HomeDir/Unix.pm blib/lib/File/HomeDir/Unix.pm
Manifying 10 pod documents
REHSACK/File-HomeDir-1.006.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t xt/*.t
t/01_compile.t ........ 1/11 # Implemented by: File::HomeDir::Darwin
t/01_compile.t ........ ok
t/02_main.t ........... # $<: 501 -- $(: 20 20 12 61 79 80 81 98 701 33 100 204 250 395 398 399 400
t/02_main.t ........... ok
t/10_test.t ........... ok
t/11_darwin.t ......... ok
t/12_darwin_carbon.t .. skipped: Not running on 32-bit Darwin
t/13_darwin_cocoa.t ... skipped: Not running on Darwin with Cocoa API using Mac::SystemDirectory
t/20_empty_home.t ..... ok
All tests successful.
Files=7, Tests=90, 1 wallclock secs ( 0.04 usr 0.01 sys + 0.48 cusr 0.13 csys = 0.66 CPU)
Result: PASS
REHSACK/File-HomeDir-1.006.tar.gz
Tests succeeded but one dependency not OK (Mac::SystemDirectory)
REHSACK/File-HomeDir-1.006.tar.gz
[dependencies] -- NA
Failed during this command:
ETHER/Mac-SystemDirectory-0.13.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 6400
REHSACK/File-HomeDir-1.006.tar.gz : make_test NO one dependency not OK (Mac::SystemDirectory)
I really don't know much about perl, but it seems to me that Mac::SystemDirectory is missing, When I try to install that, however, I get
Reading '/Users/myname/.cpan/Metadata'
Database was generated on Thu, 24 Dec 2020 05:41:03 GMT
Running install for module 'Mac::SystemDirectory'
Checksum for /Users/myname/.cpan/sources/authors/id/E/ET/ETHER/Mac-SystemDirectory-0.13.tar.gz ok
Scanning cache /Users/myname/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring E/ET/ETHER/Mac-SystemDirectory-0.13.tar.gz with Makefile.PL
HASCOMPILER5Emh/TESTS3W7.c:2:10: fatal error: 'EXTERN.h' file not found
#include "EXTERN.h"
^~~~~~~~~~
1 error generated.
Couldn't execute cc -g -pipe -fno-strict-aliasing -fstack-protector-strong -DPERL_USE_SAFE_PUTENV -Os "-I/System/Library/Perl/5.28/darwin-thread-multi-2level/CORE" -c HASCOMPILER5Emh/TESTS3W7.c -o HASCOMPILER5Emh/TESTS3W7.o: Inappropriate ioctl for device at Makefile.PL line 14.
Requires a compiler
Warning: No success on command[/usr/bin/perl Makefile.PL]
ETHER/Mac-SystemDirectory-0.13.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Failed during this command:
ETHER/Mac-SystemDirectory-0.13.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 6400
From this it seems that a header file EXTERN.h is missing, but I'm not sure where to go from here. Does anyone have any thoughts or suggestions? My apologies for the huge blocks of code - I figured it would be better to include all possible details. Thanks a lot!
Note: I posted this same question in the LaTeX Stack Exchange, but figured I would also ask here since it seems to be a broader perl issue.
To summarize the solution that worked for me: the issue is the header file EXTERN.h isn't on the CPATH by default in macOS 11 Big Sur. To fix this, add the directory containing EXTERN.h to CPATH:
export CPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Perl/5.28/darwin-thread-multi-2level/CORE:$CPATH
Then open the cpan shell (just type cpan then enter into the command line) and type install Mac::SystemDirectory. After this process finished I was able to install File:HomeDir as well, and some other modules, to get latexindent working.
Note: I had to set up cpan before I did this; just opening the shell and following the instructions was sufficient.
Thanks a lot to Håkon Hægland for the solution!
I downloaded wget-1.19.tar.gz from this site http://ftp.gnu.org/gnu/wget/ and then i exctract the tar file and run
./configure
The output is that:
checking for ftello... yes
checking for sigblock... yes
checking for sigsetjmp... yes
checking for memrchr... (cached) no
checking for wcwidth... (cached) yes
checking for mbtowc... yes
checking for sleep... yes
checking for symlink... (cached) yes
checking for utime... yes
checking for strlcpy... yes
checking for random... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBPSL... no
checking for library containing psl_builtin... no
configure: WARNING: *** libpsl was not found. Fallback to builtin cookie checking.
checking for ZLIB... yes
checking for GNUTLS... no
configure: error: Package requirements (gnutls) were not met:
No package 'gnutls' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GNUTLS_CFLAGS
and GNUTLS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I found different guides on the web, but none solve my problem.
I try to install different package with brew, for example
brew install gnutls
but nothing works.
In fact if I do brew install gnutls, seems to be correct, but if i digit
make
the error is that:
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in lib
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
make[4]: Nothing to be done for `all-am'.
Making all in src
/Library/Developer/CommandLineTools/usr/bin/make all-am
CC ftp.o
ftp.c:1466:19: error: no member named 'rpl_unlink' in 'struct options'
if (opt.unlink && file_exists_p (con->target))
~~~ ^
../lib/unistd.h:1851:19: note: expanded from macro 'unlink'
# define unlink rpl_unlink
^
error: error opening '.deps/ftp.Tpo': Permission denied
2 errors generated.
make[3]: *** [ftp.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Can anyone help me?
I want to install wget on my Mac because I have to download folders in this page http://www.tlc.dii.univpm.it/fb4fd/ and using curl I can't download them in recursive way.
there are instructions to install wget here. It involves loading wget using Ruby and then running brew install wget.
From terminal run the following commands:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
then run:
brew install wget
I going to run OpenWrt on HiLink-HLK-RM04 but I get the following error:
checking for autogen... autogen
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking for getrandom... no
checking for getentropy... no
checking for NETTLE... no
configure: error:
***
*** Libnettle 3.1 was not found.
I searched, but could not find something helpful.
When I type rpm -q nettle I get the following result:
nettle-2.2-1.el6.rf.x86_64
Thanks in advance.
EDIT:
here is NETTLE section of config.log :
configure:8478: checking for NETTLE
configure:8486: $PKG_CONFIG --exists --print-errors "nettle >= 3.1"
Package nettle was not found in the pkg-config search path.
Perhaps you should add the directory containing `nettle.pc'
to the PKG_CONFIG_PATH environment variable
No package 'nettle' found
configure:8489: $? = 1
configure:8504: $PKG_CONFIG --exists --print-errors "nettle >= 3.1"
Package nettle was not found in the pkg-config search path.
Perhaps you should add the directory containing `nettle.pc'
to the PKG_CONFIG_PATH environment variable
No package 'nettle' found
configure:8507: $? = 1
No package 'nettle' found
configure:8535: result: no
configure:8538: error:
***
*** Libnettle 3.1 was not found.