extracting warzone 2100 tar.gz file

hey everyone-
I was trying to extract the warzone 2100.tar.gz file in the terminal (12.1 suse) using tar -zxvf command. The response was
tar (child): warzone2100-2.3.9.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
I am training myself for the comptia linux+ so I wanted to try and do it from the command line…? Any help would be greatly appreciated! thanks

You’re spelling the filename incorrectly. Go in to the directory with the file. Type

tar -zxvf w

and hit tab key two times. Bash should autocomplete the name for you. If not try the next letter and double tab.

Oh and please use code tags for computer output :
http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/advanced-how-faq-read-only/451526-posting-code-tags-guide.html

thanks. that helped me find it. i extracted the files and tried to configure and this was the output:

#./configure
configure: loading site script /usr/share/site/i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/daniel/Downloads/warzone2100-2.3.9':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.#

That means you don’t have a compiler installed on your system. You need to install build essentials pattern. This command should help.

zypper in -t pattern devel_basis

Note that you need to run this as root for it to work. You can also do this with YaST if that’s your preference.

thanks again. I installed 93 packages using that command you referred me to. I tried to configure again and this was the output:

./configure
configure: loading site script /usr/share/site/i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for gcc... ccompiler
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for g++... cxxcompiler
checking for bison... bison -y
checking for bison >= 1.31... found 2.5, ok
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for flex >= 2.5.33... found 2.5.35, ok
checking for flex != 2.5.34... not found, good
checking whether perl executable path has been provided... no
checking for perl... /usr/bin/perl
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for perl version... This is perl 5, version 14, subversion 2 (v5.14.2) built for i586-linux-thread-multi
checking for gawk... (cached) gawk
checking for zip... zip
checking for unzip... unzip
checking for a2x... no
checking for wkhtmltopdf... no
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for strlcpy... no
checking for strlcat... no
checking whether gcc -std=gnu99 accepts -fstack-protector... yes
checking whether g++ accepts -fstack-protector... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config >= 0.9... found 0.25, ok
checking whether to build NSIS installer... no
checking whether to compile in debug mode... no
checking whether the C compiler accepts the -Werror -Wno-switch flag... yes
checking whether the C compiler accepts the -Werror -Wno-enum-compare flag... yes
checking for SDL... configure: error: Package requirements (sdl >= 1.2) were not met:

No package 'sdl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SDL_CFLAGS
and SDL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Hmm you’re still missing some packages to compile this properly but I’m not sure what. Search for packages with sdl :slight_smile: and install the ones you don’t have this command should help :

zypper se sdl

Alternatively wait here for someone who knows what you actually need. Another option would be to read the readme in the tar.gz file. It should contain more information on what you need.

thanks glistwan, I’ve been individually installing specific packages it mentions since your last post. probably too much output to post here. my final output was:

configure: loading site script /usr/share/site/i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for gcc... ccompiler
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for g++... cxxcompiler
checking for bison... bison -y
checking for bison >= 1.31... found 2.5, ok
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for flex >= 2.5.33... found 2.5.35, ok
checking for flex != 2.5.34... not found, good
checking whether perl executable path has been provided... no
checking for perl... /usr/bin/perl
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for perl version... This is perl 5, version 14, subversion 2 (v5.14.2) built for i586-linux-thread-multi
checking for gawk... (cached) gawk
checking for zip... zip
checking for unzip... unzip
checking for a2x... no
checking for wkhtmltopdf... no
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for strlcpy... no
checking for strlcat... no
checking whether gcc -std=gnu99 accepts -fstack-protector... yes
checking whether g++ accepts -fstack-protector... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config >= 0.9... found 0.25, ok
checking whether to build NSIS installer... no
checking whether to compile in debug mode... no
checking whether the C compiler accepts the -Werror -Wno-switch flag... yes
checking whether the C compiler accepts the -Werror -Wno-enum-compare flag... yes
checking for SDL... yes
checking for PNG... yes
checking for THEORA... yes
checking for OPENAL... yes
checking for OGGVORBIS... yes
checking for GLee... no
checking for GLee.h... 
checking for GLee.h with -I/usr/local/include/GL... no
checking for GLee.h with -I/usr/include/GL... no
checking GLee.h usability... no
checking GLee.h presence... no
checking for GLee.h... no
configure: Using integrated GLee
checking for nearbyint in -lm... yes
checking for XSetSelectionOwner in -lX11... yes
checking Xm/Xm.h usability... no
checking Xm/Xm.h presence... no
checking for Xm/Xm.h... no
checking for XmCreateErrorDialog in -lXm... no
checking popt.h usability... yes
checking popt.h presence... yes
checking for popt.h... yes
checking for poptGetContext in -lpopt... yes
checking physfs.h usability... yes
checking physfs.h presence... yes
checking for physfs.h... yes
checking for PHYSFS_init in -lphysfs... yes
checking SDL_opengl.h usability... yes
checking SDL_opengl.h presence... yes
checking for SDL_opengl.h... yes
checking for main in -lGL... yes
checking for main in -lGLU... yes
checking GL/glc.h usability... yes
checking GL/glc.h presence... yes
checking for GL/glc.h... yes
checking for main in -lGLC... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating build_tools/Makefile
config.status: creating build_tools/autorevision/Makefile
config.status: creating icons/Makefile
config.status: creating data/Makefile
config.status: creating data/mods/Makefile
config.status: creating data/mods/multiplay/Makefile
config.status: creating data/music/Makefile
config.status: creating pkg/Makefile
config.status: creating pkg/nsis/Makefile
config.status: creating win32/Makefile
config.status: creating lib/Makefile
config.status: creating lib/framework/Makefile
config.status: creating lib/exceptionhandler/Makefile
config.status: creating lib/gamelib/Makefile
config.status: creating lib/iniparser/Makefile
config.status: creating lib/ivis_opengl/Makefile
config.status: creating lib/ivis_common/Makefile
config.status: creating lib/netplay/Makefile
config.status: creating lib/netplay/miniupnpc/Makefile
config.status: creating lib/script/Makefile
config.status: creating lib/sequence/Makefile
config.status: creating lib/sound/Makefile
config.status: creating lib/widget/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure: 
configure: WARNING: Distributor unknown!
configure: Use --with-distributor when compiling package for distribution
configure: 
configure: WARNING: a2x (asciidoc) or wkhtmltopdf not found, can't convert documentation. This doesn't affect building the game,
                but means that things like "make dist" and building a Windows installer will fail.

