Discussion:
Installation of php interface to fann
Kevin White
2007-03-07 12:12:32 UTC
Permalink
Hello.

Noob to fann. Just installed pear, and I find the "pear install fann"
instruction results in:
No releases available for package "pear.php.net/fann" - package
pecl/fann can be
installed with "pecl install fann"
Cannot initialize 'fann', invalid or missing package file
Package "fann" is not valid
install failed

So, I went to http://pecl.php.net/fann, as described, but I was unable
to find whatever URI I am supposed to use. I downloaded the file, but
couldn't figure out how I am supposed to install it using pear, or
figure out how to put a URI in the pear command such that it would work.

C:\PHP>pear install http://pecl.php.net/fann
downloading fann ...
Starting to download fann (Unknown size)
.....done: 7,959 bytes
XML error: EntityRef: expecting ';' at line 86
Download of "http://pecl.php.net/fann" succeeded, but it is not a valid
package
archive
Invalid or missing remote package file
Package "http://pecl.php.net/fann" is not valid
install failed

Anyway if anyone has any helpful hints, please let me know -- I am
anxious to get started.

Thanks,

-Kevin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Kevin White
2007-03-09 20:01:10 UTC
Permalink
Hello.

Noob to fann. Just installed pear, and I find the "pear install fann"
instruction results in:
No releases available for package "pear.php.net/fann" - package
pecl/fann can be
installed with "pecl install fann"
Cannot initialize 'fann', invalid or missing package file
Package "fann" is not valid
install failed

So, I went to http://pecl.php.net/fann, as described, but I was unable
to find whatever URI I am supposed to use. I downloaded the file, but
couldn't figure out how I am supposed to install it using pear, or
figure out how to put a URI in the pear command such that it would work.

C:\PHP>pear install http://pecl.php.net/fann
downloading fann ...
Starting to download fann (Unknown size)
.....done: 7,959 bytes
XML error: EntityRef: expecting ';' at line 86
Download of "http://pecl.php.net/fann" succeeded, but it is not a valid
package
archive
Invalid or missing remote package file
Package "http://pecl.php.net/fann" is not valid
install failed

I also tried:
C:\PHP>pear install http://pecl.php.net/get/fann
downloading fann-0.1.1.tgz ...
Starting to download fann-0.1.1.tgz (9,509 bytes)
.....done: 9,509 bytes
3 source files, building
ERROR: The DSP fann.dsp does not exist.

Also, there is a link:
If you cannot install FANN-PHP using PEAR, you can try following the
(obsolete) instructions at
http://www.cs.utexas.edu/users/UTCS/online-docs/php/pear/faq.install-pecl.html.


But alas, the link is broken. If anyone has any useful information, or
the obsolete instructions, it would be a great help.

Please let me know -- I am anxious to get started.

Thanks,

-Kevin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Seth Price
2007-03-09 20:07:06 UTC
Permalink
I haven't installed FANN for PHP, but here's normal routine if things
aren't working via 'pear install fann' for my setup:

- Download package.tgz
- Uncompress and enter package directory.
- run 'phpize'
- './configure && make && sudo make install'
- Tweak php.ini to load your package.so

Have you tried something like this?
~Seth
Post by Kevin White
Hello.
Noob to fann. Just installed pear, and I find the "pear install fann"
No releases available for package "pear.php.net/fann" - package
pecl/fann can be
installed with "pecl install fann"
Cannot initialize 'fann', invalid or missing package file
Package "fann" is not valid
install failed
So, I went to http://pecl.php.net/fann, as described, but I was unable
to find whatever URI I am supposed to use. I downloaded the file, but
couldn't figure out how I am supposed to install it using pear, or
figure out how to put a URI in the pear command such that it would work.
C:\PHP>pear install http://pecl.php.net/fann
downloading fann ...
Starting to download fann (Unknown size)
.....done: 7,959 bytes
XML error: EntityRef: expecting ';' at line 86
Download of "http://pecl.php.net/fann" succeeded, but it is not a valid
package
archive
Invalid or missing remote package file
Package "http://pecl.php.net/fann" is not valid
install failed
C:\PHP>pear install http://pecl.php.net/get/fann
downloading fann-0.1.1.tgz ...
Starting to download fann-0.1.1.tgz (9,509 bytes)
.....done: 9,509 bytes
3 source files, building
ERROR: The DSP fann.dsp does not exist.
If you cannot install FANN-PHP using PEAR, you can try following the
(obsolete) instructions at
http://www.cs.utexas.edu/users/UTCS/online-docs/php/pear/
faq.install-pecl.html.
But alas, the link is broken. If anyone has any useful
information, or
the obsolete instructions, it would be a great help.
Please let me know -- I am anxious to get started.
Thanks,
-Kevin
----------------------------------------------------------------------
---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?
page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Kevin White
2007-03-09 20:17:51 UTC
Permalink
Ok, so how do I run/find phpize, and what is sudo? Is ./configure
supposed to do something special on a windows machine? I just get errors.

C:\PHP\ext\fann>phpize
'phpize' is not recognized as an internal or external command,
operable program or batch file.

C:\PHP\ext\fann>./configure
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\PHP\ext\fann>sudo make install
'sudo' is not recognized as an internal or external command,
operable program or batch file.

Thanks,

-Kevin
Post by Seth Price
I haven't installed FANN for PHP, but here's normal routine if things
- Download package.tgz
- Uncompress and enter package directory.
- run 'phpize'
- './configure && make && sudo make install'
- Tweak php.ini to load your package.so
Have you tried something like this?
~Seth
Post by Kevin White
Hello.
Noob to fann. Just installed pear, and I find the "pear install fann"
No releases available for package "pear.php.net/fann" - package
pecl/fann can be
installed with "pecl install fann"
Cannot initialize 'fann', invalid or missing package file
Package "fann" is not valid
install failed
So, I went to http://pecl.php.net/fann, as described, but I was unable
to find whatever URI I am supposed to use. I downloaded the file, but
couldn't figure out how I am supposed to install it using pear, or
figure out how to put a URI in the pear command such that it would work.
C:\PHP>pear install http://pecl.php.net/fann
downloading fann ...
Starting to download fann (Unknown size)
.....done: 7,959 bytes
XML error: EntityRef: expecting ';' at line 86
Download of "http://pecl.php.net/fann" succeeded, but it is not a valid
package
archive
Invalid or missing remote package file
Package "http://pecl.php.net/fann" is not valid
install failed
C:\PHP>pear install http://pecl.php.net/get/fann
downloading fann-0.1.1.tgz ...
Starting to download fann-0.1.1.tgz (9,509 bytes)
.....done: 9,509 bytes
3 source files, building
ERROR: The DSP fann.dsp does not exist.
If you cannot install FANN-PHP using PEAR, you can try following the
(obsolete) instructions at
http://www.cs.utexas.edu/users/UTCS/online-docs/php/pear/faq.install-pecl.html.
But alas, the link is broken. If anyone has any useful information, or
the obsolete instructions, it would be a great help.
Please let me know -- I am anxious to get started.
Thanks,
-Kevin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fann-general mailing list
https://lists.sourceforge.net/lists/listinfo/fann-general
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Loading...