Jump to content


Photo

Trouble Installing with PEAR/PECL


  • Please log in to reply
4 replies to this topic

#1 Demonslay

Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 973 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 05 May 2007 - 02:24 PM

Well, I've just recently figured, why not, and installed PEAR and PECL with my PHP and such.

When I try to install packages, however, I get one of these two errors from my command prompt.

Here are the full reports of what is displayed in my command prompt.
(Commands in italics, error in bold)

C:\PHP5>pecl install imagick
downloading imagick-0.9.13.tgz ...
Starting download imagick-0.9.13.tgz (71,869 bytes)
..................done: 71,869 bytes
6 source files, building
running: msdev imagick.dsp /MAKE "imagick - Release"
ERROR: Did not understand the completion status returned from msdev.exe

C:\PHP5>pecl install uploadprogress
downloading uploadprogress-0.3.0.tgz ...
Starting to download uploadprogress-0.3.0.tgz (4,677 bytes)
.....done: 4,677 bytes
3 source files, building
ERROR: The DSP uploadprogress.dsp does not exist.


I've tried this about 5 times now, and have even forced it to install the latest alpha and beta releases, but I always get the same errors.
It downloads fine, I can use 'pecl download imagick' just fine, and it will have the tgz file in my PHP5 folder, but I can't get it to install correctly.


Does anyone know how to correct these errors, or even a way I can install them by myself, without the use of PECL? I couldn't figure it out myself because the packages have files with extensions like .c and .h that I have no clue on what to do with them, as I assume they are supposed to be parsed and executed by PECL itself.

#2 rc69

rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 06 May 2007 - 01:41 AM

.c and .h files typically refer to source files that need to be compiled before they can be executed. I bet you can open them up in notepad just like you can any .html or .php file.

I don't know much about PEAR and PECL, but typically extensions to PHP (in windows at least) are compiled .dll files. Did you download the right files? Go back to where you downloaded them and look for "binaries" not "source" files.

And just brainstorming ideas, but if you don't have a standard installation of php (i.e. you used WAMP), then that could be another cause of your problems. By first bet is on the files you downloaded though.

-----------------
Of course, now that i have that said, i go back and actually read the errors. It looks like it actually compiles them at install time. That's really wierd.

#3 Demonslay

Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 973 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 06 May 2007 - 01:02 PM

No, I installed Apache, PHP, and MySQL completely seperate of each other. I do know how to work with PHP extensions, but I can't figure how to get these to work. When I open the .h and .c files, they look like class definition files to me, and some seem to have commands for the Zend engine itself.

I guess I'll have to see if they have regular .dll extensions for them. The only thing I'm wondering though, is whether .dll files with version 5.2.1 will work with the new PHP 5.2.2 I just upgraded to. I don't see why not, I mean its the same branch of PHP, but I'll just have to see then.


Oh, and while we're on the subject, I've been having trouble installing Imagick, the program itself.

When I try to use the Make.com file, this is what I get.

C:\ImageMagick>Make.com
(In Alert box, with titiel '16 bit MS-DOS Subsystem)
Command Prompt - Make.com
The NTVDM CPU has encountered an illegal instruction.
CS:0ddc IP:01d9 OP:63 6f 64 65 72 Chose 'Close' to terminate the application.


If I press 'Close', it terminates, but if I hit 'Ignore', it will pop up with another error of the same type, and if I Ignore that one, it goes funky and the cursor in my CMD goes haywire, jumping all over the screen, forcing me to manually close the program with the Application Manager.

When I read the readme, it tells me to go into the VisualMagick folder, and 'build' the workspace file, confgure.dsw. I don't quite get how to do this, and the configure.bat file just gives me this error.

C:\ImageMagick>VisualMagick\configure\configure.bat

C:\ImageMagick>REM Environment variables for Visual Studio must be already set

C:\ImageMagick>c1 \D__NO_MFC__ configure.cpp Shell32.lib Rcrt4.lib User32.lib
'c1' is not recognized as an internal or external command, operable program or batch file.


Apparently I need to use this program called Visual Studio? I can't seem to find anywhere to download it on the Microsoft page, or even on Google or anything. Nothing but tutorials and such, ugh.

Any idea how to get this program built? I've tried all I know, and can't get any of it to work for me.

Edited by Demonslay, 06 May 2007 - 01:13 PM.


#4 Pixel Prestige

Pixel Prestige

    Young Padawan

  • Members
  • Pip
  • 41 posts
  • Gender:Male
  • Location:Houston, TX
  • Interests:Programming<br />Development<br />Design

Posted 06 May 2007 - 02:11 PM

Demonslay,
It sounds to me like you've got the source/build installations instead of the pre-compiled (binary) installations. So you can find the precompiled versions, or if you want to compile/"make" yourself then these should be of help:

GNU Make
Make Download

Or if you just want it installed without any "make" hassle. Here are the pre-compiled (already "made") installations of imagemagick.

Imagemagick Binary Downloads
Note: This will just look like a regular program installing on your computer, but it will work server-side too. (That is if your server is the same computer)

I hope this helps, have a great day. :P

Edited by Pixel Prestige, 06 May 2007 - 02:24 PM.


#5 Demonslay

Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 973 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 06 May 2007 - 04:18 PM

Yay, thanks so much. :D

Odd how I spent quite a bit of time on that site and never found those installers, hehe.

Now I'll just get it working with PHP and I can continue with happy programming, lol.

Thanks again. :P




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users