I found in the warzone2100 forums http://forums.wz2100.net/viewtopic.php?f=4&t=2066&start=15 that some one else ran into this same issue. I also ran into the same error after trying the make command and am currently unsure what to do next. i performed make uninstall && make clean. then installed package libphysfs-devel

after giving the command make, i get an error after the code compiles:

/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: ../lib/sequence/libsequence.a(sequence.o): undefined reference to symbol 'vorbis_block_clear'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'vorbis_block_clear' is defined in DSO /usr/lib/libvorbis.so.0 so try adding it to the linker command line
/usr/lib/libvorbis.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [warzone2100] Error 1
make[3]: Leaving directory `/home/daniel/Downloads/warzone2100-2.3.9/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/daniel/Downloads/warzone2100-2.3.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/daniel/Downloads/warzone2100-2.3.9'
make: *** [all] Error 2


And what does ./configure say now ?

One more remark. Don’t use make install. Instead install checkinstall with YaST and after running make without errors use checkinstall to create an .rpm file from make output. This way it’s much easier to uninstall the application you need.

./configure says the same thing… im totally stumped :confused:
I’m still pretty new to linux, however…

Changeset 411e4ac – Warzone 2100 Trac might be the solution but I am unsure in where in the configure.ac file that i make the correction

On 05/26/2012 08:16 PM, dtmc wrote:
>
> #./configure

to me, the above means you are running ./configure as root, do NOT do that!

run both ./configure and make as a normal, non-root, user and then su -
to root to run make install (if you want to install at system level,
so all users have access to the application–that is, if you only want
yourself to have access, you will not need root powers at all)…

otherwise it is normal to expect problems of various sorts [including
SECURITY] if you use root when it is not necessary…

lots more, here http://en.opensuse.org/SDB:Compiling_software
which is a how-to, and would/could have (probably) got you on the right
road 24 hours ago…


dd

Thanks dd. I really don’t want to give up, but I don’t know what else to try. Seems to be a bug with openSUSE and I’m not sure I’ve edited the files properly because it still isn’t running make successfully…

Hi
You need to add the linker flag for libvorbis in the configure.am or
configure.in file then run autoreconf -fi before configure.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 1 day 20:19, 3 users, load average: 0.02, 0.05, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi
Looks like it’s already in the games repo…
http://software.opensuse.org/package/warzone2100

And the patch;
https://build.opensuse.org/package/view_file?file=warzone-link-vorbis.patch&package=warzone2100&project=games&rev=f8d0520e188cd13a09f758f257c42dd5


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 1 day 20:29, 3 users, load average: 0.04, 0.07, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Thanks Malcom! I got it working so far from the repository. I figure I went above and beyond the exercise in my ‘LPI Cert in a nutshell’ book by extracting, configuring,compiling several packages (instead of one).

Hi
The error in the configure command is pretty common these days, it’s
just a matter of working out the required flag in the relevant
configure file and reconfiguring.

For example;
http://sourceforge.net/tracker/?func=detail&atid=102439&aid=3469056&group_id=2439


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 2 days 0:40, 4 users, load average: 0.06, 0.04, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Just for curious, why don’t you install the precompiled package for
openSUSE?

Hi
The OP did in the end… :wink: The OP was seeing how to compile a
program…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 20:47, 3 users, load average: 0.12, 0.05, 0.06
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

My bad, sorry, I must read the entire thread before post anything :S