WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved]sh: ./configure not found  (Read 10362 times)

Offline Xianwen Chen

  • Full Member
  • ***
  • Posts: 142
[Solved]sh: ./configure not found
« on: May 02, 2009, 12:55:21 PM »
Hello all,

I appreciate all the hints. It turned out that there wasn't a ''configure'' file.

Have a nice day! ;)

Below was the original post:

While I was executing
Code: [Select]
./configure --prefix=/usr/local, I got this error
Code: [Select]
sh: ./configure not found.

I tried to install a number of tcz packages, but didn't help.

Any hint, please?
« Last Edit: May 03, 2009, 07:25:43 AM by Wen »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: sh: ./configure not found
« Reply #1 on: May 02, 2009, 01:00:43 PM »
It might be a bash script, try installing the bash extension?
The only barriers that can stop you are the ones you create yourself.

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: sh: ./configure not found
« Reply #2 on: May 02, 2009, 01:25:35 PM »
i have the same issue with bash installed, i tought i should install compiletc in order to get rid of it, but... i don't have compiletc for 2.0rc1

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: sh: ./configure not found
« Reply #3 on: May 02, 2009, 04:54:46 PM »
u can try the gcc-binutils extension
dCore user

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: sh: ./configure not found
« Reply #4 on: May 02, 2009, 05:51:48 PM »
What's the output of `ls -l ./configure` ?

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: sh: ./configure not found
« Reply #5 on: May 03, 2009, 03:25:46 AM »
with bash, and gcc-binutils loaded as well as glib(1&2) and glibc, i get:

Quote
tc@box:~$ ls -l ./configure
ls: ./configure: No such file or directory

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: sh: ./configure not found
« Reply #6 on: May 03, 2009, 04:42:49 AM »
You're currently in your home directory... what are you trying to do?

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: sh: ./configure not found
« Reply #7 on: May 03, 2009, 06:20:19 AM »
i am trying to build pdftk-1.12 from source. i think, i am missing something important in the process, so what i did:

1. I have pdftk-1.12 source package and have untar it in my home directory (/home/tc/) since i have nothing in it; pdftk-1.12 seems to compile fine without libgcj8-1, and i would like to try with this version of the application before going further;
2. I don't have compiletc since i am running tc-2.0.rc1 and i did not see a compiletc extension in the repositories;

I think that the point 2. is why i cannot compile pdftk-1.12, (and get the issue with ./configure) but again, i am very new to this and would appreciate help in order to practice.

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: sh: ./configure not found
« Reply #8 on: May 03, 2009, 06:49:13 AM »
compiletc is not necessary simply to execute a configure script, although the script may fail.

What it looks like to me is that you are just trying to run a script that doesn't exist. The dot at the beginning literally means the current directory.  You'll need to move into the directory that contains the configure script before running that command.

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: sh: ./configure not found
« Reply #9 on: May 03, 2009, 07:29:26 AM »
actually i re-try with following steps:

1. untar pdftk-1.12 in /home/tc/pdftk (new directory which i have built); it works;
2. completed the CXXFLAGS of the Makefile.Generic belonging to pdftk in order to make it compatible with the instructions in the wiki;
3. set the directory /usr/local in the Makefile.Base of pdftk;
4. set the path for PKG_CONFIG according to the wiki;
5. run ./configure --prefix=/usr/local and got: sh: ./configure: not found;
6. run make -f Makefile.Generic (as indicated in the pdftk website) and it works... until i got the following issue: make: *** No rule to make target '../java_libs/com/lowagie/text/pdf/pdf.a', needed by 'pdftk.o'. Stop

As it seems, pdftk needs to be compiled with the gcj compiler, or not? what do you think? thanks

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: [Solved]sh: ./configure not found
« Reply #10 on: May 03, 2009, 11:29:33 AM »
ok, i trained and figured out most of my mistakes, with the result that i can now compile correctly in TC. First issues with ./configure was related to a corrupted archive. Once i have got the right archive, everything was all right. I have to figure out now how i can solve the problem of missing libs, and try to build an extension (my first goal). thanks again