./configure command not working


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) ./configure command not working
# 1  
Old 06-22-2011
./configure command not working

I am learning to compile UNIX software packages on my mac
I have demo123.tar package in home directory

when i enter
Code:
tar demo123
mkdir ~/ddemo123
./configure --prefix=$HOME/ddemo123

i get the error message -bash: ./configure: No such file or directory
I tried using sh and bash with ./configure, but of no avail.

Even following is not working:

Code:
./configure --help

Any clues?
**MBP, intel i5 2.44GHz, OS X Snow Leopard**
# 2  
Old 06-22-2011
That probably means that there is no configure script, check the output of ls, and that this software uses some other means to get configured (if any).
# 3  
Old 06-22-2011
Code:
tar demo123

I wouldn't expect this to do anything. What was actually typed?
# 4  
Old 06-22-2011
You are not following specific instructions that would provide the desired out come.

I could make a guess that you are doing homework, but, maybe not...

Anyway, "tar demo123" will not do much.

Here is something to think about. Even if you successfully untarred the file, where do you think the contents of that tar file would go?
The answer is, all over your home directory. Could be a couple of files, could be hundreds. Feel like sorting around your home folder to figure out what was there BEFORE you untarred. Most folks don't.

Better safe than sorry. Move the tar file to a specifically created subdirectory like "my1stproject". cd to that directory then untar the file.

Typically (at least in old-school days Smilie one would type something like:
tar -x demo123.tar ./

Hey! It's been a while! For more information about the tar command (preferably before you start this project) type:
man tar

When you have extracted the contents of the tar file, list the contents of the folder to see if there is a "configure" file in there. If so, then your configure command should then work fine.

You should know that this information you seek is not Mac specific. Give the rest of the unix.com forums a look, and use the unix.com search feature to locate information you are looking for.

We all had to learn somehow. Some of us had kindly tutors that patiently walked us through exercise after exercise, while others had someone to slap them on the back of the head for doing stupid stuff, and yet others had to smack themselves on the back of the head for doing stupid stuff.

Take your time and learn about the tools you are required to use.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute ssh command with additional terminal command to any remote user not working script

Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies

2. UNIX for Dummies Questions & Answers

Shell script not working but command works in command prompt

Hi everyone I have a problem with my script If I try directly this command /usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz It works But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies

3. Shell Programming and Scripting

Maxdepth command not working in AIX.Need alternative solution for this command

Hi All, I am trying to select 30 days older files under current directory ,but not from subdirectory using below command. find <Dir> -type f -mtime + 30 This command selecting all the files from current directory and also from sub directory . I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies

4. UNIX for Advanced & Expert Users

Working with configure file in ubuntu

Hi, I want to add the library in my configure file. i am doing it using autoconf in ubuntu. I am new to the autoconf. Can anyone please let me know how to add the library using configure file so that it can linked to my software which I am using? Thanks in advance!!!!! (0 Replies)
Discussion started by: diehard
0 Replies

5. Shell Programming and Scripting

configure from address in mailx command

Hi, I need to configure customized from address in mailx command. Can you pls tell me the option for configuring from address. Thanks Latika (9 Replies)
Discussion started by: latika
9 Replies

6. Shell Programming and Scripting

Need help! command working ok when executed in command line, but fails when run inside a script!

Hi everyone, when executing this command in unix: echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error. here is content of my script: tdbsrvr$ vi hc.sh "hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies

7. Shell Programming and Scripting

How to configure Formail command

Hi, When i type formail command , i get an error "command not found". How to configure this command so that this command works in my machine. Kindly suggest me. Thanks in advance (3 Replies)
Discussion started by: krishna_gnv
3 Replies

8. Ubuntu

./configure command Error while trying to install GCC compiler on unix machine

Hi, I need to install the GCC compiler on a my Linus machine. First step is to run the ./configure command and here we need to specify ./configure --target="target machine name (CPU type-Manufacturer-OS) or other way would be just give the command ./configure and it guesses the target name... (11 Replies)
Discussion started by: viji19812001
11 Replies

9. UNIX for Dummies Questions & Answers

How to configure the AutoComplete Command

Hello All, I'm using the Solaris 8 and I'd like to know how to configure my KSH to use the double ESC to complete the command automatically. Do you know how do it?? thanks. rgs, Paulo (1 Reply)
Discussion started by: PAulo Trombetta
1 Replies

10. Shell Programming and Scripting

How to configure mailx command??

Hi, {SunOS} I have this mailx -s command in my script and when the script is run,it throws me this message The flags you gave are used only when sending mail. Usage:mailx -eiIUdFntBNHvV!~ -T FILE -u USER -h hops -r address -s SUBJECT -f FILE users. Can you help me how i can send an... (9 Replies)
Discussion started by: kumarsaravana_s
9 Replies
Login or Register to Ask a Question