I've installed drush on a fresh install of 4.7 and I"m certain I've missed something Any help pointing to my error will be appreciated.

I made the alias by entering
alias drush='php modules/drush/drush.php'
in the Drual install root.

Drupla in this case is installed in /home/[directory user]/public_html/dr474

I ran the alias in dr474 no problem

When I attenpt to invoke Drupsh I get

No log handling enabled - turning on stderr logging
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
Cannot find module (IPV6-MIB): At line 0 in (none)
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Could not open input file: modules/drush/drush.php.

It seems to be a laundry list of things not related.

PHP
PHP 5.0.4 (cli) (built: Nov 8 2005 08:27:12)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies

Apache II
FC 4

Comments

jsbthree’s picture

Could not open input file: modules/drush/drush.php.

The only line that is relevant would seem to be the last one. I have the config file in the sites directoruy under the directory [domaiin user.tld]/settings.php and not default/settings.php

Is there a way to point drush in the right direction or should I create a default directory and copy settings over.
I"ll try the latter.

jsbthree’s picture

drush: Unable to load Drupal configuration from sites/default/.

Sorry this was the line. I mis pasted

jsbthree’s picture

That worked. Still curious about the output but see the last line.
Also
You have created a wonderful thing here. Really.
Congrats. and thanks

No log handling enabled - turning on stderr logging
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
Cannot find module (IPV6-MIB): At line 0 in (none)
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
4.7.x-1.x-dev

jsbthree’s picture

Sorry . for the output above i ran 'drush version'
And as you can see the last line of the output gives me the version.

Arto’s picture

Assigned: Unassigned » Arto

Hey John, thanks for trying drush out :-)

The "Cannot find module" messages are almost certainly unrelated to drush, and look like something to do with the PHP configuration (I'm afraid I don't know what exactly, though). If you create a dummy PHP file to run from the command line, you'll likely receive the same messages - can you please confirm if this is the case or not.

As for the site drush operates on, it's indeed useful to e.g. symlink sites/default/ to sites/sitename.com/ if you only have one site. However, you don't necessarily need to: you could also use the -h sitename.com option to drush to specify which site to operate on; of course, this implies more typing for every command.

Arto’s picture

jsbthree’s picture

I'm going to continue to test your module which really is going to be a great thing as I said.

Yea it looks like what may be going on is that the error settings in the PHP.ini are set for a development level sort of reporting which is in essence E-ALL or something

Its also set to print ot screen. Later when I have some time I'll try to change the ini to be more restrictive. Is it possible this settings is trigginer the screen outup here? Its just an unusual format to see it in but makes some sense if that's it.

cnt@eri.ucsb.edu’s picture

I cant help on solution, but the problem is related to net-snmp as I get the same errors when I try to
run net-snmp commands on a new blastwave.org net-snmp install. Hope this helps at least narrow the
problem down.

Arto’s picture

Status: Active » Closed (fixed)

No further development of the 4.7 branch of this module is planned at this time.

If experiencing problems with the 5.x version, please open a new issue for that. (This particular issue definitely seems non-Drush related, though.)