Hi! i did an php4 install using the new portage structure (dev-lang). ##### Settings START ## ADD to /etc/portage/package.keywords: # New PHP4/5 struct added dev-lang/php =dev-lang/php-4.4.1-r3 ~amd64 =app-admin/php-toolkit-1.0 ## ADD to /etc/portage/package.use # new php architecture: =dev-lang/php-4* -* cli cgi apache2 ctype gd java jpeg ming mysql pcre png session sharedmem truetype xml xml2 xsl zlib ## Remove php5 from being installed - /etc/portage/package.mask >=dev-lang/php-5 ##### Settings END ## The emerge worked fine emerge "=dev-lang/php-4*" ## but when i wan't to use the php-toolkit to set the php cli version an error occurs: php-select php php4 ## !!produces: "ln: when making multiple links, last argument must be a directory" # looks like the symlink couldn't be created....there's no # php -> /usr/lib64/php4/bin/php # in /usr/bin # so i added it my self and evrything worked fine.... ln -s /usr/lib64/php4/bin/php /usr/bin/php Cheers, Grischa
Hi, please add -x to the first line of /usr/sbin/php-select (so that it looks like #!/bin/bash -x), and report here the output you then get, -x enables debug of bash scripts. :) Also, your emerge info would be intersting to know, thanks. Best regards, CHTEKK.
Created attachment 76160 [details] debug output of "php-select php php4"
Created attachment 76161 [details] emerge info debug output
Created attachment 76162 [details] php-select debug output
I just added app-admin/php-toolkit-1.0-r1 to the tree, wich, at least for me, fixes the issue, thanks again for helping us track and debug this! :) emerge sync in a couple of hours and emerge php-toolkit again, making sure it's the 1.0-r1 version, and your problem should be fixed. Please report back to this bug if 1.0-r1 indeed fixed your problems or not, thanks! Marking as test-request in the meantime. Best regards, CHTEKK.
Thanks, this bug is history! Just emerged php-toolkit-1.0-r1 and then re-emerged dev-lang/php, because I was too lazy to use php-select. ;-)
Thanks for reporting back, closing.
it's working fine on my amd64 machine, i suggest to remove the package mask. (~amd64)