04-30-2009
--prefix question
OK, now I just feel plain silly asking this. But I am very much a beginner at compiling and installing Unix software, so...
When setting the prefix, do you also have to specify the directory the files reside in? For example, lets say I am installing cURL in /usr/local
Would I set the prefix as:
--prefix=/usr/local/cURL
or
--prefix=/usr/local
I ask because I was doing it the second way, that is:
--prefix=/usr/local
and didn't have any problems.
Then I tried installing Apache2 in /usr/local and set the prefix as:
--prefix=/usr/local
Well after running make install, I had all of the Apache2 directories in /usr/local rather than:
/usr/local/apache2
What a mess that was!
So in the prefix flag is it necessary to specify the path and the directory to put the files in or does it depend upon what is being installed?
Thanks!
~Robert
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've got a bunch of files called oldabc, olddef etc.
i want to copy these to be abc, def....
I can do this with file extensions....but can get the logic to work for prefixes. All the files I am interested in have a prefix of 'old'.
This loop is no good for me....it looks at the content... (2 Replies)
Discussion started by: peter.herlihy
2 Replies
2. Shell Programming and Scripting
I'm trying to put together a shell script that will append specific prefixes based on the content of filenames. I think I have this part down. However, I want to append before that part a process that will remove the current prefix before it renames the files with the new prefix.
For example,... (6 Replies)
Discussion started by: HLee1981
6 Replies
3. UNIX for Dummies Questions & Answers
I got some job running on Sun Unix system, which sends the email to outlook client on windows after completion.
Few of the emails are coming with SUSPECT: prefixes.
I am using unix command mailx to send the message. Messages are simple text
Any idea on this
Thanks
Ashok (1 Reply)
Discussion started by: akrathi
1 Replies
4. Shell Programming and Scripting
Hi
Input File:
export NAME='AA.BB.CC'
export FILE=1.2.3
AA.BB.CC
export MAIL= '1.3.3'
export char='XX.YY.ZZ'
Out File
export NAME='AA/BB/CC'
export FILE=1.2.3
AA.BB.CC
export MAIL= '1.3.3'
export char='XX/YY/ZZ'
Only the Lines which have export and have alphabets after =... (9 Replies)
Discussion started by: pbsrinivas
9 Replies
5. Shell Programming and Scripting
Hi,
I have a variable, which contains comma separated values. Something like.
StringA="abc,def,ghi,jkl"
I want to apply prefix and suffix to each value in the string without using any loops.
Say if Prefix is Pre_ and Suffix is _Suf then I need to get
... (1 Reply)
Discussion started by: tostay2003
1 Replies
6. Shell Programming and Scripting
Remove prefix using awk
File:
nawk -F"|" '{if ($1 ~ /^xyz./) print; else { gsub(.*\..*, \..*, $1) ;print }}' file
Error:
ouput required: (5 Replies)
Discussion started by: pinnacle
5 Replies
7. Shell Programming and Scripting
I want an integer to be prefix with some zeros so that it makes the integer 5 digit always:
For eg: if the digit is 8 i need 00008
if the digit is 8976 ans sud be 08976.
Could anyone say simple and efficient commands to this in ksh.
Thanks a lot... (4 Replies)
Discussion started by: PRKS
4 Replies
8. Shell Programming and Scripting
Hello everyone,
I want to remove only prefix ME_ from all the values that are present in the FILEA. Below code I'm using for this.
sed 's/ME\_//g' FILEA > FILEB
Using the above code, all ME_ values are getting removed from the file. But the problem here is I want to remove only Prefix ME_... (4 Replies)
Discussion started by: ed_9
4 Replies
9. UNIX for Advanced & Expert Users
Hi,
I want to add prefix and suffix on line# 205 using SED or AWK and want to change on the same file without creating new file.
This command will be used in the bash script
Am using Bash shell
Regards
Nayaj (3 Replies)
Discussion started by: Nayaj
3 Replies
10. Shell Programming and Scripting
Dear All,
assume i have a file with content:
<Start>6000</Start>
<Stop>7599</Stop>
the output is:
6000
7000
7100
7200
7300
7400
7599
how should we use any awk, sed, perl can do this task, means to extract the uniq prefixes from the start and stop prefix.
Thanks
Jimmy (3 Replies)
Discussion started by: jimmy_y
3 Replies
LEARN ABOUT DEBIAN
orbit2-config
ORBIT2-CONFIG(1) General Commands Manual ORBIT2-CONFIG(1)
NAME
orbit2-config - helper script for building with ORBit2
SYNOPSIS
orbit2-config [ --libs ] [ --cflags ] [ --prefix=dir ] [ --exec-prefix=dir ] [ --use-service=service ] [ client | server ]
orbit2-config [ --version ] [ --help ]
DESCRIPTION
orbit2-config is a tool that is used to determine the compiler and linker flags that should be used to compile and link programs that use
the orbit2 library. It is also used internally by the .m4 macros for GNU autoconf that are included with orbit2.
The argument client is used for compiling an orbit2 client, and server for compiling an orbit2 server. In most cases, you will use one (or
both) of the options --cflags or --libs (depending on whether you are compiling or linking.
OPTIONS
orbit2-config accepts the following options:
--version
Print the currently installed version of library on the standard output.
--help Print a usage summary.
--cflags
Print the compiler flags that are necessary to compile a program using the specified library.
--libs Print the linker flags that are necessary to link with the specified library.
--prefix=PREFIX
If specified, use PREFIX instead of the installation prefix that library was built with when computing the output for the --cflags
and --libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified
before any --libs or --cflags options.
--exec-prefix=PREFIX
If specified, use PREFIX instead of the installation exec prefix that library was built with when computing the output for the
--cflags and --libs options. This option must be specified before any --libs or --cflags options.
--use-service=SERVICE
If specified, provide additional flags (if any) for using the specified service. Known values for SERVICE are: module CosNaming,
interfaces LNameComponent, LName.
SEE ALSO
orbit-idl-2(1), /usr/share/doc/liborbit2-dev, http://orbit-resource.sourceforge.net, http://www.omg.org.
AUTHOR
Copyright (C) 2001, 2002 Dick Porter <dick@acm.org> and Elliot Lee <sopwith@redhat.com>
This manual was originally written for orbit2-config by Chris Waters <xtifr@debian.org> for Debian GNU/Linux.
Version 2.3.100 18 December 2001 ORBIT2-CONFIG(1)