How can i install openssl lcrypto in my mac - terminal

I have been trying to install open-event-server fossasia on my mac.
I have been gettin this error for a while.I have updated my pip and tried to reinstall the openssl.
Still it persist.
Help me!
Attaching the screenshot of my terminal.
Link to image-:

try this
cd /usr/local/include
ln -s ../opt/openssl/include/openssl
In the open-event-server repo root:
rm -rf _build
CFLAGS="-L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include" make rel
quoted from raflr in this issue

Related

anaconda2 still shows up in home directory after sudo rm -rf

I tried to uninstall anaconda2 and thought I was successful since conda didn't show up in the command line anymore.
However, when I use
locate anaconda2
The directory still shows up in $HOME even though when I try to cd into anaconda2, the response is that anaconda2 no longer exists?
You have all information in this official documentation.
To uninstall anaconda like you want, you can do:
conda install anaconda-clean
anaconda-clean --yes
rm -rf ~/anaconda3
rm -rf ~/.anaconda_backup
And finally clean your ~/.bash_profile file from something which would look like:
# added by AnacondaX Y.Z.0 installer
export PATH="/Users/sfish/anaconda3/bin:$PATH"

PHP 7.0 with IMAP and MAILPARSE on MAC OS

On 31st of March Homebrew moved some of their formulas around. For this reason I can't find a way to make my PHP 7 work with the following extensions:
mailparse
imap
I have tried many examples found on the internet, such as
brew install php70 --with-imap
brew install -s php70 --with-imap
brew install php70-imap
not mentinoning the brew update, brew upgrade, brew tap etc...
But none of them seems to work as brew php does not work with options anymore.
I had even less options trying to install without homebrew, as I am using nginx in my computer, not apache.
Does any one had this problem and was able to fix it?
Thanks!
After some troubleshooting, it finally worked..... That's how I did:
First I installed the following formulas:
brew install imap-uw
brew install openssl
After that, I downloaded the same version of the pho is running in my computer on http://php.net/downloads.php (saved it in Downloads folder).
In terminal I did.
cd ~/Downloads/php-7.0.29/ext/imap
./configure --with-imap=/usr/local/Cellar/imap-uw/2007f --with-kerberos --with-imap-ssl=/usr/local/opt/openssl
make
where /usr/local/Cellar/ is the path where the formula imap-uw is installed.
P.S this configure file does not accept --with-openssl or --with-openssl-dir or +openssl. I waist a lot of time trying that.
it created a folder modules/ with the imap.so file inside.
Then I created a folder and moved the imap file to inside it
mkdir /usr/local/opt/php70-imap
mv modules/imap.so /usr/local/opt/php70-imap/imap.so
After that just add the extension to the php.ini file
extension="/usr/local/opt/php70-imap/imap.so"
Restart the server and imap will work fine!
For mailparse I had to use pecl.
First I followed this tutorial https://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/
After pecl was installed properly in my computer, I ran the following code:
cd
pecl download mailparse
tar -xvf mailparse-3.0.2.tgz
cd mailparse-3.0.2/
phpize
./configure
sed -i 's/#if\s!HAVE_MBSTRING/#ifndef MBFL_MBFILTER_H/' ./mailparse.c
make
mkdir /usr/local/opt/php70-mailparse
sudo mv modules/mailparse.so /usr/local/opt/php70-mailparse/mailparse.so
I got the piece of code above here https://github.com/php-mime-mail-parser/php-mime-mail-parser . However the line sed -i 's/#if\s!HAVE_MBSTRING/#ifndef MBFL_MBFILTER_H/' ./mailparse.c has not worked properly. I ran make anyways and it worked.
After that just add the extension to the php.ini file
extension="/usr/local/opt/php70-mailparse/mailparse.so"

protoc: command not found (Linux)

