Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install failure - texy src location not found #253

Closed
acrobat opened this issue Jul 17, 2013 · 41 comments
Closed

Install failure - texy src location not found #253

acrobat opened this issue Jul 17, 2013 · 41 comments

Comments

@acrobat
Copy link

acrobat commented Jul 17, 2013

When i try to install apigen with pear, i get this error:

pear install pear.apigen.org/apigen
downloading ApiGen-2.8.0.tgz ...
Starting to download ApiGen-2.8.0.tgz (188,843 bytes)
.........................................done: 188,843 bytes
Could not download from "http://files.texy.info/Texy-2.1.0.tgz", cannot download "texy/Texy" (File http://files.texy.info:80/Texy-2.1.0.tgz not valid (received: HTTP/1.1 404 Not Found
))
Error: cannot download "texy/Texy"
apigen/ApiGen requires package "texy/Texy"
Download failed
install failed

Anyone with the same issue?

@kukulich
Copy link
Contributor

Try now. Texy PEAR channel was down.

@acrobat
Copy link
Author

acrobat commented Jul 18, 2013

Great! install went well, but now it can't load the texy lib

pear install pear.apigen.org/apigen
downloading ApiGen-2.8.0.tgz ...
Starting to download ApiGen-2.8.0.tgz (188,843 bytes)
.........................................done: 188,843 bytes
downloading Texy-2.3.0.tgz ...
Starting to download Texy-2.3.0.tgz (46,694 bytes)
...done: 46,694 bytes
install ok: channel://pear.texy.info/Texy-2.3.0
install ok: channel://pear.apigen.org/ApiGen-2.8.0

Current error:

# apigen --help
PHP Warning:  require(Texy.php): failed to open stream: No such file or directory in /usr/bin/apigen on line 48
PHP Stack trace:
PHP   1. {main}() /usr/bin/apigen:0
PHP   2. class_exists() /usr/bin/apigen:64
PHP   3. ApiGen\{closure}() /usr/bin/apigen:0
PHP Fatal error:  require(): Failed opening required 'Texy.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/bin/apigen on line 48
PHP Stack trace:
PHP   1. {main}() /usr/bin/apigen:0
PHP   2. class_exists() /usr/bin/apigen:64
PHP   3. ApiGen\{closure}() /usr/bin/apigen:0

If i do a locate over my system, i can find texy here:

/usr/share/php/texy/src/Texy/Texy.php

@marosoft
Copy link

I fixed by manually changing the /usr/bin/apigen file. This is a diff:

--- /home/apigen    2013-07-20 13:38:52.877226255 +0100
+++ /usr/bin/apigen 2013-07-20 13:39:07.821081176 +0100
@@ -27,7 +27,7 @@
    // PEAR package

    @include '/usr/share/php/Nette/loader.php';
-   @include '/usr/share/php/Texy/texy.php';
+   @include '/usr/share/php/texy/src/texy.php';
 } else {
    // Downloaded package

@@ -251,4 +251,4 @@
    }

    die(1);
-}
\ No newline at end of file
+}

@kukulich
Copy link
Contributor

I will try to prepare ApiGen 2.8.1 this week a resolve this. There's probably new directory structure in new Texy version. And PEAR is stupid and doesn't follow dependecies.

@marosoft
Copy link

I just made the pull request for it: #254

Please review

@acrobat
Copy link
Author

acrobat commented Jul 23, 2013

@kukulich great thanks!

@Bazze Bazze mentioned this issue Aug 5, 2013
@qucc
Copy link

qucc commented Aug 19, 2013

@marosoft it's work!

@acrobat
Copy link
Author

acrobat commented Aug 19, 2013

@kukulich any update on when this issue will be fixed? thanks!

@sgronblo
Copy link

Which version combinations do I have to install to get this to work atm?

@marcioAlmada
Copy link

@kukulich What version is working right now?

@lloc
Copy link

lloc commented Aug 26, 2013

I just created a symbolic link on my system (Mint 15) as a workaround

cd /usr/share/php/ && sudo ln -s ./texy/src/ Texy

@Mikulas
Copy link
Contributor

Mikulas commented Sep 3, 2013

This still seems to be an issue. I installed from pear now and apigen died with

PHP Warning:  require(Texy.php): failed to open stream: No such file or directory in /usr/bin/apigen on line 48
PHP Stack trace:
PHP   1. {main}() /usr/bin/apigen:0
PHP   2. class_exists() /usr/bin/apigen:64
PHP   3. ApiGen\{closure}() /usr/bin/apigen:0
PHP Fatal error:  require(): Failed opening required 'Texy.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/bin/apigen on line 48
PHP Stack trace:
PHP   1. {main}() /usr/bin/apigen:0
PHP   2. class_exists() /usr/bin/apigen:64
PHP   3. ApiGen\{closure}() /usr/bin/apigen:0

@mythril
Copy link

mythril commented Sep 3, 2013

Still seeing it myself

@TeamLeadplace
Copy link

Confirmed still a bug - installed yesterday, script still looking in /usr/share/php/Texy/texy.php

changing to /usr/share/php/texy/src/texy.php about line 30 of the apigen script in /usr/bin fixes problem

@mikeschinkel
Copy link

I just installed Apigen and am seeing the same issue:

Warning: require(Texy.php): failed to open stream: No such file or directory in /usr/bin/apigen on line 48

