简体   繁体   中英

How to install dependencies in OpenShift?

Hello i want to install these dependencies in OpenShift for my App

yum -y install wget gcc zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libffi-devel libxslt libxslt-devel libxml2 libxml2-devel openldap-devel libjpeg-turbo-devel openjpeg-devel libtiff-devel libyaml-devel python-virtualenv git libpng12 libXext xorg-x11-font-utils

But don't know how, is it through rhc? if so, how?

You can not use the "yum" command to install packages on OpenShift. What specific issue are you having? I am sure that at least some of those packages are already installed in OpenShift online already (such as wget). Have you tried running your project to see what specific errors you get about what is missing?

The lib libjpeg and others is already installed on Open Shift, just create the symlinks:

> ln -s /usr/lib64/libz.so $VIRTUAL_ENV/lib/ ln -s
> /usr/lib64/libfreetype.so $VIRTUAL_ENV/lib/ ln -s
> /usr/lib64/libjpeg.so $VIRTUAL_ENV/lib/

Look for others libs installed on /usr/lib64 if they are not already installed and create the links

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM