Updating cURL [Answered]

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Updating cURL [Answered]

Postby Terror Factor » 14. June 2012 05:26

Hi all,

I've installed xampp on a bare debian system (cli only, to minimize overhead). I am planning to use it for a web application. However, that application needs cURL 7.24 or higher, and xampp only comes with 7.21.

I've been messing around with it for the last 5-6 hours, but without much succes. I can't find anything specific for cURL and xampp. However, I found out that you can recompile php for xampp, and I figured that I could change the sources of cURL included in the xampp developer package, with the latest files.
Since the tutorial (http://stackoverflow.com/questions/8740817/upgrading-php-in-xampp-for-linux) spoke of getting the latest php version, I decided to do that too, so I could follow it exactly.

However, I keep running into different errors, with missing dependencies/libraries/sources for all the default extensions that xampp uses.

Now when typing this, I figured I should have tried it with the default php sources, as I guess they are included in the developer package? (I really don't know lol, the 'new' php folder seems to contain quite a bit more than the xampp dev folder)

I also tried downloading the compiled curl file from the debian repo's, and just change it in the xampp folder, but that didn't help. Changing the curl-config file to say 'version 7.26' instead of '7.21' didn't work either.

Any help, as I am way in over my head!
Terror Factor
 
Posts: 2
Joined: 14. June 2012 05:14
XAMPP Version: 5.6.3
Operating System: Debian/W7

Re: Updating cURL

Postby JonB » 14. June 2012 06:58

Well - you basically really can't (without huge levels of knowledge) recompile Apache or PHP as it exists in XAMPP/LAMPP. Despite any propaganda. (as you have discovered)

reason: XAMPP/LAMPP is not a linux 'LAMP' stack. In order for it to be distribution/flavor agnostic, LAMPP is actually a bash script that runs everything as if it were all CLI. The linux OS (and the installer packages) have no idea what is or is not installed. And, hey, if you really, really knew how to do all that stuff - what would be the point of XAMPP? ("I" think that's a valid question)

why don't you check the beta package and see if it is up to specs for what you need:

http://www.apachefriends.org/en/xampp-beta.html

If not, I suggest using an installer package to build a traditional LAMP stack.

These are my opinions only. It is also possible that everything will work correctly without version xxx.x of whatever (cURL). Reason: no hosted systems are realistically running anything close to the very latest version/release on any particular extension/mod. Unless you are aware of an actual dependency, or its your code, you should just give it a shot IMO.

Good luck with your project.
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Updating cURL

Postby Terror Factor » 14. June 2012 16:40

Thank you for the great response!

I'll have a look at building my own lamp stack, and see how that goes.
I've also contacted the developper, and he'll send me a slightly adapted version that works with the older cURL. He develops on linux, but most of his customers will use Windows, and that package has a more recent cURL apparently.

The beta xampp also has the older cURL according to the description, so that won't help either :(

Thanks!
Terror Factor
 
Posts: 2
Joined: 14. June 2012 05:14
XAMPP Version: 5.6.3
Operating System: Debian/W7

Re: Updating cURL

Postby JonB » 14. June 2012 18:25

OK - Good Luck, I'm glad it helped clarify things a bit.

I hope things work out, let us know the outcome if you wish

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests