SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'll start this by saying that I've looked all over the place using both google and the search function on here. I've tried so very hard to find a solution to my problem, but to no avail. So i turn to you, dear linuxquestions members, and humbly admit that i have no idea what to do next.
A quick and dirty history of what i've done so far:
Tried to ./Configure unrealircd
Ran into major problems (no compiler installed? Oh noes!)
Installed gcc (all of it) using swaret
Tried again, more problems
Installed binutils using swaret (or slackpkg, maybe)
Updated links in /usr/src/
Tried again, more problems
So i give you this, for starters. It's fairly self-explanatory (i hope):
Code:
root@mwowm:~/Unreal3.2.5/Unreal3.2# echo 'main(){}' >> test.cpp
root@mwowm:~/Unreal3.2.5/Unreal3.2# g++ -v test.cpp
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6
/usr/libexec/gcc/i486-slackware-linux/3.4.6/cc1plus -quiet -v -D_GNU_SOURCE test.cpp -quiet -dumpbase test.cpp -mtune=i486 -auxbase test -version -o /tmp/ccOpkdqz.s
ignoring duplicate directory "/usr/lib/qt/include"
ignoring nonexistent directory "/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/qt/include
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/i486-slackware-linux
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/backward
/usr/local/include
/usr/lib/gcc/i486-slackware-linux/3.4.6/include
/usr/include
End of search list.
GNU C++ version 3.4.6 (i486-slackware-linux)
compiled by GNU C version 3.4.6.
GGC heuristics: --param ggc-min-expand=42 --param ggc-min-heapsize=23755
test.cpp: In function `int main()':
test.cpp:2: error: redefinition of `int main()'
test.cpp:1: error: `int main()' previously defined here
root@mwowm:~/Unreal3.2.5/Unreal3.2#
Although i'm sure that this plainly says what's going wrong here, i can't seem to figure it out. Would it help if i pasted the log of the errors encountered when attempting to configure unreal?
Any help would be greatly appreciated, and i will reward the poster(s) of said help with many a free internet.
That got me a bit farther, i installed them using slackpkg.
New problem is this:
./configure: line 12689: make: command not found
So... i need to, like... install "make"?
I should point out that although i might sound like i have some idea of what I'm doing, I'm completely new to compiling things. One of my earlier problems (yesterday) what that although i had the compiler installed, i didn't have the assembler.
root@mwowm:~/Unreal3.2.5/Unreal3.2# g++ -O test.cpp
test.cpp: In function `int main()':
test.cpp:2: error: redefinition of `int main()'
test.cpp:1: error: `int main()' previously defined here
root@mwowm:~/Unreal3.2.5/Unreal3.2#
To add a complete development system you'll need to install the packages from the Slackware D (development) and L (libraries) series using the installpkg package utility. For example, if you've mounted a Slackware CD on /mnt/cdrom:
cd /mnt/cdrom/slackware
installpkg d/*.tgz l/*.tgz
Note that this will add more than 300MB of software, so you'd better have the space for it! If you're looking to add a more modest development environment for C and C++, you'll need at least these packages for good results:
binutils: binutils (GNU binary development tools)
binutils:
binutils: Binutils is a collection of binary utilities. It includes "as" (the
binutils: portable GNU assembler), "ld" (the GNU linker), and other utilities
binutils: for creating and working with binary programs.
binutils:
binutils: These utilities are REQUIRED to compile C, C++, Objective-C, Fortran,
binutils: and most other programming languages.
I've found that by installing all of the D series and L series I rarely have to worry during 99% of my compiles.
Thanks, though as you were typing that, it was successfully compiling.
My mistake (probably common) was that when installing Slackware, i decided not to install the /d stuff. No gcc, no nothing. The problem that i faced in trying to do so, after the fact, was that even though slackware has a million different tools for dealing with packages, there is atrocious neglect of dependencies.
What i found was that i was installing gcc, then trying ot compile. That wasn't working, so i installed binutils. Still not working, i installed my kernel headers. Guess what happened next? Not working. On to installing Make... you get the idea.
After every install, i was reminded that my @$$ was totally covered (dependency-wise). That was not, however, entirely true.
In retrospect, i suppose that i should have gone back to the Slack CD's and just installed everything from /d.
So in the end, not unlike in windows, i was stuck pulling out my hair and installing and installing and installing, until it worked.
Thanks a bunch for the help, though, both of you. I've taken the liberty of forwarding you several internets.
binutils
gcc(plus whatever other compiler -in your case g++
make
kernel headers
full glibc from the /l directory
You also usually need sed and perl installed.
For autoconf sources such as you are compiling you need:
autoconf
automake
m4
libtool
If compiling anything using GTK-2 libs you'll need pkgconfig installed also.
Exactly.
Looking back at this whole thing, i wish that when i'd installed gcc (or any of what i installed) it had pointed out that what i was installing was only part of what i needed.
Quote:
Everything else is pretty much gravy.
Well, yeah.
But getting to there is... well... what's the opposite of gravy?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.