ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Pavel Solntsev <p_solntsev_community@meta.ua>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Chem.soft
Date: Tue, 17 Feb 2009 12:51:21 +0200
Message-ID: <499A96A9.8060305@meta.ua> (raw)
In-Reply-To: <957265820902170227t73ca4a2dqf81eb22cf15241d@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 836 bytes --]

Denis G. Samsonenko пишет:
> Привет!
>
> 17 февраля 2009 г. 14:28 Pavel Solntsev написал:
>   
>> Взгляните этот makefile. Особенно обратите внимание на ту часть что
>> касается библиотек.
>>     
>
> Скажите, куда этот makefile надо положить, в .../olex2/trunk или
> просто в .../olex2?
>   
Я работал с  src.rpm пакетом от федоры. Makefile надо положить в рабочую
папку (например ~/olex2) где находятся все папки с исходниками. 
Собирать лучше make 2>log. Очень много предупреждений. Да, запуск
напрямую ./olex2 прведет к аварийному останову. Надо запускать через
скрипт (см. атач)
>  
> И ещё, какие там конкретно девел-пакеты надо поставить, чтобы
> нормально собралось в бранч-4.1?
>
>   
Ууууух. Точно знаю что python-dev, wxGTK-devel, библиотеки -lGL, -lglut
Просмотрите Makefile для получения полного списка (проанализируйте).


