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
claw-config
CLAW-CONFIG(1) General Commands Manual CLAW-CONFIG(1)
NAME
claw-config -- show information about installed libclaw libraries
SYNOPSIS
claw-config [library...] [--prefix] [--prefix=PREFIX] [--exec-prefix] [--exec-prefix=EPREFIX] [--version] [--libs] [--cflags]
DESCRIPTION
This manual page documents briefly the claw-config command,
claw-config is a program that shows information about the installed libclaw libraries.
OPTIONS
The following options are supported:
library The library for which the informations are displayed.
--prefix --prefix=PREFIX
Show the prefix libclaw was built with. The prefix may be overridden by passing the argument PREFIX.
--exec-prefix --exec-prefix=EPREFIX
Show the executable prefix libclaw was built with. The executable prefix may be overridden by passing the argument EPREFIX.
--version Show the version of the installed libclaw.
--libs Show the compiler flags for linking to the installed library.
--cflags Show the compiler flags for compiling against the installed library.
EXAMPLE
Display the libraries to link to in order to use the claw_graphic library.
claw-config graphic --libs
Display the compiler flags required to use all the libraries of libclaw.
claw-config all --cflags
AUTHOR
This manual page was written by Julien Jorge julien_jorge@yahoo.fr for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later
version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
CLAW-CONFIG(1)