You are not logged in.

#1 2010-07-26 15:38:07

CaptainKirk
Member
Registered: 2009-06-07
Posts: 393

Compile C Package

I have this package in C that I want to compile so that I can get the PHP module so that I can access it from PHP. Problem is that I can't figure out how to compile it.

This is the install page for the package: http://libhdate.sourceforge.net/install.html and I have the source code ready to go, but the commands there don't work.

Hey, Kirk, you idiot--did you install a C compiler???

Yes, I also thought of that. I installed dev86 still the commands there don't work. "configure" is not found and "make" keeps saying either no targer or no rule if I do give it a target, no matter what target I give.

I am a bit lost--I don't really know anything about C sad

Any pointers?

Offline

#2 2010-07-26 15:42:23

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Compile C Package

It should be ./configure instead of configure (otherwise your path (see echo $PATH) is being searched for an executable configure).
I don't know what exactely dev86 is for, but you'll want gcc as C compiler.

Last edited by Ramses de Norre (2010-07-26 15:42:58)

Offline

#3 2010-07-26 16:57:57

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: Compile C Package

You should check that you have the "base-devel" group of packages installed

$ pacman -S base-devel

Then, you should be able to type:

$ ./configure
$ make

Last edited by tom5760 (2010-07-26 16:58:14)

Offline

#4 2010-07-26 19:31:54

CaptainKirk
Member
Registered: 2009-06-07
Posts: 393

Re: Compile C Package

Ramses de Norre wrote:

It should be ./configure instead of configure

That was it.

Please tell me where I can pick up my award for idiot of the day.

Thanks for your help.

I see that I have gcc already.

Only problem now is that it didn't make hdate.so the PHP module. OK, I will try to work on that part now. smile

Offline

#5 2010-07-27 06:39:23

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Compile C Package

CaptainKirk wrote:
Ramses de Norre wrote:

It should be ./configure instead of configure

That was it.

Please tell me where I can pick up my award for idiot of the day.

Thanks for your help.

I see that I have gcc already.

Only problem now is that it didn't make hdate.so the PHP module. OK, I will try to work on that part now. smile

You know why configure wasn't found when you called it right?
Because it is a local script that is not in the PATH. So you have to call it like ./configure to tell the shell that you are referring to "this" location not the PATH.
Just thought I'd point that out. It's one thing to find the answer but it's better when you learn a lesson from it wink


neutral

Offline

#6 2010-07-27 07:05:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Compile C Package

sand_man wrote:

Just thought I'd point that out.

It had already been pointed out.... smile

No harm in being thorough, I guess.

Offline

#7 2010-07-27 10:53:12

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Compile C Package

tomk wrote:
sand_man wrote:

Just thought I'd point that out.

It had already been pointed out.... smile

No harm in being thorough, I guess.

*sigh* pass the idiot award to me


neutral

Offline

Board footer

Powered by FluxBB