Firefox 45.0.2 installation on Debian - firefox

I'm not able to install Firefox 45.0.2 on my Debian system. I have downloaded the .tar file and followed the steps. While checking the version, I'm getting the below error. I'm not able to launch Firefox with
firefox -v
Error: bash: /usr/bin/firefox: cannot execute binary file: Exec format error
I was able to install and use other Firefox versions without any issues.

try this
sudo apt-get install firefox=45.0.2+build1-0ubuntu1

Related

Install grpc extension on Mac OS Big Sur

For 2 days now, I am trying to install grpc for php on my Mac mini server
Mac OS Big Sur 11.2.1
Built-in Apache
I have tried it on php 7.3 and 7.4 installed with homebrew
I have installed grpc pecl grpc install after a bunch of attempt I have finally compile and installed it with pecl.
extensions are placed in the good repertory. But I encounter signing issue.
php -m show grpc in the list but not php_info()
PHP Warning: PHP Startup: Unable to load dynamic library 'grpc.so' (tried: /usr/local/lib/php/pecl/20190902/grpc.so (dlopen(/usr/local/lib/php/pecl/20190902/grpc.so, 9): no suitable image found. Did find:\n\t/usr/local/lib/php/pecl/20190902/grpc.so: code signature in (/usr/local/lib/php/pecl/20190902/grpc.so) not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not\n\t/usr/local/lib/php/pecl/20190902/grpc.so: stat() failed with errno=1), /usr/local/lib/php/pecl/20190902/grpc.so.so (dlopen(/usr/local/lib/php/pecl/20190902/grpc.so.so, 9): image not found)) in Unknown on line 0
I have disabled SIP. Still same issue.
I have codesigned the extension with my apple developper ID. codesign -f -s "Mac Developer: MY_DEV_ID" /usr/local/lib/php/pecl/20190902/grpc.so
same issue
I have xattr /usr/local/lib/php/pecl/20190902/grpc.so
then sudo xattr -d com.apple.quarantine /usr/local/lib/php/pecl/20190902/grpc.so
I also tried with gatekeeper disabled.
And still the same problem. Is there someone that sucssefully installed grpc on the Mac with Big Sur, who would have an idea on what is going wrong ?
I experienced the same thing, I have tried several times to install it and I just solved the problem.
In my case when running
sudo pecl grpc install
there was an error in the installation process with error information like
ERROR: failed to mkdir /usr/local/Cellar/php#7.4/7.4.15/pecl/20190902
see in the picture:
running pecl grpc install
The problem is that the installation process can't create a new directory for /usr/local/Cellar/php#7.4/7.4.15/pecl/20190902, so I tried to create that directory first by running the command:
mkdir /usr/local/Cellar/php#7.4/7.4.15/pecl/
Then run the installation process again and and it worked!
1. See Cellar/php/... directory:
for me:
for you:
ls -la /usr/local/Cellar/php/YOUR_PHP_VERSION/
2. See the directory "pecl" which is a link:
3. Check the link:
ls -la /usr/local/lib/php/pecl
if:
No such file or directory
execute:
mkdir -p /usr/local/lib/php/pecl
sudo chmod 777 /usr/local/lib/php/pecl/
4. Reinstall extension:
pecl install grpc

cannot open shared object file: No such file or directory Couldn't load XPCOM

Firefox install after centos i get this error
cannot open shared object file: No such file or directory Couldn't load XPCOM How to fix it?
and i fix this error updating (gtk library)
update gtk2 to gtk3.Firefox latest versions required gtk3 in centos.
How to install gtk3.
$ yum install gtk3-devel
After install firefox and it's work fine.Test it work fine.
$ firefox -V

Using Selenium on Mac Chrome

