LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-05-2005, 01:51 PM   #1
denalitastic
LQ Newbie
 
Registered: May 2005
Location: cleveland
Posts: 7

Rep: Reputation: 0
installing problem


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)

OPT = -O -g
DEBUG =
CFLAGS = $(OPT) $(DEBUG)
LIBRARY = pdb

LIBARCH = lib$(LIBRARY).a
LINTLIB = llib-l$(LIBRARY).ln
OBJS = pdb_read.o pdb_sprntf.o pdb_sscanf.o pdb_write.o pdbrun.o ms.o
SRCS = pdb_read.c pdb_sprntf.c pdb_sscanf.c pdb_write.c pdbrun.c ms.c

all: $(LIBARCH) $(LINTLIB)

install: $(LIBARCH)
install -F /usr/local/lib $(LIBARCH)

$(LIBARCH): $(OBJS)
@echo "Loading $(LIBARCH) ... "
@ar cru $(LIBARCH) $(OBJS)
@$(RANLIB) $(LIBARCH)
@echo "done"

$(LINTLIB): $(SRCS) $(HDRS)
@echo "Creating $(LINTLIB) ... "
@lint $(LINTOPT)$(LIBRARY) $(SRCS)
@echo "done"

clean:; @rm -f $(OBJS)

spotless:; @rm -f $(OBJS) $(LIBARCH) $(LINTLIB)

lint: $(SRCS)
lint -u $(SRCS)

tags: $(HDRS) $(SRCS); @ctags -w $(HDRS) $(SRCS)


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.


Thank you in advance
denalitastic
 
Old 06-05-2005, 02:28 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Which distro are you using?

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.

Cool
 
Old 06-05-2005, 02:54 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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.

THEN you will have the dms binary. Woohoo!



Cool
 
Old 06-05-2005, 03:11 PM   #4
denalitastic
LQ Newbie
 
Registered: May 2005
Location: cleveland
Posts: 7

Original Poster
Rep: Reputation: 0
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?
 
Old 06-05-2005, 03:13 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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.

Cool
 
Old 06-05-2005, 03:16 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Re: installing problem

Quote:
Originally posted by denalitastic
Ok the program im trying to install is called dms.
And later on in your recent post:

Quote:
First off to make this clear this is just the library im installing
So I'm guessing you'll continue on after you get the lib taken care of with dms, and hopefully those notes will help when you get to that portion

Cool
 
Old 06-05-2005, 04:14 PM   #7
denalitastic
LQ Newbie
 
Registered: May 2005
Location: cleveland
Posts: 7

Original Poster
Rep: Reputation: 0
bingo!

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.

-denalitastic
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing module in Fedora Core 2 (2.6 kernel vs 2.4 problem?) Arodef Linux - Kernel 3 11-30-2007 03:55 PM
Problem installing new programs... KDE problem? seiyachan Mandriva 33 12-19-2005 10:18 AM
problem installing-hardware problem? LivinLarge Linux - General 3 04-28-2005 02:56 PM
Problem Installing Gentoo. (Partioning Problem) w33k Linux - Software 7 08-10-2004 11:06 PM
Problem Installing Qt...maybe OrganicX Programming 1 03-03-2003 12:34 AM


All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration