All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
SFU compile problem
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
SFU compile problem - Aug. 25, '06, 10:54:38 AM
|
|
|
cougar3721
Posts: 2
Joined: Aug. 25, '06,
Status: offline
|
Hello,
I am a beginner on SFU 3.5 (Service for Unix) and Unix. I met a problem when I tried to compile two Unix programs in SFU. Please see the following information for your reference. I think I have installed all components of SFU. Could you please help me check what the problem is?
Thank you very much!
Harry
&&&&&&&&& Program 1 &&&&&&&&&&&&&&&&&&&&&&&&&
% cd units-1.74/units-1.74
% ls
COPYING README getopt.c parse.y units.dvi
ChangeLog aclocal.m4 getopt.h strfunc.c units.h
INSTALL ansi2knr.1 getopt1.c texi2man units.info
Makefile.dos ansi2knr.c install-sh units.c units.man
Makefile.in configure mkinstalldirs units.dat units.texinfo
NEWS configure.in parse.tab.c units.doc
% ./configure
creating cache ./config.cache
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables.
&&&&&&&&& Program 2 &&&&&&&&&&&&&&&&&&&&&&&&&
% make
PEDSTATS Source Distribution
This Makefile will compile and install pedstats on your system
Type... To...
make help Display this help screen
make all Compile pedstats
make install Install binaries in /usr/local/bin
make install INSTALLDIR=directory_for_binaries
Install binaries in directory_for_binaries
make clean Delete temporary files
% make help
PEDSTATS Source Distribution
This Makefile will compile and install pedstats on your system
Type... To...
make help Display this help screen
make all Compile pedstats
make install Install binaries in /usr/local/bin
make install INSTALLDIR=directory_for_binaries
Install binaries in directory_for_binaries
make clean Delete temporary files
% make all
mkdir executables
ar -cr libsrc/lib-goncalo.a libsrc/Error.o libsrc/IBD.o libsrc/IntArray.o libsrc
/LongArray.o libsrc/StringHash.o libsrc/Hash.o libsrc/MapFunction.o libsrc/MathG
old.o libsrc/MathMatrix.o libsrc/MathStats.o libsrc/MathVector.o libsrc/Paramete
rs.o libsrc/Pedigree.o libsrc/PedigreeAlleleFreq.o libsrc/PedigreeDescription.o
libsrc/PedigreeFamily.o libsrc/PedigreeGlobals.o libsrc/SimplePairs.o libsrc/Ped
igreePerson.o libsrc/QuickIndex.o libsrc/Random.o libsrc/Sort.o libsrc/PedigreeP
airs.o libsrc/StringArray.o libsrc/StringBasics.o libsrc/StringMap.o libsrc/Fort
ranFormat.o libsrc/GenotypeLists.o libsrc/Kinship.o libsrc/PedigreeLoader.o libs
rc/PedigreeTwin.o libsrc/PedigreeTrim.o
ar: not found
*** Error code 1
Stop.
|
|
|
RE: SFU compile problem - Aug. 25, '06, 11:20:39 AM
|
|
|
markfunk
Posts: 670
Joined: Mar. 31, '03,
Status: offline
|
you need a C compiler installed on your system.
Either the Microsoft MSVC compiler or the Interix gcc compiler.
The Interix gcc compiler can be installed when you install SFU3.5.
You have to select all the GNU and SDK components.
The Microsoft compiler can be obtained from Microsoft.
This has to be installed before you install SFU3.5.
|
|
|
RE: SFU compile problem - Aug. 25, '06, 1:34:39 PM
|
|
|
cougar3721
Posts: 2
Joined: Aug. 25, '06,
Status: offline
|
Dear Markfunk,
Thank you very much for your reply. I re-installed the SFU and gcc was included. However, it still doesn't work. The following information is enclosed for your reference. I am using windows xp and I select all features of SFU when I installed it.
The unix probelm was downloaded from the following link.
http://www.ee.surrey.ac.uk/Teaching/Unix/unix7.html
Thanks!
Harry
% cd units-1.74
% ls
units-1.74
% cd units-1.74
% ls
COPYING README getopt.c parse.y units.dvi
ChangeLog aclocal.m4 getopt.h strfunc.c units.h
INSTALL ansi2knr.1 getopt1.c texi2man units.info
Makefile.dos ansi2knr.c install-sh units.c units.man
Makefile.in configure mkinstalldirs units.dat units.texinfo
NEWS configure.in parse.tab.c units.doc
% ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables.
quote:
ORIGINAL: markfunk
you need a C compiler installed on your system.
Either the Microsoft MSVC compiler or the Interix gcc compiler.
The Interix gcc compiler can be installed when you install SFU3.5.
You have to select all the GNU and SDK components.
The Microsoft compiler can be obtained from Microsoft.
This has to be installed before you install SFU3.5.
< Message edited by cougar3721 -- Aug. 25, '06, 2:21:21 PM >
|
|
|
RE: SFU compile problem - Aug. 27, '06, 12:48:46 PM
|
|
|
markfunk
Posts: 670
Joined: Mar. 31, '03,
Status: offline
|
So now that gcc is installed, you need to figure out why it's not working.
Try compiling some small program by hand and see what messages you get.
This will help narrow down your problem.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|