Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok the program im trying to install is called dms. Its used for computing the surface area of molecules(if you care). Im trying to install one of its libraries and it aint working. Anyways ill list everything for ya so you all can see.
From the website I got it from.
You need to have the C-language PDB-reading library from the
UCSF Computer Graphics Laboratory installed. You can get it from:
THe ftp site ftp. cgl. ucsf. edu/ pub/ libpdb.shar
(Sorry cuz im a new poster they think its spam)
So that is the shar file i got libpdb.shar. I then used sh < libpdb.shar
to extract. This is what the Makefile looks like.
#
# For machines that don't have lint, remove $(LINTLIB) from the
# "all" target.
#
# On BSD machines, LINTOPT should be '-C', RANLIB should be 'ranlib'
#
# On System V machines, LINTOPT should be '-o $(NOTHING)',
# RANLIB should be ':'
#
SHELL = /bin/sh
RANLIB = :
NOTHING =
LINTOPT = -o $(NOTHING)
After i extract the libpdb.shar file I then wanted to install. The problem i seem to be having has to do with the line that
says ............ install -F /usr/local/lib $(LIBARCH)
This is the error i get
[root@tmp000feaebd7d5 dms]# make install
install -f /usr/local/lib libpdb.a
install: invalid option -- F
Try `install --help' for more information.
make: *** [install] Error 1
Now i read a little online and it seems the -f option or force copy does not exist in linux it is just in unix, is that correct?
All i want is a replacement for that line or a way to install using that command with a different option. It seems that install is mainly used to update files that already exist. My problem is that I am installing for the first time where something like the -f option for install would be needed. Im sure there is some exceedingly simple solution, I just cant figure out what it is.
After playing with it on my machine, it seems that it's just trying to copy the libpdb.a file to /usr/local/lib You can manually do that, or you can change the order of the install to have the directory second after the declared variable $LIBARCH
Also, I ran make (alone) first, just to see if there were previous errors before trying to install.
But, I still fail to build dms. I'll toy with it a bit more and post back anything I get.
Ok, after some tooling, you also need to copy the pdb.h file to /usr/local/include. This directory may not exist, you may have to create it. THEN, you can go back into the dms directory, and finally run make in there to get the target's all taken care of.
Im using fedora core three. First off to make this clear this is just the library im installing. Anyways I manually copied the libpdb.a file and the pdb.h file to where you said. I got a problem with lint as is says at the top of the Makefile, but i dont have it so i removed that line. So thats solved. But i still get a problem with the install -f line. What option should i use there?
You don't necessarily have to install. You can just make, it will create the libpdb.a file, and you can manually copy it to /usr/local/lib
If you are really concerned with this, do the following:
edit the Makefile, rearrange the /usr/local/lib and $LIBARCH, in other words, switch them places. Then simply remove the -f from the install target. Exit your editor, save the file, and re-run make install.
Ok great I got the library installed.(Still had problems but the stuff you told me I guess solved it) Installed dms and I got my program working. Maybe i will get my PHD after all, hehe. The pictures this thing outputs are awesome its quite slick. To bad i cant attach a .jpg, cuz it just looks cool. Anyways thanks again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.