Failed opening required 'Net/SSH2.php'? - centos

I have installed SSH2 as per these instructions. I also checked in PHPInfo, and I can see SSH is working. I.e. It is showing up. However, my code still bombs:
It bombs out with:
Fatal error: require(): Failed opening required 'Net/SSH2.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php.:/usr/lib/php:/usr/local/lib/php/phpseclib')
in SSHConnect.class.inc on line 5
I tried:
locate SSH2.php
And it can't find the files anywhere. So I really have no idea why this is not working? Any ideas?

You installed libssh2 and are trying to use phpseclib. If you want to use phpseclib you can install it via composer or via PEAR. Or you can just go to http://phpseclib.sourceforge.org , download the *.zip and put it where-ever you like, so long as it's in the include_path.

Related

avr-g++.exe: error: device-specs/specs-avr2: No such file or directory

I'm trying to install Marlin on an Ender 3. But Arduino IDE is giving me this error:
C:\Users\Michael.Heredia\Downloads\Marlin-2.0.x\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t)': C:\Users\Michael.Heredia\Downloads\Marlin-2.0.x\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:134:5: error: 'init' is not a member of 'U8GLIB'
U8GLIB::init(&u8g_dev_ssd1309_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);
I've decided to try auto build Marlin on VSCode but cannot get past this error:
avr-g++.exe: error: device-specs/specs-avr2: No such file or directory
I've looked across many forums and the most common issue seems to be adding or deleting something in the path. Judging by the fact that it is a No such file or directory error, I need to add something to the path, but all the solutions I've found seem to have different things, and none of them seem to explain where I find the directory to add to the path.
How can I solve this?
Close VSC and go to C:\Users\yourname and delete the .platformio folder.
Restart VS Code and you should get a fresh install of Platformio.
This should get you going.

Resolve "Binaries not found" error in Postgres.app

I'm following these instructions to set up PostgreSQL on my Mac. Step 3 says I need to click Initialize, however there's no such button. Instead, the error message "Binaries not found" is displayed and, if I click the similar Start button, the error message "The binaries for this PostgreSQL server were not found" is displayed. I just downloaded a clean version of Postres.app, so not sure why this wouldn't be working right out of the box.
How to resolve?
I found this answer by stromal on Postgres.app's GitHub:
I solved it by opening up the application's sliding windows, than clicked a new server with the plus icon, than that had initialization button, than clicked initialise than it worked.
The hidden sidebar slideout was tricky. This solution worked for me!
Postgres.app's troubleshooting and support page says the following:
To fix this issue, make sure that the correct binaries for your server are in
/Applications/Postgres.app/Contents/Versions/
without telling you how to actually do that.
One way to do it is to download "Postgres.app with all currently supported PostgreSQL versions" from Postgres.app's download page and replace any other versions you have. The app will then open without the "Binaries not found" error, assuming that you are only using supported PostgreSQL versions.
Follow the official uninstall instructions:
Quit Postgres.app & drag it to the Trash
Delete the data directory (default location: ~/Library/Application Support/Postgres)
Delete preferences for Postgres.app by executing the following command: defaults delete com.postgresapp.Postgres2
Remove the $PATH config for the command line tools (optional): sudo rm /etc/paths.d/postgresapp
Follow the official installation instructions.

Install python 3 on bluehost

I'm trying to set up my Bluehost account with python 3 so that I can use it with a flask site that I've created locally. I found instructions on how to do this at: http://multiactivelife.com/articles/install-python3-on-bluehost. I made it most of the way through, but I unfortunately get the following error when I try to run make install:
/usr/bin/install: cannot create regular file `/usr/local/bin/python3.7m': Read-only file system
make: *** [altbininstall] Error 1
I have tried to chmod to the bin directory (0755) but with no luck. Any idea on how I can get write access to my bin folder so that I can install python 3 on bluehost?
From the Bluehost website:
"Note: In order to install python locally, you will need to be added to the Compiler group. Please contact Support to request you be added to the Compiler group before proceeding."
https://www.bluehost.com/help/article/python-installation

memcached not getting loaded for php7

I am using Easyphp-DevServer-17 and PHP7 ,I want to use "memcached" with PHP-7.1 , I downloaded memcached dll files from the following link
php 7 memcahced
I tried adding dll files to ext folder in php 7 but phpinfo file
doesn't reflect it
and i tried following code
$servers = array(array('localserver', 11212));
$memcacheD = new Memcached;
but it throws following error "Fatal error: Uncaught Error: Class 'Memcached' not found"
Please help me on this issue as i am new to php and struggling to load memcached extension
First of all ensure you have the correct version of memcacheD. Most of the versions for Windows out there are memcache, without the D at the end, even the name of the libraries are called memcacheD. It's very misleading but I have added the link to the correct version below. To clarify, memcache and memcacheD are not the same and cannot be interchanged.
Run phpinfo() and make notations of Compiler, Architecture, Thread Safety, you will need this to get the correct version of the DLL.
Download the correct memcacheD version from https://github.com/lifenglsf/php_memcached_dll There are 2 files, the php extension DLL and the lib DLL. You need both.
Save the php extension DLL in your easyPHP folder, in my case was \eds-binaries\php\php713vc14x86x220414190951\ext.
Enable the extension in php.ini, I renamed the DLL so in my case I had to add the line extension=php_memcached.dll
Save libmemcached.dll in C:\windows
Reload Apache to ensure the config is refreshed.
And that's it. Now run phpinfo() again and should show there. If it's not working check Apache error log, it will tell you if the DLL failed to load. If you get the "not a Win32 application" message it means you didn't download the correct DLL.
Remember you also have to have the service running, memcached.exe -d start from cmd should do.

failed to load RSL textLayout

I just installed gentoo linux amd64.
on that I installed eclipse 4.2M5 with FD5 for flex development.
after compiling my project, when I execute it i get the following in the log file:
Error #2046: The loaded file did not have a valid signature.
Failed to load RSL http://fpdownload.adobe.com/pub/swz/tlf/1.1.0.604/textLayout_1.1.0.604.swz
Failing over to RSL textLayout_1.1.0.604.swz
Error #2046: The loaded file did not have a valid signature.
i use FD5 with Flex 4.1A.
any ideas why it happens ?
update:
it seems that when I close and open my project I am able to execute my project once. the 2nd time that I execute the project on my browser I get the error and I need to close and reopen the browser to execute it again.
First of all thank you for all of your comments.
I finally was able to properly resolve the issue.
it seems that flash saves cache info at ~/.macromedia
(~ for home dir, for example if the user is ufk so it translates to /homeukf)
all I need to do is to delete that folder, since then I am able to refresh my app on the browser without any problems.