#1 2007-02-13 00:10:14
- Vaikyuko
- New member
- Registered: 2007-02-12
- Posts: 3
Installation problem
I am not all that tech savvy, and this is my first time working with any Perl related programs. My basic problem is this: when I install GCStar (apparently, the 1.0.0 version), it refuses to launch. I tried to launch it from both the installation (which does nothing, although I've noticed a command prompt popping up for a millisecond during installations) and from my program listing, but it refuses to do so and gives me an error message. I've installed all the dependencies, my operating system is Windows XP, and the file that seems to be causing the problem (it says another program is using it) is the gcstar.bat file. I've attached an image of the error popping up below.
http://img72.imageshack.us/img72/3103/untitledaa1.png
Any chance you can help? Also, is there a version 1.1.0 installer I can download? It seems like I should probably give that a try and see if it works.
Offline
#2 2007-02-13 07:56:38
Re: Installation problem
Hello,
The last version is available from this page:
http://wiki.gcstar.org/en/install_windows
Try to remove everything you already installed (check that nothing left in the installation directories and follow the instructions from this page.
If you still have some problem then, please post here the content of the gcstar.bat file (you may open it with notepad or any text editor), or just attach it.
Offline
#3 2007-02-19 00:40:55
- Vaikyuko
- New member
- Registered: 2007-02-12
- Posts: 3
Re: Installation problem
Code:
#!/usr/bin/perl ################################################### # # Copyright 2005-2007 Tian # # This file is part of GCstar. # # GCstar is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # GCstar is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GCstar; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # ################################################### use strict; use utf8; my $initTime; if ($ENV{GCS_PROFILING} > 0) { eval 'use Time::HiRes'; eval '$initTime = [Time::HiRes::gettimeofday()]'; } my $VERSION = '1.1.1'; my $MULTI_PROCESS = 1; use Getopt::Long; use File::Path; use File::Spec; use FindBin qw($RealBin); use POSIX qw(locale_h); $ENV{GCS_BIN_DIR} = $RealBin; ($ENV{GCS_LIB_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/lib\/gcstar/; ($ENV{GCS_SHARE_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/share\/gcstar/; use lib File::Spec->canonpath("$RealBin/../lib/gcstar"); #XDG stuff my $home = $ENV{'HOME'}; $home =~ s/\\/\//g if ($^O =~ /win32/i); $ENV{XDG_CONFIG_HOME} = $RealBin.'/../config' if ($^O =~ /win32/i); $ENV{XDG_CONFIG_HOME} = $home.'/.config' if ! exists $ENV{XDG_CONFIG_HOME}; mkpath $ENV{XDG_CONFIG_HOME}; $ENV{XDG_DATA_HOME} = $RealBin.'/../data' if ($^O =~ /win32/i); $ENV{XDG_DATA_HOME} = $home.'/.local/share' if ! exists $ENV{XDG_DATA_HOME}; mkpath $ENV{XDG_DATA_HOME}; $ENV{GCS_CONFIG_HOME} = $ENV{XDG_CONFIG_HOME}.'/gcstar'; $ENV{GCS_CONFIG_HOME} = $ENV{XDG_CONFIG_HOME} if ($^O =~ /win32/i); mkdir $ENV{GCS_CONFIG_HOME}; mkdir $ENV{GCS_CONFIG_HOME}.'/GCModels/'; $ENV{GCS_CONFIG_FILE} = $ENV{GCS_CONFIG_HOME}.'/GCstar.conf'; $ENV{GCS_DATA_HOME} = $ENV{XDG_DATA_HOME}.'/gcstar'; $ENV{GCS_DATA_HOME} = $ENV{XDG_DATA_HOME} if ($^O =~ /win32/i); mkdir $ENV{GCS_DATA_HOME}; use GCOptions; my $options = new GCOptionLoader($ENV{GCS_CONFIG_FILE}, 1); my $lang = $options->getFullLang; $ENV{LANG} = $lang; $ENV{LANGUAGE} = $lang; $ENV{LC_ALL} = $lang; $ENV{LC_CTYPE} = $lang; setlocale(LC_ALL, $lang); sub usage { print "Usage: $0 [-u UPDATE-OPTIONS] [-x EXECUTE-OPTIONS] [FILENAME] Launch GCstar, a personal collection manager. Without any option, it will open FILENAME if specified or the previously opened file. Update options: -u, --update Tell GCstar to look for available updates -a, --all Update all components -c, --collection Update collection models -w, --website Update plugins to download information -i, --import Update plugins to import data -e, --export Update plugins to export data -l, --lang Update translations -n, --noproxy Don't ask for a proxy Execute options: -x, --execute Enter non-interactive mode -c, --collection MODEL Specify the collection type -w, --website PLUGIN Specify the plugin to use to download information -i, --import PLUGIN Specify the plugin to use to import a collection -e, --export PLUGIN Specify the plugin to use to export the collection -f, --fields FILENAME File containing fields list to use for import/export -o, --output FILENAME Write output in FILENAME instead of standard output --download TITLE Search for the item with TITLE as name --importprefs PREFERENCES Preferences for the import plugin --exportprefs PREFERENCES Preferences for the export plugin Preferences for import/export plugins are specified using this schema: \"Key1=>Value1,Key2=>Value2\" Environment variables: \$HOME Used to defined following variables if needed \$XDG_CONFIG_HOME Where configuration files should be stored If not defined: \$HOME/.config \$XDG_DATA_HOME Where some data will be stored If not defined: \$HOME/.local/share Bugs reporting: To report bugs, please use this form: https://gna.org/bugs/?func=additem&group=gcstar "; } Getopt::Long::Configure ('bundling'); my ($help, $update, $toBeUpdated, $noProxy) = (0, 0, {}, 0); my ($collection, $website, $import, $export) = (undef, undef, undef, undef); my ($execute, $title, $output, $inPrefs, $outPrefs, $fields) = (0, '', '', '', '', ''); (usage, exit 1) if !GetOptions("h|help" => \$help, "u|update" => \$update, "x|execute" => \$execute, "a|all" => \$toBeUpdated->{all}, "c|collection:s" => \$collection, "w|website:s" => \$website, "i|import:s" => \$import, "e|export:s" => \$export, "l|lang" => \$toBeUpdated->{lang}, "n|noproxy" => \$noProxy, "download=s" => \$title, "o|output=s" => \$output, "importprefs=s" => \$inPrefs, "exportprefs=s" => \$outPrefs, "f|fields=s" => \$fields, ); my $atLeastOne = 0; foreach (keys %$toBeUpdated) { $atLeastOne = 1 if $toBeUpdated->{$_}; } (usage, exit 1) if $help || ($atLeastOne && !$update); if ($update) { eval ' use GCUpdater; use GCLang; '; my $langContainer = $GCLang::langs{$options->lang}; $toBeUpdated->{all} = 1 if !$atLeastOne; $toBeUpdated->{models} = defined($collection); $toBeUpdated->{plugins} = defined($website); $toBeUpdated->{import} = defined($import); $toBeUpdated->{export} = defined($export); my $updater = new GCTextUpdater($langContainer, $ENV{GCS_LIB_DIR}, $toBeUpdated, $noProxy, $VERSION); $updater->update; exit 0; } elsif ($execute) { use GCCommandLine; my $execution = new GCCommandExecution($options, $collection, $website, $import, $export, $output); if ($ARGV[0]) { if ($import) { $execution->import($ARGV[0], $inPrefs); } else { $execution->open($ARGV[0]); } } $execution->setFields($fields) if $fields; $execution->load($title) if $title; if ($export) { $execution->export($outPrefs); } else { $execution->save; } exit 0; } if ($ARGV[0]) { # We have to make it absolute if needed my $file = $ARGV[0]; $file = File::Spec->rel2abs($file) if (!File::Spec->file_name_is_absolute($file)); $options->file($file); } my $pid; if ($MULTI_PROCESS) { pipe(RCOMMAND, WCOMMAND); pipe(RDATA, WDATA); if ($^O !~ /win32/i) { if (!($pid = fork)) { use GCPlugins; close WCOMMAND; close RDATA; my $searchJob = new GCPluginJob(\*RCOMMAND, \*WDATA); $searchJob->run; } } } use Gtk2; use GCMainWindow; my %searchJob = {}; if ($MULTI_PROCESS) { close RCOMMAND; close WDATA; %searchJob = ( pid => $pid, command => \*WCOMMAND, data => \*RDATA ); if ($^O =~ /win32/i) { close WCOMMAND; close RDATA; } } Gtk2->init; my $window = new GCFrame($options, $VERSION, \%searchJob); #Gtk2->set_locale; Gtk2->main; if ($^O =~ /win32/i) { # We store the language in .bat file if possible my $batch = 'gcstar.bat'; if (-w $batch) { local $/ = undef; open BATCH, "<$batch"; (my $bat = <BATCH>) =~ s/set LANG=.*$/set LANG=$options->lang/x; close BATCH; open BATCH, ">$batch"; print BATCH $bat; close BATCH; } } if ($ENV{GCS_PROFILING} > 0) { my $elapsed; eval '$elapsed = Time::HiRes::tv_interval($initTime)'; print "Elapsed : $elapsed\n"; } 0;
I think and hope that's what you were asking for - the other two files in the bin folder refuse to open, claiming that another program is using them. Please let me know if you need anything else or if the problem is not with GCstar!
Offline
#4 2007-02-19 07:48:03
Re: Installation problem
Hello,
Unfortunately, the correct file is gcstar.bat
This the one that is generated during installation. Did you perform all the steps mentioned before?
Could you please also try what is described there:
http://wiki.gcstar.org/en/install_windo … could_i_do
Offline
#5 2007-05-09 21:45:38
- Vaikyuko
- New member
- Registered: 2007-02-12
- Posts: 3
Re: Installation problem
Sorry for the incredibly long delay between posts, but I finally have the contents of the .bat file, I think.
Code:
@echo off cd %0\.. set PATH=..\usr\bin;%PATH% set LANG=EN start "" "C:\Perl\bin\wperl.exe" gcstar %1
I recently went and uninstalled everything, reinstalled it (this includes the Gtk stuff), and then ran GCStar. I still got the same problem.
Offline
Should you have a problem using GCstar, you can open a bug report or request some support on GCstar forums.