I am trying to build a package in my solaris 11 server. I am using 'make'command for that and not able to build package
have already tried below commands:-
1)make
2)sudo make
3)make package
The error I am getting
bash-4.4$ make
cc -c timeout.c
sh: cc: not found
*** Error code 127
make: Fatal error: Command failed for target `timeout.o'
bash-4.4$ sudo make
cc -c timeout.c
sh: cc: not found
*** Error code 127
make: Fatal error: Command failed for target `timeout.o'
bash-4.4$ ^C
bash-4.4$ ^C
bash-4.4$
sh: cc: not found means you do not have a program named cc found in your $PATH, so it can't figure out what C compiler you want it to run.
If you've installed the Oracle Developer Studio compilers, then you need to add the path to them to your $PATH environment variable.
If you're using gcc instead, you probably need to run make CC=gcc to set the CC variable to the name of the compiler you want to use.
Related
I've started noticing an odd error when attempting to install R packages (R 4.0.6, x86_64, Linux) that require compilation of c++ source. The final link step seems to get extraneous text in the command. E.g. install.packages("IncDTW"), the trace shows:
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions\
-Wl,-z,relro -o IncDTW.so GCM.o RcppExports.o dtw2vec.o dtw_dismat.o\
dtw_disvec.o help_functions.o init.o \
rundtw.o Start time: Wed Nov 11 14:56:10 2020 -L/usr/lib/R/lib -lR
g++: error: Start: No such file or directory
g++: error: time:: No such file or directory
g++: error: Wed: No such file or directory
g++: error: Nov: No such file or directory
g++: error: 11: No such file or directory
g++: error: 14:56:10: No such file or directory
g++: error: 2020: No such file or directory
make: *** [/usr/share/R/share/make/shlib.mk:10: IncDTW.so] Error 1
(Command line breaks inserted for readability.) Notice the "Start time: ..." inserted in the final command. This appears whether I use install.package function within R or attempt to install with "R" from a bash shell.
Did some odd environment change occur in my system or is this an issue with certain older packages? Work-around ideas welcome...
For the record, the problem stemmed from the local environment. A local .Rprofile file had a command capable of writing to stdout. It seems this output can land at random locations in the command stream used to invoke external compilers etc.--a surprisingly fragile arrangement. (Moreover, it seems you can have more than one of these hidden .Rprofile files.)
So here's the thing: I downloaded the Qt 4.7 tar and I'm installing on Ubuntu 16. I unzip the downloaded folder and installed all libs that were preventing me to run the ./configure
After I could run the configure, the make runs but get an error at some point. Here's what I get when I run 'make configure' or 'make':
root#ubuntu:/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0# make configure
/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake -spec mkspecs/linux-g++-64 -o Makefile projects.pro
make: /home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake: Command not found
Makefile:1063: recipe for target 'Makefile' failed
make: *** [Makefile] Error 127
root#ubuntu:/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0# make
/home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake -spec mkspecs/linux-g++-64 -o Makefile projects.pro
make: /home/gimenes/Downloads/qt-everywhere-opensource-src-4.7.0/bin/qmake: Command not found
Makefile:1063: recipe for target 'Makefile' failed
make: *** [Makefile] Error 127
I really appreciate the help, Ty :D
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.
I am trying to install Mono on Solaris 10 x86 and I run the following commands before encountering an error:
bash-3.00# ./configure --prefix=/usr
bash-3.00# gmake install
.
. (lots of stuff)
.
Making install in test
gmake[2]: Entering directory `/mnt/sf_VMShare/mono-3.2.8/eglib/test'
CCLD test-glib
Undefined first referenced
symbol in file
g_strv_length test_glib-string-util.o
ld: fatal: Symbol referencing errors. No output written to test-glib
collect2: ld returned 1 exit status
gmake[2]: *** [test-glib] Error 1
gmake[2]: Leaving directory `/mnt/sf_VMShare/mono-3.2.8/eglib/test'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/mnt/sf_VMShare/mono-3.2.8/eglib'
gmake: *** [install-recursive] Error 1
bash-3.00#
I tried uninstalling everything to do with glib and then installing glib-2.6.2-sol10-intel-local.gz
bash-3.00# pkginfo | grep glib
application SMCglib glib
The version of mono is mono-3.2.8
I try to install SimpleDB::Class from cpan as sudo cpan SimpleDB::Class. it needs a dependency Memcached::libmemcached. so i try to install it, but it have the following errors.
CCLD clients/memstat
CC tests/atomsmasher.o
CCLD tests/atomsmasher
CXX tests/tests_hashplus-hash_plus.o
./config/depcomp: line 611: exec: g++: not found
make[2]: *** [tests/tests_hashplus-hash_plus.o] Error 127
make[2]: Leaving directory `/home/vanitha/.cpan/build/Memcached-libmemcached-0.4406- Oq4Z_m/src/libmemcached'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/vanitha/.cpan/build/Memcached-libmemcached-0.4406- Oq4Z_m/src/libmemcached'
make: *** [install] Error 2
Unable to build libmemcached: Error running cd src/libmemcached && make install
Aborted.
No 'Makefile' created TIMB/Memcached-libmemcached-0.4406.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
could not read metadata file. Falling back to other methods to determine prerequisites
exec: g++: not found - this is the error
Try this first of all: sudo apt-get install g++