Installing Perl DBI in SUN Solaries - linux

I am trying to install perl DBI on SUN solaries 11 but I always got the following error:
sh: line 1: cc: not found
*** Error code 127
make: Fatal error: Command failed for target `Perl.o'
I did the following steps:
Downloaded and extracted DBI-1.628 then in the shell command:
cd DBI-1.628
make realclean
perl Perlfile.PL
meke

This means it cannot find a compiler on your machine. You should add the path to the compiler to your PATH variable. gcc and cc are not the same thing. You should install cc.

Related

Yum reports an error:CRITICAL:yum.cli:Config error: Error accessing file for config file:///etc/yum.conf

My environment: python3.8, gcc12.2, cmake4.3. I want to compile and install the glibc library. When I finish compiling and installing, my yum has an error
The following is the error content:
CRITICAL:yum.cli:Config error: Error accessing file for config file:///etc/yum.conf
But I obviously have /etc/yum.conf, but I still get an error
I hope to know why and get a solution, thank you
I downloaded and compiled glibc, and the installation was successful, but there was an error message after installation
collect2: error: ld returned 1 exit status
Execution of gcc failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,
libm.so should point to the newly installed glibc file - and there should be
only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [Makefile:111: install] Error 1
make[1]: Leaving directory '/opt/glibc-2.29'
make: *** [Makefile:12:install] 错误 2
But I found on the net that this error doesn't affect anything

Octave 4.0.1 octave forge dicom package fatal error on install openSUSE linux

I am using:
linux openSUSE Tumbleweed
octave-4.0.1
gdcm-2.6.3
I have recently gotten into using linux for my research in university. For this research, I have been trying to install the dicom package into octave from the octave forge. When I submit the code pkg install -forge dicom into octave, I get fatal error: gdcm-2.0/gdcmReader.h: No such file or directory causing the installation to fail.
I have searched around for fixes to this problem which appears to have happened to several people in the past (see Dependency library not recognized during installation octave forge dicom package in debian linux). However, since I am new to linux, I really don't understand what these users have done to solve their problem. Additionally, both octave and gdcm have updated since these posts. I also, have not been able to find an updated version of the dicom package while I have been trying to troubleshoot this. If anyone has any input on this I would greatly appreciate it.
Below is what I am seeing in the command window log.
>> pkg install -forge dicom
dicomread.cpp:27:38: fatal error: gdcm-2.0/gdcmImageReader.h: No such file or directory
compilation terminated.
make: *** [Makefile:44: dicomread.oct] Error 1
make: *** Waiting for unfinished jobs....
dicominfo.cpp:45:33: fatal error: gdcm-2.0/gdcmReader.h: No such file or directory
compilation terminated.
dicomlookup.cpp:23:31: fatal error: gdcm-2.0/gdcmDict.h: No such file or directory
compilation terminated.
make: *** [Makefile:51: dicominfo.o] Error 1
dicomdict.cpp:30:31: fatal error: gdcm-2.0/gdcmDict.h: No such file or directory
compilation terminated.
make: *** [Makefile:60: dicomlookup.o] Error 1
make: *** [Makefile:57: dicomdict.o] Error 1
make: Entering directory '/tmp/oct-5jTUbJ/dicom/src'
mkoctfile -c -g dicominfo.cpp
mkoctfile -c -g dicomdict.cpp
mkoctfile -L/usr/local/lib -lgdcmcharls -lgdcmjpeg8 -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmCommon -lgdcmDICT -lgdcmDSED -lgdcmIOD -lgdcmMSFF -g dicomread.cpp
mkoctfile -c -g dicomlookup.cpp
make: Leaving directory '/tmp/oct-5jTUbJ/dicom/src'
pkg: error running `make' for the dicom package.
error: called from 'configure_make' in file /usr/share/octave/4.0.1/m/pkg/private/configure_make.m near line 96, column 9
>>
This is due to the dicom package being very outdated (2011).
Recently, a number of researchers have updated the package to use the latest version of gdcm and removed some of the hardcodings that made installing gdcm beyond 2.0 uncompatable with the dicom library.
A thread on this is available here
http://octave.1599824.n4.nabble.com/Can-t-install-dicom-package-0-1-1-and-0-1-2-user-version-in-octave-4-0-2-and-ubuntu-14-0-td4681648.html
In short, their instructions are to use a repo of an updated version of dicom package installed. This assumes that gdcm has been installed with headers (i.e built from source).
hg clone http://hg.code.sf.net/p/octave/dicom
cd dicom
make install

Can't locate XML/LibXML.pm and cpan not found the c compiler to generate