I am trying to use Protobuf on Linux box. I downloaded the pre-compiled from github.
When I try to compile my .proto file or just check the protobuf version, it says
protoc: command not found.
I tried the same steps on Windows machine using pre-compiled protobuf version and it works fine there.
Install protoc for Linux and Mac
Linux
PROTOC_ZIP=protoc-3.15.8-linux-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.15.8/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local include/*
rm -f $PROTOC_ZIP
Mac OS X
brew install protobuf
Alternately, if you don't have Homebrew.
PROTOC_ZIP=protoc-3.15.8-osx-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.15.8/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
source: http://google.github.io/proto-lens/installing-protoc.html
For Linux Ubuntu 20, only install with snap
snap install protobuf --classic
or via apt, with:
sudo apt install protobuf-compiler
You can try it:
Install grpc and protobuf
brew install grpc protobuf
I know this question is specifically asked for Linux and I could n't find any question as it relates to solving this error on Windows.
This might help people who encounter the same error on windows.
Step 1: Download the windows distribution (protoc-3.5.0-win32.zip) from the link protobuf and unzip locally to a folder
Step 2 : Add the folder path to the path in the system environment variables.
Step 3: close the command prompt, restart the command prompt and try the command protoc
I might be late to the party but I also had "command not found" when trying to run protoc. It turned out it was just missing the execute permission. A quick chmod +x protoc fixed this for me.

How do I remove MacPorts on an "unsupported OS" i.e. El Capitan Public beta?

The MacPorts installation that I had on Yosemite doesn't work on the El Capitan since it isn't supported yet. I want to remove the Port installation here but I'm not able to run any of the Port commands. Does anyone have an idea how to clean it up?
On running any port command, I get the following error:
Error: Current platform "darwin 15" does not match expected platform "darwin 14"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
This solution worked for me, without remove it:
xcode-select --install
xcodebuild -license
wget https://distfiles.macports.org/MacPorts/MacPorts-2.3.3.tar.bz2
tar xzvf MacPorts-2.3.3.tar.bz2
cd MacPorts-2.3.3
./configure && make && sudo make install
cd ../
rm -rf MacPorts-2.3.3*
Source
I just went ahead and manually removed the files (using rm):
sudo rm -rf /opt/local \
/Applications/DarwinPorts \
/Applications/MacPorts \
/Library/LaunchDaemons/org.macports.* \
/Library/Receipts/DarwinPorts*.pkg \
/Library/Receipts/MacPorts*.pkg \
/Library/StartupItems/DarwinPortsStartup \
/Library/Tcl/darwinports1.0 \
/Library/Tcl/macports1.0 \
~/.macports
It didn't seem to leave any leftovers or break anything.
One thing to note however is that mactex seems to have been installed in the same directory so that got removed as well. I didn't realize that I had that in the same directory. If you're going to repeat the same steps, keep this in mind.
What I did successfully on my El Capitan:
xcode-select --install
xcodebuild -license
Reinstall MacPorts by using the correct *.pkg matching your OSX from https://www.macports.org/install.php
done.
wget is fetching a bz2 file but unzip instructions are for gz.
Try the following instead
tar xjvf MacPorts-2.3.3.tar.bz2
The rest worked fine on El Capitan.
Thanks.

gfortran/gcc4.8 on Mac OS X 10.8.3

I am having trouble re-installing gfortran on my mac after upgrading to mountain lion.
I have:
Downloaded the latest version of XCode and installed command line tools.
I tried running gfortran but it is not available in gcc4.2 so...
I downloaded the latest version of fink and fink commander.
I downloaded gcc4.8 through fink and the install was performed successfully.
Now I am stuck, the gfortran command still does not work (command not found), there is also no gcc-4.8 or gfortran-4.8 in usr/bin and so I cannot rename gcc. If I run gcc-4.8 I also get "command not found".
I have spent hours on these sites but still cannot solve the problem, can anyone help me?
If you have installed fink in the default location then the gcc/gfortran/g++ packages should be be found in
/sw/bin
and called
/sw/bin/gcc-fsf-4.8
/sw/bin/gfortran-fsf-4.8
/sw/bin/g++-fsf-4.8
Create a bash script, SelectGCC-4.8.sh, with the following:
sudo cd /usr/local/bin
sudo rm cc gcc c++ g++
sudo ln -s /sw/bin/gcc-fsf-4.8 cc
sudo ln -s /sw/bin/gcc-fsf-4.8 gcc
sudo ln -s /sw/bin/c++-fsf-4.8 c++
sudo ln -s /sw/bin/g++-fsf-4.8 g++
NOTE: only the first sudo will ask for your password

Resources