Recently got a mac and was able to run Mozilla without any issues but having trouble installing chrome extensions and running it for selenium. Can someone guide me through the process of installing the extension and running selenium on Mac chrome.
If you want to use Selenium WebDriver with Chrome, first download ChromeDriver - WebDriver for Chrome. This can be installed via Homebrew with brew install chromedriver, or manually by downloading, extracting, moving and setting the PATH as follows:
$ cd $HOME/Downloads
$ wget http://chromedriver.storage.googleapis.com/2.22/chromedriver_mac32.zip
$ unzip chromedriver_mac32.zip
$ mkdir -p $HOME/bin
$ mv chromedriver $HOME/bin
$ echo "export PATH=$PATH:$HOME/bin" >> $HOME/.bash_profile
Source: install and set path to chromedriver on mac or linux
You should then read Getting started with ChromeDriver on Desktop, in particular the sample code which shows how you map the path to the executable and instantiate ChromeDriver. If you have a reference to the driver in the PATH variable, you can omit the configuration line.
You can install both packed (.crx file) and unpacked (directory) extensions via ChromeDriver. See the code snippets for setting either up here.
If you were using Selenium IDE for FireFox instead, there is no version available for Chrome. The best alternative I know of is iMacros for Chrome.
Sometimes you will face a problem with the old version of chromedriver and when you try to install it using this command:
brew cask install chromedriver
It shows you the following:
Error: It seems there is already a Binary at '/usr/local/bin/chromedriver'; not linking.
However, you can the following step:
brew cask reinstall chromedriver
If it still shows you the same error, you can remove it with the following command
rm /usr/local/bin/chromedriver
and install it again
brew cask install chromedriver
You should have the last updated version of chrome driver
I think that the easy way for running mac osx, chrome and selenium together is like this on mac os terminal:
# download selenium jar
curl -L0 https://selenium-release.storage.googleapis.com/3.9/selenium-server-standalone-3.9.1.jar -o selenium-server-standalone.jar
# install chromedriver using cask
brew cask install chromedriver
# start chrome driver
brew services start chromedriver
#==> Successfully started `chromedriver` (label:homebrew.mxcl.chromedriver)
# start selenium server
java -jar selenium-server-standalone.jar
#14:38:20.684 INFO - Selenium build info: version: '3.9.1', revision: '63f7b50'
#14:38:20.685 INFO - Launching a standalone Selenium Server on port 4444
I guess you have a couple of options.
either manually downloading chrome driver and adding it to your PATH,
or using webdriver_manager package
Manually downloading chromedriver
The first option is to manually download chromedriver and add it your PATH:
Step 1: Download chromedriver
# You can find more recent/old versions at http://chromedriver.storage.googleapis.com/
wget http://chromedriver.storage.googleapis.com/81.0.4044.69/chromedriver_mac64.zip
Step 2: Add chromedriver to your PATH (e.g. /usr/local/bin)
unzip chromedriver_mac64.zip
cp chromedriver /usr/local/bin
You should now be able to run
from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://localhost:8000')
without any issues
Using webdriver_manager
Alternatively, you can use webdriver_manager that contains most web drivers.
First install it with pip:
pip install webdriver_manager
And for Chrome in particular, you should do
from webdriver_manager.chrome import ChromeDriverManager
browser = webdriver.Chrome(ChromeDriverManager().install())
browser.get('http://localhost:8000')
One way is if you have homebrew on your mac, then on terminal, use this command
brew install chromedriver
Then you need to download chromedriver on your machine, do it from
http://chromedriver.storage.googleapis.com/index.html
Download latest version
It will look like, "chromedriver_mac32.zip"
(doesn't matter if its 32 bit, it will work for 64 bit MAC as well)
Use this code for open Chrome if your chromedriver that you downloaded is inside your project folder and looks like this
..Project folder/Chrome/chromedriver
System.setProperty("webdriver.chrome.driver",
System.getProperty("user.dir")+"/Chrome/chromedriver");
driver=new ChromeDriver();
Use chrome driver, download from here
https://sites.google.com/chromium.org/driver/
Add the file in pycharm project, then use this cmd to disable permission pop up
xattr -d com.apple.quarantine chromedriver
Also in python program, use these lines, make sure chrome is installed in Applications
import selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
options = webdriver.ChromeOptions()
options.binary_location = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
driver = webdriver.Chrome('/Users/<Username>/PycharmProjects/selenium_py/chromedriver')
driver.get('https://www.google.com')
Install chromedriver directly with brew install chromedriver.
The chrome driver is located in /usr/local/bin/chromedriver.
If you reload your terminal with source ~/.bashrc or source ~/.zshrc, depending on your setup or restart the terminal if should work.
If it does not work add the chrome driver to your PATH. You need to add /usr/local/bin/chromedriverto your ~/.bashrc or ~/.zshrc by adding the line: export PATH=$HOME/bin:/usr/local/bin:$PATH.
The easiest way to do this after downloading the right chromedriver is with the oneliner:
sudo chmod a+x chromedriver && sudo mv chromedriver /usr/local/bin/chromedriver

Cannot install Logentries Mac Agent on OS X Yosemite

I tried to install Logentries (Mac Agent) as instructed by the website itself. I followed the steps as instructed.
curl -O https://raw.githubusercontent.com/logentries/le/master/install/mac/install.sh
I downloaded the install.sh script and ran sudo ./install.sh. But that didn't work so I tried sudo sh install.sh.
When I do sudo le then I get same error message as marked in pic above.
I googled but didn't find the solution.
Thank you in advance.
Here is composer.json content
it's missing the formats directory.
sudo pip install formats
should resolve your issue here, then sudo sh install.sh
#user5384112 is correct, the error is being caused by a missing dependancy.
I have a PR to fix this for the Mac installer which should go live shortly.
You can install directly with by downloading with curl or download and install it. You should first look for missing dependencies before installing anything. You should have looked carefully in the documentation and error messages. The error clearly suggests you should have formats. for that do following
sudo pip install formats

How to update firefox in ububtu

My Ubuntu software center crashes whenever i tried to open it. I came to understand it is after the python installation.
Now i want to update my Firefox browser.
How the Firefox browser is upgraded using the command line in Ubuntu?
You need to run 2 commands to upgrade specific package:
sudo apt-get update
sudo apt-get upgrade firefox

Resources