I need LibXML in a Linux Machine and have the next error like other posts:
Can't locate XML/LibXML.pm in #INC
I saw the solution, but the problem that I have is that when try generate the library with cpan, show error that not found the compiler. I was looking the answer for my problem, and I found the way to install, with apt-get or mcpan, but not get apt-get or aptitude commands, I only can with ipkg install perl_libXML or with cpan.
The error with cpan is the next:
perl -MCPAN -e shell
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v2.00)
Enter 'h' for help.
cpan[1]> install XML::LibXML
Reading '/root/.cpan/Metadata'
Database was generated on Sat, 01 Nov 2014 19:17:02 GMT
Running install for module 'XML::LibXML'
Running make for S/SH/SHLOMIF/XML-LibXML-2.0117.tar.gz
Checksum for /root/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0117.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN.pm: Building S/SH/SHLOMIF/XML-LibXML-2.0117.tar.gz
Use of uninitialized value $config_val in pattern match (m//) at inc/Devel/CheckLib.pm line 372.
Couldn't find your C compiler
Compilation failed in require at Makefile.PL line 92.
BEGIN failed--compilation aborted at Makefile.PL line 92.
Warning: No success on command[/usr/bin/perl Makefile.PL]
SHLOMIF/XML-LibXML-2.0117.tar.gz
/usr/bin/perl Makefile.PL -- 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
Failed during this command:
SHLOMIF/XML-LibXML-2.0117.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 512
cpan[2]>
I not know why with ipkg the installation is ok but after not work. I think with cpan would work if the process would found the c compiler, but I not know which is the problem or how tell to cpan the path to the compiler or if is neccesary install it.
I try to manual compile and this is the result, but I not understand why no funda the compilar, I have severas compiler un the sistem. Ťhe error is :
root#Linux: ~/.cpan/build/XML-LibXML-2.0117-tF5gWA # perl Makefile.PL DEBUG=1
Use of uninitialized value $config_val in pattern match (m//) at inc/Devel/CheckLib.pm line 372.
Couldn't find your C compiler
Compilation failed in require at Makefile.PL line 92.
BEGIN failed--compilation aborted at Makefile.PL line 92.
root#Kubyx: ~/.cpan/build/XML-LibXML-2.0117-tF5gWA #
Can you help me to solve the problem or compile by hand?
I found the answer to my system.
x86_64-linux-gnu-gcc is the executable to GCC binary supplied as argument to perl. So Devel::CheckLib is not finding the C compiler once my distro Ubuntu, don't create alternatives to x86_64-linux-gnu-gcc using gcc-5, version where I am using.
The workaround was to change to /usr/bin and create a symlink from x86_64-linux-gnu-gcc to x86_64-linux-gnu-gcc-5.
This is not the first time that I need symlink to alternative names of GCC. Ubuntu distro should create an alternative to all gcc version available and automatically manage the alternatives using update-alternatives.
I have encounter same error when install the XML::Parser:
Running install for module 'XML::Parser'
Checksum for /home/sss/.cpan/sources/authors/id/T/TO/TODDR/XML-Parser-2.46.tar.gz ok
Configuring T/TO/TODDR/XML-Parser-2.46.tar.gz with Makefile.PL
Couldn't find your C compiler
Compilation failed in require at Makefile.PL line 4.
BEGIN failed--compilation aborted at Makefile.PL line 4.
But I build a conda env and install by conda and work well. May work well with installing XML::LibXML.
build and activate conda env
conda create -n perl5 perl=5.26
conda activate perl5
Install XML::Parser by conda rather than cpan, and it will install the XML::Parser dependent libraries expat and libxml2 auto.
conda install -c conda-forge/label/gcc7 perl-xml-parser
# conda install XML::LibXML may be work
conda install -c bioconda perl-xml-libxml
Test the package install success
perl -MXML::Parser -e ''
perl -MXML::LibXML -e ''

Error in compiling the kernel

I am trying to compile linux 3.5.2 kernel. I followed this tutorial
"http://blog.techveda.org/index.php/adding-system-calls-linux-kernel-3-5-x/"
and everything was going perfect.but when I tried to do build the kernel I get this error
here are the commands I used to build my kernel
sudo cp /boot/config-3.5.0-17-generic ./config
make oldconfig
sudo make -j8
the error when I do the make -j8 is:
ERROR: "__modver_version_show" [drivers/staging/rts5139/rts5139.ko] undefined!
WARNING: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
I really can't find what is the problem it looks like I have a problem with a driver but how could this happen and I am using my old configuration file that is already working. ??
I have met the same problem while compiling kernel 3.2, and solve it by "su -" to root and then recompile.
If you do not need this driver simply mod the config fiel like follows:
CONFIG_RTS5139=n

I cannot find file spawn.h in cygwin

I install cygwin 1.7.10 on windows 7.
I want to install gearmand-0.28,when during the make,it can't find spawn.h.
The error is:
./libtest/cmdline.h:24:19: fatal error: spawn.h: No such file or directory
compilation terminated.
Makefile:4157: recipe for target `libtest/libtest_libtest_la-binaries.lo' failed
make[1]: *** [libtest/libtest_libtest_la-binaries.lo] Error 1
make[1]: 离开目录“/home/power/gearmand-0.28”
Makefile:2072: recipe for target `all' failed
make: *** [all] Error 2
Which package I need install?
Looks like it's an issue with some versions of gearman with Cygwin. I finally managed to install gearmand, but an old version: 0.14. (see https://launchpad.net/gearmand/+download )
My environment: Cygwin 1.7.13-1, Windows 7 64-bit.
Don't forget to install boost, gcc, make, libuuid1-devel and libiconv. You can download & install them with Cygwin (setup.exe)

Resources