Solved

make install

Posted on 2007-04-04
2
252 Views
Last Modified: 2010-04-20
mkdir Test-n.m-build
cd Test-n.m-build
../Test-n.m/configure --prefix=installdir
make
make check
make install

what is those, i have a C++ code and need to make somthing installer above for that C code. how to do that, i have no idea. can anyone pls help me?
0
Comment
Question by:marchent
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 250 total points
ID: 18849501
man mkdir
man cd
man make
configure is a script that get the appropriate configuration options for your environment to build a makefile
0
 
LVL 6

Assisted Solution

by:_iskywalker_
_iskywalker_ earned 250 total points
ID: 18849672
there are lots of installation strategies, most common are: Imakefile, configure, SConstruct.
Imakefile is outdated and was used for X
SConstruct is a nice python implementation of configure
configure are the standard of art nowadays.
Configure depends on some files:
autogen.sh
configure.in
Makefile.am
Makefile.in

autogen.sh
from configure.in it creates a script named configure. The exactly syntax from configure.in you can take from tutorials but also from other projects.

configure
configure make some test, like compiling files with libraries or flags, linking packages, etc. it then creates from Makefile.am and Makefile.in a Makefile.

Normally you need just to create MAkefile.am and configure.in, the autogen.sh has normally 3 lines (automake, autoconf and someother normal script). Makefile.am is based normally on the Makefile of your configuration plus some key flags and conditions to adapt it to the target system. in configure.in is the most work to be done. There you must specify which autoconf version is needed, which libraries do you need and include flies, where to install (this can  be also made in Makefile.am) and show some info about the options chossen.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now