Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Sorry Jonas, please ignore this one and move on to the next reply. Don't quite know what I've done, but ended up with a very wide page. Apologies - new to forums like this!
Dear Jonas,
Sorry for seemingly vanishing without trace, but I got distracted by another little package from the same source, called jMax. Similar to OpenMusic, so I've been teaching myself the basics of computer-assisted composition (I am a professional composer, but this is a new field for me).
Quote:
By the way, does this mean you have solved this problem?
Well, not quite. I think the problem I was having was due to the fact that a lot of the stuff I thought I had to install by hand was actually already there. I mean, gtk canvas is just gnome canvas (so I understand), so there was no need for me to try and install it. I've moved on from that now, and have encountered some successes and a few more problems (I'm on a steep learning curve after all!).
I have to install omlinux-clg, which are the gtk bindings (whatever that means - though I have a vague idea) for common lisp. I had to install common lisp, which I put in a directory called CMUCL_DIR in /usr/local/bin. I had to pass several options to ./configure in order to get omlinux-clg to find the directory, which eventually it did (kept reporting 'no such file or directory', then when it found the directory it couldn't find the lisp header file which I'd patched, but finally did). My problem now is this, which I really DON'T understand -
Code:
checking whether lisp is CMUCL... yes
checking for CMUCL library directory... /usr/local/bin/CMUCL_DIR/bin/./.
checking for /usr/local/bin/CMUCL_DIR/include... yes
checking whether calling lisp code from C works...
configure: error: Could not compile file to test dynamic loading
This is part of the config.log -
Code:
configure:2845: checking for /usr/local/bin/CMUCL_DIR/include
configure:2860: result: yes
configure:2872: checking whether calling lisp code from C works
configure:2888: gcc -c -g -O2 -I -I/usr/local/bin/CMUCL_DIR conftest.c -o conftest.o
conftest.c:1:18: error: lisp.h: No such file or directory
conftest.c:2: error: syntax error before 'funcall1'
conftest.c:2: error: syntax error before 'function'
conftest.c:2: warning: data definition has no type or storage class
conftest.c:3: error: syntax error before 'lisp_callback'
conftest.c:3: warning: data definition has no type or storage class
conftest.c: In function 'callback':
conftest.c:7: error: 'lispobj' undeclared (first use in this function)
conftest.c:7: error: (Each undeclared identifier is reported only once
conftest.c:7: error: for each function it appears in.)
conftest.c:7: error: syntax error before 'result'
conftest.c:8: error: 'result' undeclared (first use in this function)
conftest.c:9: warning: incompatible implicit declaration of built-in function 'exit'
configure:2891: $? = 1
configure: failed program was:
#include <lisp.h>
extern lispobj funcall1(lispobj function, lispobj arg0);
lispobj lisp_callback;
void callback (char *string)
{
lispobj result;
result = funcall1 (lisp_callback, alloc_number (string));
exit (fixnum_value (result));
}
configure:2937: error: Could not compile file to test dynamic loading
And now for something completyely different...
As you know I am currently running Ubuntu through VMware player. A couple of weeks ago, however, when I first started getting interested in the whole GNU/linux thing, I attempted a net install of Debian, with an XP dual boot. The network configuration didn't work, so I couldn't complete the installation (I'm on a linksys wireless network, so perhaps that's why). For the past few weeks I've had a dual boot of XP and just the base Debian system. I recently did a base-reconfigure with an Ubuntu iso, so now I have - effectively - a Breezy Badger base (though perhaps not? It calls itself Ubuntu, anyway). I've now begun to install stuff off this CD, beginning with Xwindows and Gnome. However I can't get X to start. After typing 'startx' I get -
Code:
X: Cannot stat /etc/X11/X (No such file or directory), aborting.
giving up.
Xinit: Network is unreachable (error 101): unable to connect to
X server
Xinit: No such process (error 3): Server error
Indeed, there's no X11 (I read that that's the place to look to troubleshoot configuration). Would welcome help on this more than the first problem, as I'm now really keen to get a proper linux system up and running and leave Windows behind where it belongs...
Many thanks,
Chris
P.S: I've heard that X sometimes has problems with graphics cards. I have a Dell Dimension3000 with an Intel 82865G Graphics Controller.
Dear Jonas,
Sorry for seemingly vanishing without trace, but I got distracted by another little package from the same source, called jMax. Similar to OpenMusic, so I've been teaching myself the basics of computer-assisted composition (I am a professional composer, but this is a new field for me).
Quote:
By the way, does this mean you have solved this problem?
Well, not quite. I think the problem I was having was due to the fact that a lot of the stuff I thought I had to install by hand was actually already there. I mean, gtk canvas is just gnome canvas (so I understand), so there was no need for me to try and install it. I've moved on from that now, and have encountered some successes and a few more problems (I'm on a steep learning curve after all!).
I have to install omlinux-clg, which are the gtk bindings (whatever that means - though I have a vague idea) for common lisp. I had to install common lisp, which I put in a directory called CMUCL_DIR in /usr/local/bin. I had to pass several options to ./configure in order to get omlinux-clg to find the directory, which eventually it did (kept reporting 'no such file or directory', then when it found the directory it couldn't find the lisp header file which I'd patched, but finally did). My problem now is this, which I really DON'T understand -
Code:
checking whether lisp is CMUCL... yes
checking for CMUCL library directory... /usr/local/bin/CMUCL_DIR/bin/./.
checking for /usr/local/bin/CMUCL_DIR/include... yes
checking whether calling lisp code from C works...
configure: error: Could not compile file to test dynamic loading
This is part of the config.log -
Code:
configure:2845: checking for /usr/local/bin/CMUCL_DIR/include
configure:2860: result: yes
configure:2872: checking whether calling lisp code from C works
configure:2888: gcc -c -g -O2 -I -I/usr/local/bin/CMUCL_DIR conftest.c -o conftest.o
conftest.c:1:18: error: lisp.h: No such file or directory
conftest.c:2: error: syntax error before 'funcall1'
conftest.c:2: error: syntax error before 'function'
conftest.c:2: warning: data definition has no type or storage class
conftest.c:3: error: syntax error before 'lisp_callback'
conftest.c:3: warning: data definition has no type or storage class
conftest.c: In function 'callback':
conftest.c:7: error: 'lispobj' undeclared (first use in this function)
conftest.c:7: error: (Each undeclared identifier is reported only once
conftest.c:7: error: for each function it appears in.)
conftest.c:7: error: syntax error before 'result'
conftest.c:8: error: 'result' undeclared (first use in this function)
conftest.c:9: warning: incompatible implicit declaration of built-in function 'exit'
configure:2891: $? = 1
configure: failed program was:
#include <lisp.h>
extern lispobj funcall1(lispobj function, lispobj arg0);
lispobj lisp_callback;
void callback (char *string)
{
lispobj result;
result = funcall1 (lisp_callback, alloc_number (string));
exit (fixnum_value (result));
}
configure:2937: error: Could not compile file to test dynamic loading
And now for something completely different...
As you know I am currently running Ubuntu through VMware player. A couple of weeks ago, however, when I first started getting interested in the whole GNU/linux thing, I attempted a net install of Debian, with an XP dual boot. The network configuration didn't work, so I couldn't complete the installation (I'm on a linksys wireless network, so perhaps that's why). For the past few weeks I've had a dual boot of XP and just the base Debian system. I recently did a base-reconfigure with an Ubuntu iso, so now I have - effectively - a Breezy Badger base (though perhaps not? It calls itself Ubuntu, anyway). I've now begun to install stuff off this CD, beginning with Xwindows and Gnome. However I can't get X to start. After typing 'startx' I get -
Code:
X: Cannot stat /etc/X11/X (No such file or directory), aborting.
giving up.
Xinit: Network is unreachable (error 101): unable to connect to
X server
Xinit: No such process (error 3): Server error
Indeed, there's no X11 (I read that that's the place to look to troubleshoot configuration). Would welcome help on this more than the first problem, as I'm now really keen to get a proper linux system up and running and leave Windows behind where it belongs...
Many thanks,
Chris
P.S: I've heard that X sometimes has problems with graphics cards. I have a Dell Dimension3000 with an Intel 82865G Graphics Controller.
Dear Jonas,
Sorry for seemingly vanishing without trace
No problem--I keep myself in `reactive mode'.
Quote:
I have to install omlinux-clg, which are the gtk bindings (whatever that means - though I have a vague idea) for common lisp.
I'll try to explain the concept of `bindings'. gtk is written in C, whereas OM is written in common lisp. C is different from (CMU) common lisp in some important low-level areas, such as data layout and how to call functions. A set of bindings is a translation (or dictionary, if you will) that sorta' bridges the gap between the two languages with respect to (in this particular case) gtk.
Quote:
I had to install common lisp, which I put in a directory called CMUCL_DIR in /usr/local/bin.
I can't remember the CMUCL directory structure, but it'd probably be more "normal" to install in /usr/local/cmucl, and then put a symlink to the binary in /usr/local/bin. But if you can make it work your way, more power to you!
Quote:
My problem now is this, which I really DON'T understand -
Code:
checking whether lisp is CMUCL... yes
checking for CMUCL library directory... /usr/local/bin/CMUCL_DIR/bin/./.
checking for /usr/local/bin/CMUCL_DIR/include... yes
checking whether calling lisp code from C works...
configure: error: Could not compile file to test dynamic loading
This is part of the config.log -
Code:
configure:2845: checking for /usr/local/bin/CMUCL_DIR/include
configure:2860: result: yes
configure:2872: checking whether calling lisp code from C works
configure:2888: gcc -c -g -O2 -I -I/usr/local/bin/CMUCL_DIR conftest.c -o conftest.o
conftest.c:1:18: error: lisp.h: No such file or directory
conftest.c:2: error: syntax error before 'funcall1'
conftest.c:2: error: syntax error before 'function'
conftest.c:2: warning: data definition has no type or storage class
conftest.c:3: error: syntax error before 'lisp_callback'
conftest.c:3: warning: data definition has no type or storage class
conftest.c: In function 'callback':
conftest.c:7: error: 'lispobj' undeclared (first use in this function)
conftest.c:7: error: (Each undeclared identifier is reported only once
conftest.c:7: error: for each function it appears in.)
conftest.c:7: error: syntax error before 'result'
conftest.c:8: error: 'result' undeclared (first use in this function)
conftest.c:9: warning: incompatible implicit declaration of built-in function 'exit'
configure:2891: $? = 1
configure: failed program was:
#include <lisp.h>
extern lispobj funcall1(lispobj function, lispobj arg0);
lispobj lisp_callback;
void callback (char *string)
{
lispobj result;
result = funcall1 (lisp_callback, alloc_number (string));
exit (fixnum_value (result));
}
configure:2937: error: Could not compile file to test dynamic loading
The key line is "conftest.c:1:18: error: lisp.h: No such file or directory", and the rest is really just a consequence of gcc being unable to find lisp.h (at least that's my qualified guess based on my experince writing C and compiling it with gcc). There's a ./configure option to tell it where lisp.h is--I think it's --with-lisp-include (but do a ./configure --help | less yourself). Setting this to the correct value should fix the issue.
By the way, it would have been helpful if you had also posted the complete ./configure command line you ran (and any config options stored elsewhere--if there were any; I'm not even sure if and how this is possible, though). If you have future problems with configure (in full generality) post the command line you run as well as the output. script(1) will make it easier, but it'll also include the "terminal-markup" characters, so sometimes doing a copy-paste is the optimal.
Quote:
And now for something completyely different...
A couple of weeks ago, however, when I first started getting interested in the whole GNU/linux thing, I attempted a net install of Debian, with an XP dual boot (...) as I'm now really keen to get a proper linux system up and running and leave Windows behind where it belongs...
I'm glad you've decided to migrate, and I hope you'll find GNU/Linux to your liking. I once heard someone say "It's a bumpy road, but in the end it's all worth it", a statement I agree with completely. By now you've seen the bumps--so I hope you'll persevere and reach the point where it's all worth it.
By the way, the X problem (probably) isn't due to anything with the graphics drivers: the program itself seems to be missing ("could not stat ..."). However, I have no clue how that's possible.
I suggest you create a new thread regarding the X problem. An in my opinion fairly good thread title is "startx fails: Cannot stat /etc/X11/X", and include at least the information you've included here.
If you know how to use emacs, I suggest you run M-x debian-bug (or, if such a function exists, ubuntu-bug) against xserver-xorg (I assume you run X.org and not Xfree86; you can do a dpkg -L xserver-xorg to be sure: it'll complain if xserver-xorg is not installed, and list a bunch of files if it's installed), and paste the output into your problem report of that thread.
By the way, a better title for this thread would have been "configuring/installing OpenMusic on Ubuntu"--that tells the potential readers more about what the thread is about. Don't take this as... well, in fact it is criticism... hmm... "away put your hurt feelings, I mean you no harm" .
By the way, I have difficulty is estimating what kind of user you are. I guesstimate you know a thing or two about programming (OpenMusic is programmable, after all), but it's somewhat limited (otherwise you'd probably have figured out what the gcc output meant)--but still you have an idea about what bindings are. Also, you're new to GNU/Linux (that's pretty obvious), but seem to catch on fairly quickly, so I guess you're fairly competent around computers. You're a professional composer, but yet you say "to a fellow student" to me. I'd be happe to see any corrections and additions to this, so I can better tailor my responses to you.
Dear Jonas,
About the 'professional composer' bit - as I was writing it I was having second thoughts! I'm professional in the sense that it's my vocation, my calling in life, as it were. Actually the kind of music I write is rather difficult to earn a living from. I'm within weeks of completing my PhD in composition at Cardiff University. So I'm also in the process of finding myself a job - hopefully a post in a music department somewhere. My ideal job is as a 'composer in residence', and I have an interview for such a post in two weeks time.
I have an undergraduate degree in philosophy as well as music, so I'm no stranger to abstract thinking. I've been using a lot of notation software on Windows, such as Sibelius and Finale, which require at least a working knowledge of how a PC operates, and how to configure things. With linux I feel that it's very much a 'learn on the job' thing, and although it's sometimes frustrating it's also hugely enjoyable, and rewarding too.
I have now managed to move forward quite a bit on my real Ubuntu install. After quite a bit of exploration, finding out what I did and didn't have, I tried apt-get ubuntu desktop. So it just picked it all up off the CD, 622 packages in total! Everything's there, Gnome, Firefox, OpenOffice, etc, etc, all the essential packages, libs and devs. I tried startx again, and got this (sorry, lost code tags during a re-edit)-
Data incomplete in the file /etc/X11/xorg.conf
At least one Device section is required.
(EE)Problem parsing the config file
(EE)Error parsing the config file
Fatal server error:
no screens found
This means, I believe, that X simply hasn't configured properly. From googling the topic I gather that this is not an uncommon problem. I suspect this is all to do with devices and network things not being picked up, or being misconfigured - I went through a few screens during the desktop install and just accepted the defaults, but I suspect maybe I've mucked it up slightly. My network itself does seem to be doing something now, at least - I did ifconfig and there's clearly been some activity. Anyway, I'll google a bit more on the X thing, and possibly start a new thread (and any suggestions from yourself would of course be welcome. I think the solution might be dpkg-reconfigure xserver-xorg). I'm not worried about this, actually, because I feel that quite soon I'm going to crack it and get my dual boot up and running like the rest of you true linuxers! Or single boot, even!
Best wishes and many, many thanks,
Chris
P.S: Sorry about the double post above, I was having a few 'issues' with Konqueror and somehow went back over myself. In programming terms OpenMusic is probably fairly unsophisticated, but it's mainly a graphical environment that allows the composer to do musically very complex things - such as analyse and manipulate sound spectra, note rows, rhythms, etc and create complex environments in which these musical objects interact. It was developed at IRCAM, which is underneath the Pompidou Centre in Paris.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.