Fatal error: require(): Failed opening required 'Texy.php' (include_path='.:/usr/lib/php/pear') in /usr/bin/apigen on line 48

@muhammadghazali
Copy link

Issue story

I just installed ApiGen and got the same issue here:

PHP Warning:  require(Texy.php): failed to open stream: No such file or directory in /opt/lampp/bin/apigen on line 48

Warning: require(Texy.php): failed to open stream: No such file or directory in /opt/lampp/bin/apigen on line 48
PHP Fatal error:  require(): Failed opening required 'Texy.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/bin/apigen on line 48

Fatal error: require(): Failed opening required 'Texy.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/bin/apigen on line 48

Facts

  • I'm using PHP 5.4.9-4ubuntu2.1
  • Installed the ApiGen through PEAR

@koriym
Copy link

koriym commented Sep 10, 2013

the same issue here:

Warning: require(Texy.php): failed to open stream
  • PHP5.4
  • Installed composer

@acrobat
Copy link
Author

acrobat commented Sep 17, 2013

ping @kukulich

@ottawadeveloper
Copy link

Still broken, same message as above, on PHP 5.4.6-1ubuntu1.4, installed through PEAR.

#253 (comment) fixes the problem if anyone needs a workaround

@robinfai
Copy link

on mac 10.8
quick fix -- sudo ln -s /usr/lib/php/pear/texy/src/texy.php /usr/lib/php/pear/Texy.php

@mamdouhweb
Copy link

quick fix on windows:
go to C:\php\pear\texy\src
copy Texy folder and texy.php
then, paste it in your php root folder ( like C:\php )
worked for me

@sKopheK
Copy link

sKopheK commented Oct 29, 2013

this happens to me using 3.0 version installed via composer, 2.8 does not produce this error

if you want to use 3.0 and avoid this persisting bug you can add texy to php's include_path directive

@cdtweb
Copy link

cdtweb commented Nov 15, 2013

Installed ApiGen 2.8.0 through PEAR and receiving the following errors:

PHP Warning:  require(Texy.php): failed to open stream: No such file or directory in /usr/local/bin/apigen on line 48
PHP Fatal error:  require(): Failed opening required 'Texy.php' (include_path='.:/usr/local/pear/share/pear') in /usr/local/bin/apigen on line 48

@phpgeek-programmer
Copy link

@marosoft, your solutions is work for me. Thanks alot.

@adityamenon
Copy link

Just ran into this. Solution provided by @lloc worked.

@mojowill
Copy link

Installed via pear on WAMP on Windows 7 I had to edit the paths on line 30 and line 42 in apigen file after this it worked.

@jayodeji
Copy link

Solution provided by @lloc is perfect!, thanks.

@jdespatis
Copy link

Any news on this serious bug @kukulich ? (which make apigen unusable out of the box)

Thanks to @lloc as a quick workaround

@koslib
Copy link

koslib commented Feb 9, 2014

@robinfai on mac osx 10.9 this does not work..anything else suggested for osx mavericks guys?

@cdtweb
Copy link

cdtweb commented Feb 9, 2014

I've had success using the standalone packages if you've got no other options: https://github.com/apigen/apigen/downloads

@kukulich
Copy link
Contributor

Will be fixed in version 2.9.0.

@tsrrocha
Copy link

@marosoft, your solutions is work for me. Thanks alot.

@rbrisita
Copy link

Editting the apigen script is what worked for me on Snow Leopard.

PEAR installed
ApiGen Version 2.8.0
Line 29 conditional is true
Add lines to it:

    set_include_path('/usr/local/Cellar/php53/5.3.26/lib/php/');
    @include '/usr/local/Cellar/php53/5.3.26/lib/php/Nette/loader.php';
    @include '/usr/local/Cellar/php53/5.3.26/lib/php/texy/src/texy.php';

Comment out the other two line in the block.

@joseluisq
Copy link

I use Fedora 20 x64 and PHP 5.5 and I had the same problems today to installing Apigen..
I soved this issue to editing manually the apigen file located at /usr/bin/apigen
Then in line 30, I added one more line bellow with my true path for taxy.php file:

// This default path not exists in my OS, so I commented it.
//include '/usr/share/pear/Texy/texy.php'; 

// This path exists in my OS, so I added it.
include '/usr/share/pear/texy/src/texy.php';

I see this issue has not been resolved yet on Pear repo, I hope you can solve this.
Regards.

@bskendig
Copy link

Same problem here with 2.8.0 (I don't see a 2.8.1 release yet); @robinfai's workaround (creating Text.php as a symbolic link) worked for me.

@cdtweb
Copy link

cdtweb commented Apr 22, 2014

This project hasn't been updated in a while.. I'm not confident that this issue will be resolved. Too bad.

@ghost
Copy link

ghost commented May 8, 2014

@marosoft fix worked for me.

@ViktorAksionov
Copy link

Just installed v2.8.0 and I have the same problem. (Ubuntu 12.04)
To fix it I changed path in /usr/bin/apigen
on line 30 to: @include '/usr/share/php/texy/src/texy.php';

@ghost
Copy link

ghost commented Jul 24, 2014

Thanks mamdouhweb! It worked for me too.

@lorenzos
Copy link

I'm experienced the same issue on Ubuntu 14.04. I just installed both pear and apigen, so it's a really fresh install. @quincyglenn workaround worked for me.

@Vrtak-CZ Vrtak-CZ mentioned this issue Sep 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests