Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm trying to install ARPACK and eventually ARPACK++.
I don't know how to edit the ARmake.inc and when I type in "make lib" this is what gets displayed:
[root@localhost ARPACK]# make lib
Making lib in /root/ARPACK/BLAS
/bin/sh: line 1: /bin/make: No such file or directory
Making lib in /root/ARPACK/LAPACK
/bin/sh: line 1: /bin/make: No such file or directory
Making lib in /root/ARPACK/UTIL
/bin/sh: line 1: /bin/make: No such file or directory
Making lib in /root/ARPACK/SRC
/bin/sh: line 1: /bin/make: No such file or directory
ranlib /root/ARPACK/libarpack_i586-mandrake-linux-gnu.a
ranlib: '/root/ARPACK/libarpack_i586-mandrake-linux-gnu.a': No such file
My ARPACK directory is located in /root. I have gcc-g77 installed and run i586-mandrake-linux-gnu (Mandrake 10.1). The kernel release is 2.6.8.1-12mdk. My processor is a Pentium 4 CPU 2.53GHz.
I suspect that my problem is that I don't know how to edit the ARmake.inc file and tailor it to my specific system. The library section, comiler section etc are beyond me. Can anyone offer advice or perhaps point to some thorough documentation? Thanks.
/root is certainly not where ARPACK belongs! That directory is "root's very-private playpen."
Libraries like this should be located in /usr/local/lib (or elsewhere as-needed in /usr/local.
First, look at the Makefile. This is the actual command-file that tells make what to do.
There will probably be some kind of configure program that might need to be run first, to set-up the parameters used by make. This file is typically referenced and included by the Makefile.
Incidentally, for ordinary routine maintenance that does not demand root privileges, I set up a "system maintenance" account... an ordinary user which has the power to enter the group that authorizes it to read/write in places like /usr/local, and also to execute the su command. This special user is the one that's responsible for and the owner of all these files.
The makefile is not finding the binary make in /bin/make. Find where make is in your distro tree and change its location in the makefile. In Ubuntu, make is in /usr/bin/.
Hi!!, I am also trying to install arpack and arpack++ on my laptop with ubuntu 8.10. I searched on the web and got this thread discussing the same problem. I tried the suggestions given but could not succeed. I changed in ARmake.inc the path for make as MAKE = /usr/bin/make and tried $make lib and got the following errors,
Making lib in /home/rkd/ARPACK/BLAS
make[1]: Entering directory `/home/rkd/ARPACK/BLAS'
Makefile:69: warning: overriding commands for target `.f.o'
../ARmake.inc:95: warning: ignoring old commands for target `.f.o'
f77 -O -cg89 -c isamax.f
/usr/bin/f77: Illegal option: -cg89
make[1]: *** [isamax.o] Error 255
make[1]: Leaving directory `/home/rkd/ARPACK/BLAS'
Making lib in /home/rkd/ARPACK/LAPACK
make[1]: Entering directory `/home/rkd/ARPACK/LAPACK'
Makefile:91: warning: overriding commands for target `.f.o'
../ARmake.inc:95: warning: ignoring old commands for target `.f.o'
f77 -O -cg89 -c sgeqr2.f
/usr/bin/f77: Illegal option: -cg89
make[1]: *** [sgeqr2.o] Error 255
make[1]: Leaving directory `/home/rkd/ARPACK/LAPACK'
Making lib in /home/rkd/ARPACK/UTIL
make[1]: Entering directory `/home/rkd/ARPACK/UTIL'
Makefile:47: warning: overriding commands for target `.f.o'
../ARmake.inc:95: warning: ignoring old commands for target `.f.o'
f77 -O -cg89 -c svout.f
/usr/bin/f77: Illegal option: -cg89
make[1]: *** [svout.o] Error 255
make[1]: Leaving directory `/home/rkd/ARPACK/UTIL'
Making lib in /home/rkd/ARPACK/SRC
make[1]: Entering directory `/home/rkd/ARPACK/SRC'
Makefile:50: warning: overriding commands for target `.f.o'
../ARmake.inc:95: warning: ignoring old commands for target `.f.o'
f77 -O -cg89 -c sgetv0.f
/usr/bin/f77: Illegal option: -cg89
make[1]: *** [sgetv0.o] Error 255
make[1]: Leaving directory `/home/rkd/ARPACK/SRC'
ranlib /home/rkd/ARPACK/libarpack_SUN4.a
ranlib: '/home/rkd/ARPACK/libarpack_SUN4.a': No such file
make: *** [arpacklib] Error 1
Unfortunately I am not finding any other suggestions in this thread and it seems the problem posed by StudMuffin is solved now. Could somebody suggest me what can be done.
help please, I want to install ARPACK for the aeroelastic code ASWING, and I have the same problem.....cg89 error 255, I am searching some solution about 2 weeks and nothing, PLEASE HELP!!!!
help please, I want to install ARPACK for the aeroelastic code ASWING, and I have the same problem.....cg89 error 255, I am searching some solution about 2 weeks and nothing, PLEASE HELP!!!!
I'm posting this solution just to remove the pain from this problem. If you are using Ubuntu, you need to change the "MAKE=/bin/make" line in Makefile to "MAKE=/usr/bin/make". Moreover, you should remove the -cg89 option in the line "FFLAGS = -O -cg89", since this option is only for SPARC V7 architectures. That would relieve the pain!
Therefore, you have the following changes in Makefile:
I am struggling with the same thing as the above question.
I am trying to install ARPACK on ubuntu 12.10. I am fairly new to linux but have managed to install other libraries.
Any help would be much appreciated.
I have downloaded BLAS separately and it is in the directory called fluidity-4.1.9 which is also where ARPACK is.
I downloaded and unzipped the patch.gz also.
This is the error I get:
make[1]: Entering directory `/home/marie/fluidity-4.1.9/ARPACK'
Unknown target single, try: make help
Unknown target double, try: make help
Unknown target complex, try: make help
Unknown target complex16, try: make help
make[1]: Leaving directory `/home/marie/fluidity-4.1.9/ARPACK'
/bin/sh: 4: cd: can't cd to home/marie/fluidity-4.1.9/ARPACK/LAPACK
Making lib in home/marie/fluidity-4.1.9/ARPACK/LAPACK
make[1]: Entering directory `/home/marie/fluidity-4.1.9'
make[1]: *** No rule to make target `single'. Stop.
make[1]: Leaving directory `/home/marie/fluidity-4.1.9'
/bin/sh: 4: cd: can't cd to home/marie/fluidity-4.1.9/ARPACK/UTIL
Making lib in home/marie/fluidity-4.1.9/ARPACK/UTIL
make[1]: Entering directory `/home/marie'
make[1]: *** No rule to make target `single'. Stop.
make[1]: Leaving directory `/home/marie'
/bin/sh: 4: cd: can't cd to home/marie/fluidity-4.1.9/ARPACK/SRC
Making lib in home/marie/fluidity-4.1.9/ARPACK/SRC
make[1]: Entering directory `/home'
make[1]: *** No rule to make target `single'. Stop.
make[1]: Leaving directory `/home'
ranlib home/marie/fluidity-4.1.9/ARPACK/libarpack_SUN4.a
ranlib: 'home/marie/fluidity-4.1.9/ARPACK/libarpack_SUN4.a': No such file
make: *** [arpacklib] Error 1
my ARmake.inc file I have changed like this
# %---------------------------------%
# | SECTION 1: PATHS AND LIBRARIES |
# %---------------------------------%
#
#
# %--------------------------------------%
# | You should change the definition of |
# | home if ARPACK is built some place |
# | other than your home directory. |
# %--------------------------------------%
#
home = $/home/marie/fluidity-4.1.9/ARPACK
#
# %--------------------------------------%
# | The platform identifier to suffix to |
# | the end of library names |
# %--------------------------------------%
#
PLAT = SUN4
#
# %------------------------------------------------------%
# | The directories to find the various pieces of ARPACK |
# %------------------------------------------------------%
#
BLASdir = $/home/marie/fluidity-4.1.9/BLAS
LAPACKdir = $(home)/LAPACK
UTILdir = $(home)/UTIL
SRCdir = $(home)/SRC
#
DIRS = $(BLASdir) $(LAPACKdir) $(UTILdir) $(SRCdir)
#
# %-------------------------------------------------------------------%
# | Comment out the previous line and uncomment the following |
# | if you already have the BLAS and LAPACK installed on your system. |
# | NOTE: ARPACK assumes the use of LAPACK version 2 codes. |
# %-------------------------------------------------------------------%
#
#DIRS = $(UTILdir) $(SRCdir)
#
# %---------------------------------------------------%
# | The name of the libraries to be created/linked to |
# %---------------------------------------------------%
#
ARPACKLIB = $(home)/libarpack_$(PLAT).a
LAPACKLIB =
BLASLIB =
#
ALIBS = $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB)
#
#
# %---------------------------------------------------------%
# | SECTION 2: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
#
#
# %------------------------------%
# | Make our own suffixes' list. |
# %------------------------------%
#
.SUFFIXES:
.SUFFIXES: .f .o
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.f.o:
@$(ECHO) Making $@ from $<
@$(FC) -c $(FFLAGS) $<
#
# %-----------------------------------------%
# | Various compilation programs and flags. |
# | You need to make sure these are correct |
# | for your system. |
# %-----------------------------------------%
#
FC = f77
FFLAGS = -O -cg89
LDFLAGS =
CD = cd
ECHO = echo
LN = ln
LNFLAGS = -s
MAKE = /usr/bin/make
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
#
# %----------------------------------------------------------------%
# | The archiver and the flag(s) to use when building an archive |
# | (library). Also the ranlib routine. If your system has no |
# | ranlib, set RANLIB = touch. |
# %----------------------------------------------------------------%
#
AR = ar
ARFLAGS = rv
#RANLIB = touch
RANLIB = ranlib
#
# %----------------------------------%
# | This is the general help target. |
# %----------------------------------%
Any help would be much appreciate as to solve this.
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,399
Rep:
Post # 7, @The_curious_Pear : Welcome to LQ.
Installing arpack in Ubuntu 12.10 :
sudo apt-get install libarpack2-dev libparpack2-dev
.. These packages will be installed automatically as dependencies :
libblas-dev, liblapack-dev, mpi-default-dev .
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,399
Rep:
# 9 .
Quote:
Is there something else that I am doing wrong ?
Probably.
You have installed blas manually. Not required as you already have it :
{ libblas-dev, liblapack-dev }.
And you are trying to install arpack. Which is also installed :
{ libarpack2-dev libparpack2-dev }.
Please explain why you want the manually installed blas + arpack :
There may be a reason that I don't know about.
I installed BLAS manually and also lapack-3.4.2 before I realised that ARPACK was also needed for the adaptive mesh package called Fluidity that I need to use.
I realise that for ARPACK you need LAPACK-2 not three which is why I only put in where to find BLAS.
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,399
Rep:
Found this : How to install fluidity-4.1.9.1 with $ sudo apt-get install: https://launchpad.net/fluidity
sudo apt-add-repository ppa:fluidity-core/ppa
sudo apt-get update
sudo apt-get -y install fluidity
OK in Ubuntu 12.10 - 32bits and Ubuntu 12.10 - 64bits.
Providing /usr/bin/< 62 files>
I met similar problem. It seems that it is a very tiny format problem.
For the command:
home = $/home/marie/fluidity-4.1.9/ARPACK
you just need to change to
home = $(HOME)/fluidity-4.1.9/ARPACK
that is how I solved my problem. Good Luck. I am very new to this software and using ubuntu.
And I suggest you move the ARPACK folder to home folder.
Quote:
Originally Posted by The_curious_Pear
I am struggling with the same thing as the above question.
I am trying to install ARPACK on ubuntu 12.10. I am fairly new to linux but have managed to install other libraries.
Any help would be much appreciated.
I have downloaded BLAS separately and it is in the directory called fluidity-4.1.9 which is also where ARPACK is.
I downloaded and unzipped the patch.gz also.
This is the error I get:
make[1]: Entering directory `/home/marie/fluidity-4.1.9/ARPACK'
Unknown target single, try: make help
Unknown target double, try: make help
Unknown target complex, try: make help
Unknown target complex16, try: make help
make[1]: Leaving directory `/home/marie/fluidity-4.1.9/ARPACK'
/bin/sh: 4: cd: can't cd to home/marie/fluidity-4.1.9/ARPACK/LAPACK
Making lib in home/marie/fluidity-4.1.9/ARPACK/LAPACK
make[1]: Entering directory `/home/marie/fluidity-4.1.9'
make[1]: *** No rule to make target `single'. Stop.
make[1]: Leaving directory `/home/marie/fluidity-4.1.9'
/bin/sh: 4: cd: can't cd to home/marie/fluidity-4.1.9/ARPACK/UTIL
Making lib in home/marie/fluidity-4.1.9/ARPACK/UTIL
make[1]: Entering directory `/home/marie'
make[1]: *** No rule to make target `single'. Stop.
make[1]: Leaving directory `/home/marie'
/bin/sh: 4: cd: can't cd to home/marie/fluidity-4.1.9/ARPACK/SRC
Making lib in home/marie/fluidity-4.1.9/ARPACK/SRC
make[1]: Entering directory `/home'
make[1]: *** No rule to make target `single'. Stop.
make[1]: Leaving directory `/home'
ranlib home/marie/fluidity-4.1.9/ARPACK/libarpack_SUN4.a
ranlib: 'home/marie/fluidity-4.1.9/ARPACK/libarpack_SUN4.a': No such file
make: *** [arpacklib] Error 1
my ARmake.inc file I have changed like this
# %---------------------------------%
# | SECTION 1: PATHS AND LIBRARIES |
# %---------------------------------%
#
#
# %--------------------------------------%
# | You should change the definition of |
# | home if ARPACK is built some place |
# | other than your home directory. |
# %--------------------------------------%
#
home = $/home/marie/fluidity-4.1.9/ARPACK
#
# %--------------------------------------%
# | The platform identifier to suffix to |
# | the end of library names |
# %--------------------------------------%
#
PLAT = SUN4
#
# %------------------------------------------------------%
# | The directories to find the various pieces of ARPACK |
# %------------------------------------------------------%
#
BLASdir = $/home/marie/fluidity-4.1.9/BLAS
LAPACKdir = $(home)/LAPACK
UTILdir = $(home)/UTIL
SRCdir = $(home)/SRC
#
DIRS = $(BLASdir) $(LAPACKdir) $(UTILdir) $(SRCdir)
#
# %-------------------------------------------------------------------%
# | Comment out the previous line and uncomment the following |
# | if you already have the BLAS and LAPACK installed on your system. |
# | NOTE: ARPACK assumes the use of LAPACK version 2 codes. |
# %-------------------------------------------------------------------%
#
#DIRS = $(UTILdir) $(SRCdir)
#
# %---------------------------------------------------%
# | The name of the libraries to be created/linked to |
# %---------------------------------------------------%
#
ARPACKLIB = $(home)/libarpack_$(PLAT).a
LAPACKLIB =
BLASLIB =
#
ALIBS = $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB)
#
#
# %---------------------------------------------------------%
# | SECTION 2: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
#
#
# %------------------------------%
# | Make our own suffixes' list. |
# %------------------------------%
#
.SUFFIXES:
.SUFFIXES: .f .o
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.f.o:
@$(ECHO) Making $@ from $<
@$(FC) -c $(FFLAGS) $<
#
# %-----------------------------------------%
# | Various compilation programs and flags. |
# | You need to make sure these are correct |
# | for your system. |
# %-----------------------------------------%
#
FC = f77
FFLAGS = -O -cg89
LDFLAGS =
CD = cd
ECHO = echo
LN = ln
LNFLAGS = -s
MAKE = /usr/bin/make
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
#
# %----------------------------------------------------------------%
# | The archiver and the flag(s) to use when building an archive |
# | (library). Also the ranlib routine. If your system has no |
# | ranlib, set RANLIB = touch. |
# %----------------------------------------------------------------%
#
AR = ar
ARFLAGS = rv
#RANLIB = touch
RANLIB = ranlib
#
# %----------------------------------%
# | This is the general help target. |
# %----------------------------------%
Any help would be much appreciate as to solve this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.