Thanks Jason, I finished it.
Thanks, it seems to me working now. What directory whoud I place my html & php files in for apache?
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.3.10-1ubuntu3.2_amd64.deb 404 Not Found [IP: 91.189.92.190 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php5_5.3.10-1ubuntu3.2_amd64.deb 404 Not Found [IP: 91.189.92.190 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5_5.3.10-1ubuntu3.2_all.deb 404 Not Found [IP: 91.189.92.190 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli_5.3.10-1ubuntu3.2_amd64.deb 404 Not Found [IP: 91.189.92.190 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I'M trying to learn php and I use Mint Linux as my OS. I don't know if php is installed or not. I went to synaptic package manager and input php, I got back a big list of php-xyz packages and I dont' know which one to get. Any suggestions?
Thanks. I do have python3 installed. So how do I point Geany to python3 rather than python 2 which it is currently pointing to. I looked through preferences but couldn't find it.
data = open('sketch.txt')
for each_line in data:
try:
(role, line_spoken) = each_line.split(':', 1)
print(role, end='')
print(' said: ', end='')
print(line_spoken, end='')
except:
pass
data.close()
I'M gettin the following error when I run this code but it looks exactly like what I'M seeing in my Head First book.
File "sketch.py", line 6
print(role, end='')
^
SyntaxError: invalid syntax
------------------
(program exited with code: 1)
Press return to continue
Thanks. I'M not actually doing this on the LFS machine. That project was tough enuff on it's own.
-rwxr-xr-x 3 root root 7149032 Aug 12 18:04 python3
-rwxr-xr-x 3 root root 7149032 Aug 12 18:04 python3.2
What's the difference between these two? I got the with ls -l /usr/local/bin
File "/usr/local/lib/python3.2/distutils/archive_util.py", line 52, in make_tarball
tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress])
File "/usr/local/lib/python3.2/tarfile.py", line 1769, in open
stream = _Stream(name, filemode, comptype, fileobj, bufsize)
File "/usr/local/lib/python3.2/tarfile.py", line 421, in __init__
raise CompressionError("zlib module is not available")
tarfile.CompressionError: zlib module is not available
garrett@toshiba-laptop ~/Desktop/nester $
I'M getting the above error while trying to build a small module with the command "python3 setup.py sdist
nester.py
"""This is the "nester.py" module and it provides one function called
print_lol() which prints lists that may or may not include nested lists."""
def print_lol(the_list):
"""This function takes a positional argument called "the_list", which is any
Python list (of, possibly, nested lists). Each data itemin the provided list
is (recursibely) printed to the screen on it's own line."""
for each_item in the_list:
if isinstance(each_item, list):
print_lol(each_item)
else:
print(each_item)
movies = ["The Holy Grail", 1975, "Terry Jones & Terry Gilliam", 91,
["Graham Chapman",
["Michael Palin", "John Cleese", "Terry Gilliam", "Eric Idle", "Terry Jones"]]]
setup.py
from distutils.core import setup
setup(
name = 'nester',
version = '1.0.0',
py_modules = ['nester'],
author = 'hfpython',
author_email = 'hfpython@headfirstlabs.com',
url = 'http://www.headfirstlabs.com',
description = 'A simple printer of nested lists',
)
I'M trying to find the python3 file that would be the counterpart to the python3.exe in Windows. I want to point Geany to pyton3 rather that 2.7 which it's pointing to now. I don't even know if I found the right directory or not but I've attached a screenshot from /usr/bin, there are 3 python3 files. It's going to take some getting use to in Linux, in Windows this was easy > Program Files > Python > python3.exe. Thanks for any help and advice on how this typically works in Linux
movies = ["The Holy Grail", 1975, "Terry Jones & Terry Gilliam", 91,
["Graham Chapman",
["Michael Palin", "John Cleese", "Terry Gilliam", "Eric Idle", "Terry Jones"]]]
print(movies[4][1][3])
In the above code, how does [4][1][3] result in "Eric Idle"? It looks to me like the 4 selects Eric Idle becaue it's the 4th sting in that list, it also looks to me like the 3 selects that list because Eric Idle is in the 3rd list and I have no diea what the 1 might be going. And maybe I'M wrong all together.
I've been using audible.com for my audio books for a while now. I play my audiobooks through iTunes and my iPod. I really want to get away from Windows as much as possible and audible.com doesn't have any Linux support for their audiobooks, Linux simply can not play audible's formats. Does anyone know of any good alternative audiobook stores? Thanks.
http://cdimage.debian.org/debian-cd/6.0.5/i386/bt-cd/
I'M trying to download a Debian live cd but the link above has a list of 52s CD. I just need a live CD to boot from, what's up with 52 CDs?
I'M trying to work my way through the linux from scratch project and I'M on page http://www.linuxfromscratch.org/lfs/view/stable/chapter08/grub.html I've really messed up my boot up process. I did make a boot disk as descriped in the above link.The computer originally had Debian (CLI only) has the host system from which I was building my Linux from scratch system. Now when I turn on the computer it has one OS in the list that's labeled "GRUB Linux...........", when I click enter the screen goes black and says "Press any key to continue", then goes back to the boot loader with "GRUB Linux...........". If I boot the system with the book disk it's just a prompt that says GRUB. Can anyone tell me how to repair my Debian bootloader from my current state? Thanks.
I'M getting the follwoing error when I run make for the handbrake program.
fribidi -lpthread -ldl -lm -Wl,--end-group
/bin/mkdir -p gtk
set -e; cd ../gtk/; NOCONFIGURE=1 ./autogen.sh
**Error**: You must have `intltool' installed.
You can get it from:
ftp://ftp.gnome.org/pub/GNOME/
**Error**: You must have `glib' installed.
You can get it from: ftp://ftp.gtk.org/pub/gtk
make: *** [gtk/.stamp.configure] Error 1
This is what I get ohen I try to get glib
garrett@mint-desktop ~ $ sudo apt-get install glib
[sudo] password for garrett:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package glib
garrett@mint-desktop ~ $
Any ideas? Thanks.
It's a Linux from scratch distro, the host OS is just a CLI Debian. I re checked my script file in vi and I didn't see any new line characters or spaces at the end of any of the lines.
bash: bld: line 11: syntax error: unexpected end of file
I'M gettting the above when I source the attached script file. Can someone please let me know what I've got wrong here? Thanks The script file was build from the commands here > http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gmp.html
( ./configure --prefix=/usr --enable-cxx --enable-mpbsd 2>&1 | tee configure-gmp.log && exit $PIPESTATUS ) &&
( make 2>&1 | tee make-gmp.log && exit $PIPESTATUS ) &&
( make check 2>&1 | tee gmp-check-log &&
awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log &&
( make install 2>&1 | tee make-install.log && exit $PIPESTATUS ) &&
mkdir -v /usr/share/doc/gmp-5.0.4 &&
cp -v doc/{isa_abi_headache,configuration} doc/*.html \
/usr/share/doc/gmp-5.0.4 &&
date > ../FLAG &&
echo GOOD
The page I gave is the one I got from clicking on a link from the page that you just gave.
I'M trying to downlaod CentOS, but I keep getting this http://www.gtlib.gatech.edu/pub/centos/ page. I don't know what I'M need to do here, how do I use this?
I check my synapitc package manager and it is showing that I already have bzip2. When I type in libz into the SPM noting is showing up?
I made some progress on the install. Here's an update on my error output:
libhb/render.o libhb/rotate.o libhb/scan.o libhb/stream.o libhb/sync.o libhb/update.o libhb/work.o
/usr/bin/ar: creating libhb/libhb.a
/bin/mkdir -p test
/usr/bin/gcc -pipe -fmessage-length=0 -Wall -g0 -O3 -I./libhb/ -I./contrib/include -c ../test/parsecsv.c -o test/parsecsv.o
/usr/bin/gcc -pipe -fmessage-length=0 -Wall -g0 -O3 -I./libhb/ -I./contrib/include -c ../test/test.c -o test/test.o
../test/test.c: In function ‘HandleEvents’:
../test/test.c:2287:24: warning: variable ‘token’ set but not used [-Wunused-but-set-variable]
/usr/bin/g++ -pipe -Wl,-S -fmessage-length=0 -Wall -g0 -O3 -I./libhb/ -I./contrib/include -o HandBrakeCLI -Wl,--start-group test/parsecsv.o test/test.o ./libhb/libhb.a ./contrib/lib/liba52.a ./contrib/lib/libass.a ./contrib/lib/libavcodec.a ./contrib/lib/libavformat.a ./contrib/lib/libavutil.a ./contrib/lib/libdca.a ./contrib/lib/libdvdnav.a ./contrib/lib/libdvdread.a ./contrib/lib/libfaac.a ./contrib/lib/libfontconfig.a ./contrib/lib/libfreetype.a ./contrib/lib/libmkv.a ./contrib/lib/libmpeg2.a ./contrib/lib/libmp3lame.a ./contrib/lib/libmp4v2.a ./contrib/lib/libogg.a ./contrib/lib/libsamplerate.a ./contrib/lib/libswscale.a ./contrib/lib/libtheora.a ./contrib/lib/libvorbis.a ./contrib/lib/libvorbisenc.a ./contrib/lib/libx264.a ./contrib/lib/libxml2.a ./contrib/lib/libbluray.a -lbz2 -lz -lfribidi -lpthread -ldl -lm -Wl,--end-group
/usr/bin/ld: cannot find -lbz2
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [HandBrakeCLI] Error 1
garrett@mint-desktop ~/Downloads/HandBrake-0.9.8/build $
Any ideas?
I'M getting the following error while trying to make the program handbrake in in my Mint Linux.
Build is configured!
You may now cd into ./build and run make (/usr/bin/make).
garrett@mint-desktop ~/Downloads/HandBrake-0.9.8 $ cd build
garrett@mint-desktop ~/Downloads/HandBrake-0.9.8/build $ make
/bin/mkdir -p libhb
/usr/bin/m4 -Iproject ../libhb/project.h.m4 > libhb/project.h
/bin/cp ../libhb/common.h libhb/common.h
/bin/cp ../libhb/deccc608sub.h libhb/deccc608sub.h
/bin/cp ../libhb/downmix.h libhb/downmix.h
/bin/cp ../libhb/dvd.h libhb/dvd.h
/bin/cp ../libhb/eedi2.h libhb/eedi2.h
/bin/cp ../libhb/hbffmpeg.h libhb/hbffmpeg.h
/bin/cp ../libhb/hb.h libhb/hb.h
/bin/cp ../libhb/internal.h libhb/internal.h
/bin/cp ../libhb/lang.h libhb/lang.h
/bin/cp ../libhb/mcdeint.h libhb/mcdeint.h
/bin/cp ../libhb/ports.h libhb/ports.h
/bin/mkdir -p ../download
/usr/bin/wget -O ../download/a52dec-0.7.4.tar.gz http://download.handbrake.fr/handbrake/contrib/a52dec-0.7.4.tar.gz
--2012-08-17 17:47:34-- http://download.handbrake.fr/handbrake/contrib/a52dec-0.7.4.tar.gz
Resolving download.handbrake.fr (download.handbrake.fr)... 88.190.242.142
Connecting to download.handbrake.fr (download.handbrake.fr)|88.190.242.142|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 242978 (237K) [text/plain]
Saving to: `../download/a52dec-0.7.4.tar.gz'
100%[======================================>] 242,978 135K/s in 1.8s
2012-08-17 17:47:36 (135 KB/s) - `../download/a52dec-0.7.4.tar.gz' saved [242978/242978]
/bin/mkdir -p contrib/a52dec
/bin/rm -fr ./contrib/a52dec/a52dec/
/bin/tar xfC ../download/a52dec-0.7.4.tar.gz ./contrib/a52dec/
touch contrib/a52dec/.stamp.extract
/usr/bin/patch -t -N -p1 -d ./contrib/a52dec/a52dec/ < ../contrib/a52dec/A00-dpl2.patch
patching file include/a52.h
patching file liba52/a52_internal.h
patching file liba52/downmix.c
/usr/bin/patch -t -N -p1 -d ./contrib/a52dec/a52dec/ < ../contrib/a52dec/A01-thread-safe.patch
patching file liba52/a52_internal.h
patching file liba52/imdct.c
patching file liba52/parse.c
/usr/bin/patch -t -N -p1 -d ./contrib/a52dec/a52dec/ < ../contrib/a52dec/A02-imdct-shutup.patch
patching file liba52/imdct.c
Hunk #1 succeeded at 406 (offset -19 lines).
touch contrib/a52dec/.stamp.patch
set -e; cd ./contrib/a52dec/a52dec/; rm -fr aclocal.m4 autom4te.cache; autoreconf -fiv; CC=/usr/bin/gcc CFLAGS="" CXX=/usr/bin/g++ CXXFLAGS="" CPPFLAGS="" LDFLAGS="" PKG_CONFIG_PATH="/home/garrett/Downloads/HandBrake-0.9.8/build/contrib/lib/pkgconfig" ./configure --prefix=/home/garrett/Downloads/HandBrake-0.9.8/build/contrib/ --disable-dependency-tracking --disable-shared --enable-static
/bin/sh: 1: autoreconf: not found
make: *** [contrib/a52dec/.stamp.configure] Error 127
Any ideas? Thanks.
The commands that this script runs are from the linux from scratch project. I just need to know how to write a script with the cat redirection, sed and unset using && to verify that each line executed correctly before continueing to the next line.
I've got a 58 minute mp3 file and I'd like to burn it to an audio CD with multible tracks. Right now it's just one big file. Any dieas?
I'M trying to write a shell script using && so that each line will only execute if the preceding line executed without any problems.
How would I do that with the following cat:?
cat > /etc/nsswitch.conf << "EOF"
# Begin /etc/nsswitch.conf
passwd: files
group: files
shadow: files
hosts: files dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
# End /etc/nsswitch.conf
EOF
&
sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \
scripts/test-installation.pl
unset DL
I like Mint Linux with the Cinnamon desktop environment.
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/glibc.html
Above is a list of commands from the LFS project. I'M building a script for this page I want to be sure I'M not fraking this up.
Please pay special attention to the following:
sed & unset - at the top
case & esac
and the threee cat & EOF commands, thanks.
Code is below
DL=$(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p') &&
sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \
scripts/test-installation.pl &&
unset DL &&
sed -i -e 's/"db1"/& \&\& $name ne "nss_test1"/' scripts/test-installation.pl &&
sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in &&
( patch -Np1 -i ../glibc-2.14.1-fixes-1.patch 2>&1 | tee patch-one.log && exit $PIPESTATUS ) &&
( patch -Np1 -i ../glibc-2.14.1-sort-1.patch 2>&1 | tee patch-two.log && exit $PIPESTATUS ) &&
( patch -Np1 -i ../glibc-2.14.1-gcc_fix-1.patch 2>&1 | tee patch-tree.log && exit $PIPESTATUS ) &&
sed -i '195,213 s/PRIVATE_FUTEX/FUTEX_CLOCK_REALTIME/' \
nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timed{rd,wr}lock.S &&
mkdir -v ../glibc-build &&
cd ../glibc-build &&
case `uname -m` in
i?86) echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms ;;
esac &&
( ../glibc-2.14.1/configure --prefix=/usr \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.25 --libexecdir=/usr/lib/glibc 2>&1 | tee configure-glibc.log && exit $PIPESTATUS ) &&
( make 2>&1 | tee make-glibc.log && exit$PIPESTATUS ) &&
cp -v ../glibc-2.14.1/iconvdata/gconv-modules iconvdata &&
make -k check 2>&1 | tee glibc-check-log &&
grep Error glibc-check-log &&
touch /etc/ld.so.conf &&
( make install 2>&1 | tee make-install.log && exit $PIPESTATUS ) &&
cp -v ../glibc-2.14.1/sunrpc/rpc/*.h /usr/include/rpc &&
cp -v ../glibc-2.14.1/sunrpc/rpcsvc/*.h /usr/include/rpcsvc &&
cp -v ../glibc-2.14.1/nis/rpcsvc/*.h /usr/include/rpcsvc &&
mkdir -pv /usr/lib/locale &&
localedef -i cs_CZ -f …
I need to be able to run the script in a new shell, without using dot space . command. How can I do that?
/root/bin/go-lfs
I need to add teh above to PATH. If I simply write "export PATH="$PATH:~/bin/go-lfs" will it cause a problem? I'M assuming that this would remove enerything already in PATH and that might cause problems for the duration of my shell. If so, how could I added it without overwritting what's already there? Thanks.
For a while now I've been wishing I could replace iTunes with something on Linux and reduce my need for Windows. It would be nice if Apple would just release iTunes for Linux but I'M pretty sure that's not going to happen. The thing is, nothing handles an iPod as good as iTunes. I can't even play my audio books(.aax) from audible.com on a Linux machine at all. Last time I had Banchee as my Linux media player and had it running my iPod, a lot of really bad things happened. For starters, it started re-naming all of my songs to 4 random capital letters, something like this, TAGK, or XAZU, and also deleting songs from my computer completely. I didn't notice it removing songs because it wasn't removing them from my iPod. So when I transferred my music back to my Windows iTunes, my iPod was wiped out and re-loaded without all the songs that Banchee had been removing behind my back. Those songs weren't anywhere, not in my music folder and not in the recycle bin. Anyway, wouldn't it be easier if media players attempting to work with an iPod would just remove everything from an iPod and load one with it's own music software? I would think that that would be a lot less buggy than the media player(s) trying to work with the Apple software already loaded onto the iPod. Any thoughts or suggestions?
I've attached my output error and my script is below, also the link the the directions.
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/perl.html
Here's my script:
( patch -Np1 -i ../../../perl-5.14.2-libc-1.patch 2>&2 | tee patch-perl.log && exit $PIPESTATUS ) &&
sh Configure -des -Dprefix=/tools &&
cp -v perl cpan/podlators/pod2man /tools/bin &&
mkdir -pv /tools/lib/perl5/5.14.2 &&
cp -Rv lib/* /tools/lib/perl5/5.14.2 &&
date > ../FLAG &&
echo GOOD
fchmod() found.
fchown() found.
fcntl() found.
Well, your system has some sort of fd_set available...
and you have the normal fd_set macros.
fgetpos() found.
finite() found.
finitel() found.
flock() found.
fp_class() NOT found.
pathconf() found.
fpathconf() found.
fpclass() NOT found.
fpclassify() NOT found.
fpclassl() NOT found.
Checking to see if you have fpos64_t...
frexpl() found.
<sys/param.h> found.
<sys/mount.h> found.
Checking to see if your system supports struct fs_data...
fseeko() found.
fsetpos() found.
fstatfs() found.
statvfs() found.
fstatvfs() found.
fsync() found.
ftello() found.
Checking if you have a working futimes()
Yes, you have
<ndbm.h> NOT found.
<gdbm/ndbm.h> NOT found.
<gdbm-ndbm.h> NOT found.
getaddrinfo() found.
getcwd() found.
getespwnam() NOT found.
getfsstat() NOT found.
getgrent() found.
getgrent_r() found.
getgrgid_r() found.
getgrnam_r() found.
gethostbyaddr() found.
gethostbyname() found.
gethostent() found.
gethostname() found.
uname() found.
Shall I ignore gethostname() from now on? [n]
gethostbyaddr_r() found.
gethostbyname_r() found.
gethostent_r() found.
getitimer() found.
getlogin() found.
getlogin_r() found.
getmnt() NOT found.
getmntent() found.
getnameinfo() found.
getnetbyaddr() found.
getnetbyname() found.
getnetent() found.
getnetbyaddr_r() found.
getnetbyname_r() found.
getnetent_r() found.
getpagesize() found.
getprotobyname() found.
getprotobynumber() found.
getprotoent() found.
getpgid() found.
getpgrp2() NOT found.
getppid() found.
getpriority() found.
getprotobyname_r() found.
getprotobynumber_r() found.
getprotoent_r() found.
getprpwnam() NOT found.
getpwent() found.
getpwent_r() found.
getpwnam_r() found.
getpwuid_r() found.
getservbyname() found.
getservbyport() found.
getservent() found.
getservbyname_r() found.
getservbyport_r() found.
getservent_r() found.
getspnam() found.
<shadow.h> found.
getspnam_r() found.
gettimeofday() found.
gmtime_r() found.
hasmntopt() found.
<netinet/in.h> found.
<arpa/inet.h> found.
htonl() found.
ilogbl() found.
strchr() found.
inet_aton() found.
inet_ntop() found.
inet_pton() found.
isascii() found.
isfinite() NOT found.
isinf() found.
isnan() found.
isnanl() found.
killpg() found.
lchown() found.
LDBL_DIG found.
<math.h> found.
Checking to see if your libm supports _LIB_VERSION...
Yes, it does (2)
link() found.
localtime_r() found.
localeconv() found.
lockf() found.
lstat() found.
madvise() found.
malloc_size() NOT found.
malloc_good_size() NOT found.
mblen() found.
mbstowcs() found.
mbtowc() found.
memchr() found.
memcmp() found.
memcpy() found.
memmove() found.
memset() found.
mkdir() found.
mkdtemp() found.
mkfifo() found.
mkstemp() found.
mkstemps() found.
mktime() found.
<sys/mman.h> found.
mmap() found.
and it returns (void *).
sqrtl() found.
scalbnl() found.
modfl() found.
Your modfl() seems okay for large values.
mprotect() found.
msgctl() found.
msgget() found.
msgsnd() found.
msgrcv() found.
You have the full msg*(2) library.
Checking to see if your system supports struct msghdr...
msync() found.
munmap() found.
nice() found.
<langinfo.h> found.
nl_langinfo() found.
Checking to see if your C compiler knows about "volatile"...
Choosing the C types to be used for Perl's internal types...
Checking how many bits of your UVs your NVs can preserve...
Checking to find the largest integer value your NVs can hold...
The largest integer your NVs can preserve is equal to 256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0
Checking whether NV 0.0 is all bits zero in memory...
0.0 is represented as all bits zero in memory
Checking to see if you have off64_t...
pause() found.
poll() found.
prctl() found.
readlink() found.
vfork() found.
Do you still want to use vfork()? [n]
pthread_attr_setscope() found.
random_r() found.
readdir() found.
seekdir() found.
telldir() found.
rewinddir() found.
readdir64_r() found.
readdir_r() found.
readv() found.
recvmsg() found.
rename() found.
rmdir() found.
<memory.h> found.
Checking if your memcmp() can compare relative magnitude...
select() found.
semctl() found.
semget() found.
semop() found.
You have the full sem*(2) library.
You do not have union semun in <sys/sem.h>.
You can use union semun for semctl IPC_STAT.
You can also use struct semid_ds* for semctl IPC_STAT.
sendmsg() found.
setegid() found.
seteuid() found.
setgrent() found.
setgrent_r() NOT found.
sethostent() found.
sethostent_r() NOT found.
setitimer() found.
setlinebuf() found.
setlocale() found.
<locale.h> found.
setlocale_r() NOT found.
setnetent() found.
setnetent_r() NOT found.
setprotoent() found.
setpgid() found.
setpgrp2() NOT found.
setpriority() found.
setproctitle() NOT found.
setprotoent_r() NOT found.
setpwent() found.
setpwent_r() NOT found.
setregid() found.
setresgid() found.
setreuid() found.
setresuid() found.
setrgid() NOT found.
setruid() NOT found.
setservent() found.
setservent_r() NOT found.
setsid() found.
setvbuf() found.
<sfio.h> NOT found.
shmctl() found.
shmget() found.
shmat() found.
and it returns (void *).
shmdt() found.
You have the full shm*(2) library.
sigaction() found.
<sunmath.h> NOT found.
Checking to see if you have signbit() available to work on double... Yes.
sigprocmask() found.
POSIX sigsetjmp found.
snprintf() found.
vsnprintf() found.
sockatmark() found.
socks5_init() NOT found.
Checking whether sprintf returns the length of the string...
sprintf returns the length of the string (as ANSI says it should)
srand48_r() found.
srandom_r() found.
<sys/stat.h> found.
Checking to see if your struct stat has st_blocks field...
<sys/vfs.h> found.
<sys/statfs.h> found.
Checking to see if your system supports struct statfs...
Checking to see if your struct statfs has f_flags field...
Your compiler supports static __inline__.
Checking how to access stdio streams by file descriptor number...
I can't figure out how to access stdio streams by file descriptor number.
strcoll() found.
Checking to see if your C compiler can copy structs...
strerror() found.
strerror_r() found.
strftime() found.
strlcat() NOT found.
strlcpy() NOT found.
strtod() found.
strtol() found.
strtold() found.
strtoll() found.
strtoq() found.
strtoul() found.
strtoull() found.
strtouq() found.
strxfrm() found.
symlink() found.
syscall() found.
sysconf() found.
system() found.
tcgetpgrp() found.
tcsetpgrp() found.
time() found.
time_t found.
timegm() found.
<sys/times.h> found.
times() found.
clock_t found.
tmpnam_r() found.
truncate() found.
ttyname_r() found.
tzname[] found.
(Testing for character data alignment may crash the test. That's okay.)
You can access character data pretty unalignedly.
ualarm() found.
umask() found.
unordered() NOT found.
unsetenv() found.
usleep() found.
ustat() found.
closedir() found.
Checking whether closedir() returns a status...
wait4() found.
waitpid() found.
wcstombs() found.
wctomb() found.
writev() found.
Checking alignment constraints...
Doubles must be aligned on a how-many-byte boundary? [4]
Checking how long a character is (in bits)...
What is the length of a character (in bits)? [8]
Checking to see how your cpp does stuff like concatenate tokens...
Oh! Smells like ANSI's been here.
<db.h> NOT found.
Looking for a random number function...
Good, found drand48().
Use which function to generate random numbers? [drand48]
Determining whether or not we are on an EBCDIC system...
Nope, no EBCDIC, probably ASCII or some ISO Latin. Or UTF-8.
Checking how to flush all pending stdio output...
Your fflush(NULL) works okay for output streams.
Let's see if it clobbers input pipes...
fflush(NULL) seems to behave okay with input streams.
Checking the size of gid_t...
Checking the sign of gid_t...
Checking how to print 64-bit integers...
Checking the format strings to be used for Perl's internal types...
Checking the format string to be used for gids...
getgroups() found.
setgroups() found.
What type pointer is the second argument to getgroups() and setgroups()?
[gid_t]
Build Perl with MAD? [n]
Checking if your /tools/bin/make program sets $(MAKE)...
mode_t found.
It seems that you don't need va_copy().
size_t found.
What pager is used on your system? [/bin/less -R]
File /bin/less -R doesn't exist. Use that name anyway? [y]
pid_t found.
Checking how to generate random libraries on your machine...
<values.h> found.
Sizeof time_t = 4
Your select() operates on 32 bits at a time.
Generating a list of signal names and numbers...
Checking the size of size_t...
Checking to see if you have socklen_t...
<socks.h> NOT found.
I'll be using ssize_t for functions returning a byte count.
Your stdio uses signed chars.
Checking the size of uid_t...
Checking the sign of uid_t...
Checking the format string to be used for uids...
It appears we'll be able to prototype varargs functions.
Which compiler compiler (yacc or bison -y) shall I use? [yacc]
<assert.h> found.
<fp.h> NOT found.
<fp_class.h> NOT found.
<gdbm.h> NOT found.
<ieeefp.h> NOT found.
<libutil.h> NOT found.
<mntent.h> found.
<net/errno.h> NOT found.
<netinet/tcp.h> found.
<poll.h> found.
<prot.h> NOT found.
Guessing which symbols your C compiler and preprocessor define...
try.c: In function 'main':
try.c:5761:17: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5764:18: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5767:19: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5770:19: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5797:17: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5800:18: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5803:19: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5806:19: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5833:17: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5836:18: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5839:19: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5842:19: warning: extra tokens at end of #ifdef directive [enabled by default]
try.c:5869:16: warning: extra tokens at end of #ifdef directive [e
lfs@debianlfs:/mnt/lfs/sources/Chapter-5/5.10.GCC-4.6.2-_Pass_2/gcc-4.6.2$ . bld
bash: bld: line 44: syntax error near unexpected token `)'
bash: bld: line 44: ` --with-mpfr-lib=$(pwd)/mpfr/src/.libs 2>&1 | tee gcc-configure.log && exit $PIPESTATUS ) &&'
I'M getting the above error when I run my script. I've attached the scripts and I would really appreciate it if someone can tell me what's wrong with it.
( patch -Np1 -i ../gcc-4.6.2-startfiles_fix-1.patch 2>&1 | tee patch-gcc-startfiles.log && exit $PIPESTATUS ) &&
cp -v gcc/Makefile.in{,.orig} &&
sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in &&
cp -v gcc/Makefile.in{,.tmp} &&
sed 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp > gcc/Makefile.in &&
for file in \
$(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
do
cp -uv $file{,.orig} &&
sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' -e 's@/usr@/tools@g' $file.orig > $file &&
echo '
#undef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR 0
#define STANDARD_STARTFILE_PREFIX_1 ""
#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
touch $file.orig
done &&
case $(uname -m) in
x86_64)
for file in $(find gcc/config -name t-linux64) ; do \
cp -v $file{,.orig} &&
sed '/MULTILIB_OSDIRNAMES/d' $file.orig > $file
done
;;
esac &&
tar -jxf ../mpfr-3.1.0.tar.bz2 &&
mv -v mpfr-3.1.0 mpfr &&
tar -Jxf ../gmp-5.0.4.tar.xz &&
mv -v gmp-5.0.4 gmp &&
tar -zxf ../mpc-0.9.tar.gz &&
mv -v mpc-0.9 mpc &&
mkdir -v ../gcc-build &&
cd ../gcc-build &&
CC="$LFS_TGT-gcc -B/tools/lib/" \
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
../gcc-4.6.2/configure --prefix=/tools \
--with-local-prefix=/tools --enable-clocale=gnu \
--enable-shared --enable-threads=posix \
--enable-__cxa_atexit --enable-languages=c,c++ \
--disable-libstdcxx-pch --disable-multilib \
--disable-bootstrap --disable-libgomp \
--without-ppl --without-cloog \
--with-mpfr-include=$(pwd)/../gcc-4.6.2/mpfr/src \
--with-mpfr-lib=$(pwd)/mpfr/src/.libs 2>&1 | tee gcc-configure.log && exit $PIPESTATUS ) &&
( make 2>&1 | tee make-gcc-passtwo.log && exit $PIPESTATUS ) &&
( make install 2>&1 | tee make-install-gcc.log && exit $PIPESTATUS ) &&
ln -vs gcc /tools/bin/cc &&
echo 'main(){}' > dummy.c &&
cc dummy.c &&
readelf -l a.out | grep ': /tools' &&
date > ../FLAG &&
echo GOOD
Thanks. Yes I did indeed put the RAM in myself. Don't know how proficient I am but I do know what a motherboard is, what it looks like, & where to find it.
I recently replaced my one stick of 2GB RAM for two 2GB RAM sticks for a total of 4GB RAM. I purchased the sticks from a local computer guy who runs a computer store here in town. He said that since they were the same amount and kind of stick that the would be fine. It also said something about inner lacing or something like that but gave me a positive verdict on that as well. Anyway, now my computer will abruptly restart and give me a blue screen with a lot of BS. One thing that will set it off almost immediately is if I try to rip a DVD. Below is the error that I am getting:
Problem signature:
Problem Event Name: BlueScreen
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional information about the problem:
BCCode: 3b
BCP1: 00000000C0000005
BCP2: FFFFF8000300FDDF
BCP3: FFFFF8800729B050
BCP4: 0000000000000000
OS Version: 6_1_7601
Service Pack: 1_0
Product: 768_1
Files that help describe the problem:
C:\Windows\Minidump\080412-25100-01.dmp
C:\Users\Garrett\AppData\Local\Temp\WER-43711-0.sysdata.xml
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
I'M working my way through the linux from scratch project and I'M currently stuck on the following page, what does it want me to do?
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/adjusting.html
Does it just want me to run the commands in the grey box listed below while in the /lib directory?
SPECS=dirname $($LFS_TGT-gcc -print-libgcc-file-name)
/specs
$LFS_TGT-gcc -dumpspecs | sed \
-e 's@/lib(64)\?/ld@/tools&@g' \
-e "/^*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
echo "New specs file is: $SPECS"
unset SPECS
I just go a new solid state 240 gig hd. There is currently a 500 gig dual boot W7/mintLinux HD in the computer now. I want to re-install W7 & ML on my new SSHD but leave the other for storage, it already has a lot of files on it id like to keep. When I put the new SSHD in, how to I get the computer to boot up in this new drive while just leaving the other as an extra? There arent currently enough wire to plug both up I'll have to buy some in the next day or so, so I just unplugged the old HD and plugged in the new SS and installed Mint. That's where I'M at right now.
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html
If anyone has done this project I'M having some trouble with the GCC part of the proccess. Above is the link to the page I'M having trouble with.
At the top of the page it's giving me three files to unzip and move, again this is at the top of the page before you actually compile gcc. How can I unzip and more files that haven't been built yet and this part of the process is before you build gcc?
Has anyone done the linux from scrath project (http://www.linuxfromscratch.org/)? If so, I created the directory /mnt/lfs/source just as the LFS book instructed me to do and now after turning the computer off and back on, the sources directory is gone. This is the second time this has happened. Any ideas?
lfs@debian:~$ scp output garrett@192.168.1.10:/home/garrett
ssh: connect to host 192.168.1.10 port 22: Connection refused
lost connection
lfs@debian:~$
Why is the above not working? I am wasily able to ssh from on computer to the other, why will scp not work here? output is just a simple text file.
lfs@debian:/mnt/lfs/sources$ tar xjvf binutils-2.22.tar.bz2
tar (child): bzip2: Cannot exec: 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
lfs@debian:/mnt/lfs/sources$
the file binutils-2.22.tar.bz2 is in this folder, why am I getting this?
I having trouble with the following two packages when trying to get them with wget.
Zlip
http://www.zlib.net/zlib-1.2.6.tar.bz2
error:root@debian:~# wget http://www.zlib.net/zlib-1.2.6.tar.bz2
--2012-07-29 16:00:30-- http://www.zlib.net/zlib-1.2.6.tar.bz2
Resolving www.zlib.net... 69.73.181.135
Connecting to www.zlib.net|69.73.181.135|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-07-29 16:00:31 ERROR 404: Not Found.
&
Man-pages (3.35)
http://man7.org/linux/download/man-pages/man-pages-3.35.tar.gz
error:root@debian:~# wget http://man7.org/linux/download/man-pages/man-pages-3.35.tar.gz
--2012-07-29 16:05:36-- http://man7.org/linux/download/man-pages/man-pages-3.35.tar.gz
Resolving man7.org... 46.128.129.10
Connecting to man7.org|46.128.129.10|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-07-29 16:05:36 ERROR 404: Not Found
I think I need these version if at all possible, this is a Linux project I have been assigned.
I'M building a Linux from Scratch system(www.linuxfromscratch.org) and I've run into a little confusion.
An easy way to download all of the packages and patches is by using wget-list as an input to wget. For example:
wget -i wget-list -P $LFS/sources
Additionally, starting with LFS-7.0, there is a separate file, md5sums, can be used to verify that all the correct packages
are available before proceeding. Place that file in $LFS/sources and run:
pushd $LFS/sources
md5sum -c md5sums
popd
Where do I find this md5susm package for my LFS system? I don't really understand what it's wanting me to do here.
I'M trying to install make on my CLI Debian installtion. I'M having a few problems. When I type apt-get install make from su it tells me to insert a CD and press ENTER. I just figured it would get it from the internet. After I place the CD I used to install Debing with I start getting a lot of errors that say something like:
0%[working] I/O error on dev sr0 logical block ########## sector ##########
What am I doing wrong here? Thanks
Thanks. One more thing. I just got everything downloaded and installed. The thing is I was only wanting the basic CLI Debian Linux installtion. But after I was done installing it was a graphical desktop environment edition. On the installation menu there were two options, Install & Graphical Install. I picked Install but got the DE anyway. Where and how can I get Debian CLI only? Thanks.
Guys I feel really stupid asking this but I can not downlaod debian. Everytime I try I get on of these (http://cdimage.debian.org/debian-cd/6.0.5/amd64/bt-dvd/) pages and I have no idea what to do with it.