Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    [Propel 1.2] cosa sbaglio e cambio versione

    Salve.

    Sto provando sto framework parecchio interessante http://www.xml.lt/Resources/Framework che usa Propel...

    sono su Ubuntu, ho preso il progetto blog

    # Extract archive into a folder

    # Set project.home in build.properties file as a full path to that folder

    # Define your database settings in the runtime-conf.xml file

    # Make sure that full paths of lib/propel/runtime/classes and lib/creole/runtime/classes are added to include_path in your php.ini

    # Run propel-gen.bat to generate Model classes and SQL with your settings

    ecco quando provo a fare questo nella cartella dove è presente la versione per linux propel-gen ( diy-blog/lib/propel/generator/bin ) mi da questo errore:

    ./propel-gen: 67: phing: not found
    il contenuto del file è questo
    #!/bin/sh # Shell wrapper for Propel generator # $Id$ # # This script will do the following: # - check for PHING_COMMAND env, if found, use it. # - if not found assume php is on the path # - check for PROPEL_GEN_HOME evn, if found use it # - if not look for it if [ -z "$PROPEL_GEN_HOME" ] ; then # echo "WARNING: PROPEL_GEN_HOME environment not set. Attempting to guess." # try to find Propel if [ -d /opt/propel/generator ] ; then PROPEL_GEN_HOME=/opt/propel/generator fi if [ -d "${HOME}/opt/propel/generator" ] ; then PROPEL_GEN_HOME="${HOME}/opt/propel/generator" fi if [ -d "/usr/local/propel/generator" ] ; then PROPEL_GEN_HOME="/usr/local/propel/generator" fi if [ -d "${HOME}/usr/propel/generator" ] ; then PROPEL_GEN_HOME="${HOME}/usr/propel/generator" fi ## resolve links - $0 may be a link to phing's home PRG="$0" progname=`basename "$0"` saveddir=`pwd` # need this for relative symlinks dirname_prg=`dirname "$PRG"` cd "$dirname_prg" while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done PROPEL_GEN_HOME=`dirname "$PRG"`/.. cd "$saveddir" # make it fully qualified PROPEL_GEN_HOME=`cd "$PROPEL_GEN_HOME" && pwd` # make it available in PHP via getenv("PROPEL_GEN_HOME") export PROPEL_GEN_HOME fi if (test -z "$PHING_COMMAND") ; then # echo "WARNING: PHING_COMMAND environment not set. (Assuming phing on PATH)" export PHING_COMMAND="phing" fi $PHING_COMMAND -f $PROPEL_GEN_HOME/build.xml -Dusing.propel-gen=true -Dproject.dir=$*
    la linea 67 è l'ultima

    esiste in root ( /diy-blog ) un propel-gen.bat che ha questo contenuto
    lib\propel\generator\bin\propel-gen .
    quindi penso sia fatto per sviluppare sotto windows e penso anche che sia facilmente risolvibile se sapessi dove mettere le mani

    grazie

    inoltre vorrei sapere cosa comporterebbe il portarlo a Propel 1.3... grazie ancora

  2. #2

  3. #3

  4. #4
    up... nessuno usa propel? mi sembra strano

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.