[-- Attachment #2: olex2.sh --]
[-- Type: text/plain, Size: 2876 bytes --]

#!/bin/sh
# You may change these default locations for your system by editing this file
# as root/sudo

# Location where you want olex2 to live per user
OLEX2_DEFAULT_DIR=$HOME/olex2

# Location where you installed CCTBX
OLEX2_CCTBX_DEFAULT_DIR=/usr/local/cctbx

# Location where the CCTBX library is kept
CCTBX_LIBRARY_PATH=/usr/local/cctbx/cctbx_build/lib

# Location where the CCTBX binary directory is kept
CCTBX_BIN_PATH=/usr/local/cctbx/cctbx_build/bin

# You shouldn't need to edit again below here.
# --------------------------------------------------------------------------- #
# SETUP CCTBX SETTINGS
# N.B. from cctbx_build/dispatcher_head.sh
if [ -n "$LD_LIBRARY_PATH" ]; then
	export LD_LIBRARY_PATH="$CCTBX_LIBRARY_PATH:$LD_LIBRARY_PATH"
else
	export LD_LIBRARY_PATH=$CCTBX_LIBRARY_PATH
fi
if [ -n "$PATH" ]; then
	PATH="$CCTBX_BIN_PATH:$PATH"
	export PATH
else
	PATH="$CCTBX_BIN_PATH"
	export PATH
fi

# --------------------------------------------------------------------------- #
# SETUP OLEX2 SETTINGS
# Set olex home directory - assuming user $home
if [ -n "$OLEX2_DIR" ]; then
        echo "OLEX2_DIR already defined:" $OLEX2_DIR
else
# Assuming defualt setup and setting to user home directory
	export OLEX2_DIR=$OLEX2_DEFAULT_DIR
        echo "Using defaults, Setting OLEX2_DIR:" $OLEX2_DIR
fi

if [ -n "$PATH" ]; then
	export PATH="$PATH:$OLEX2_DIR"
else
	export PATH="$OLEX2_DIR"
fi

# Move local usettings.dat
if test -d "$OLEX2_DIR"; then
	echo "$OLEX2_DIR olex2 home present"
else
	echo "No olex2 dir, creating here: $OLEX2_DIR"
	mkdir $OLEX2_DIR
	cp -ru /usr/share/olex2/* $OLEX2_DIR
fi
if test -a "$OLEX2_DIR/usettings.dat"; then
	echo "$OLEX2_DIR/usettings.dat present"
else
	echo "Moving default usettings.dat to: $OLEX2_DIR"
        cp /usr/share/olex2/usettings.dat $OLEX2_DIR
fi

# This defines the location of cctbx -again needs some automation to allow setting from env
if [ -n "$OLEX2_CCTBX_DIR" ]; then
        echo "OLEX2_CCTBX_DIR already defined:" $OLEX2_CCTBX_DIR
else
# Assuming setup using /usr/local
# Note this should be replaced with a locate possibly soon
	export OLEX2_CCTBX_DIR=$OLEX2_CCTBX_DEFAULT_DIR
fi

# Actually get around to running something!
# Unirun checks that the GUI files are up2date with the usettings.dat defined
# server and the local install directory defined as OLEX2_DIR
if `zenity --window-icon=/usr/share/icons/olex2.xpm --question --title  "Downloading Files" --text='Do You want Olex2 to check for GUI Updates?'`; then
	echo "Checking for updates"
	/usr/libexec/olex2/unirun $OLEX2_DIR | zenity --width 620 --window-icon=/usr/share/icons/olex2.xpm --text-info --title='Downloading Files - Hit Close When FINISHED Appears'
else
	echo "Updates skipped on user request"
# Now we've checked all is up2date and informed the user that we did we can
# can now actually run olex2
fi
/usr/libexec/olex2/olex2 &


  reply	other threads:[~2009-02-17 10:51 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-10  8:19 Pavel Solntsev
2009-02-10  8:35 ` Костарев Алексей
2009-02-10  8:53 ` REAL
2009-02-10 14:29   ` Michael Shigorin
2009-03-04  8:15     ` REAL
2009-03-04  8:20       ` REAL
2009-02-10 12:11 ` Aleksander N. Gorohovski
2009-02-10 14:30   ` Michael Shigorin
2009-02-10 14:59     ` [Comm] Chem.soft [JT] Vyatcheslav Perevalov
2009-02-11  7:36   ` [Comm] Chem.soft Pavel Solntsev
2009-02-11  8:05     ` Aleksander N. Gorohovski
2009-02-17  6:03 ` Denis G. Samsonenko
2009-02-17  6:14   ` REAL
2009-02-17  6:22     ` Denis G. Samsonenko
2009-02-17  6:43       ` REAL
2009-02-17  7:11         ` Denis G. Samsonenko
2009-02-17  9:43           ` REAL
2009-02-17  8:28         ` Pavel Solntsev
2009-02-17  8:30           ` Pavel Solntsev
2009-02-17  9:57           ` REAL
2009-02-17 10:27           ` Denis G. Samsonenko
2009-02-17 10:51             ` Pavel Solntsev [this message]
2009-02-18  7:21               ` REAL
2009-02-18  7:17                 ` Pavel Solntsev
2009-02-18  7:24                 ` Pavel Solntsev
2009-02-18  7:37                   ` REAL
2009-02-18  9:46                     ` Pavel Solntsev
2009-02-20  3:55                   ` REAL
2009-02-19  7:27                 ` Pavel Solntsev
2009-02-19  8:13                   ` REAL
2009-02-19 16:46                     ` Andrey Rahmatullin
2009-02-19 18:10                       ` Anton Farygin
2009-02-25 10:11                       ` Michael Shigorin
2009-02-25 10:25                         ` REAL
2009-02-26 12:31                           ` Pavel Solntsev
2009-02-27  5:52                             ` REAL
2009-02-27  7:29                               ` Pavel Solntsev
2009-02-21  6:40                 ` REAL
2009-02-23  7:06                   ` Pavel Solntsev
2009-02-17  7:44     ` Pavel Solntsev
2009-02-17 10:02       ` REAL
2009-02-17  7:39   ` Pavel Solntsev
2009-02-17  9:54     ` REAL
2009-02-17 10:07       ` Pavel Solntsev
2009-02-17 10:23         ` REAL

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=499A96A9.8060305@meta.ua \
    --to=p_solntsev_community@meta.ua \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git