« first day (1084 days earlier)      last day (4168 days later) » 

00:04
@slm sure I can :)
 
1 hour later…
01:14
Hi, can you post here?
If not, make sure you are logged in, I asked a mod to let you chat
but you will need to be logged in as Rakso Zrobin
I see you as user217503 now
@MichaelMrozek are you still around? Can you help up out here?
Michael is a mod, he should be able to help
@user2175034 In the meantime, make sure you have make in your system, try 'which -a make' and locate -b '\make'
Hang on, @Craig could you upvote this question please so the OP can post in chat?
1
Q: Ruby update not working using two methods

Rakso ZrobinI tried to install ruby version 1.9.3 with this on my mac 10.6.8: $ \curl -L https://get.rvm.io | bash -s stable --ruby Oskar-Niburskis-MacBook-Pro:~ oskarniburski$ rvm install ruby-1.9.3-p362 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.6/i386/...

OK @user2175034 if either of those commands finds make, add that to your question please
@Braiam could you vote this up please so the OP can chat?
01:33
@terdon he should be able now..
>20 rep
Cool, thanks
@user2175034 how about now? Reload the page and try again.
wait, let me pull him...
you should change your main account for chat
go to this link chat.stackexchange.com/users/93135/user2175034 and hit change then select Unix and Linux
I upvoted a couple of his posts on SO, both accounts should be able to chat now
chat is a bit slow... his acc shows 26 rep in SO... weird :/
Finally!
01:43
Well, hello there!
Hello hello, thank you for the patience! Alright, I am here to learn!
:)
The problem seems to be that your system can't find 'make'
what happens if you just run 'make' from a terminal?
-bash: make: command not found
OK, how about '/usr/bin/make' ?
I remember this trick, however this time it does not work: -bash: /usr/bin/make: No such file or directory
01:46
Hmm, also see the answers here, it seems that installing Xcode might not be enough to get the command line tools you need:
178
Q: Where can I find "make" program for Mac OS X Lion?

Roman KaganJust upgraded my computer to Mac OS X Lion and went to terminal and typed "make" but it says: -bash: make: command not found Where did the "make" command go?

And don't forget to run "/Applications/Install Xcode.app". (This stumped me for a while). — njamesp Jul 22 '11 at 20:59
Did you run that?
I am under the impression that the xcode preferences download is for xcode 4.1, with 3.2.6 it seems I have the command line tool: /This project builds a command-line tool written in C./ That is from x code.
I don't really know, these things are specific to OSX, not *nix. I read that you need to select command line tools when installing
also, that you need to run a program, 'Install Xcode.app', to install. How exactly did you install?
It was installed on my mac when I got it. But i think I found it!!!
/Developer/usr/bin/make gives me make: *** No targets specified and no makefile found. Stop.
so that is progress yes? excited or delusional?
excited!
OK, so it installs in /Developer/usr/bin/
We need to add that to your $PATH
So, back to ~/.bash_profile and add this line:
PATH="/Developer/usr/bin:$PATH"
make sure to add that before the line that has
export $PATH
to get back to bash should I be using nano or vi or this: /bin/cat > ~/.bash_profile
01:56
NEVER '>'
that will overwrite the contents of the file
I suggested it before because you had shown me your entire .bash_profile and you were going to replace it with what I suggested
If you just want to add a line to the end of a file use '>>'
Anyway, use your favorite editor.
# Your previous /Users/oskarniburski/.bash_profile file was backed up
# as /Users/oskarniburski/.bash_profile.macports-saved_2013-09-26_at_17:32:30
##
PATH="/Developer/usr/bin:$PATH"

# MacPorts Installer addition on 2013-09-26_at_17:32:30: adding an appropriate PATH
# variable for use with MacPorts.
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
okay I added it using open .bash_profile
Perfect
By the way, see here for more info on > >>
9
A: What is the difference between > and >> (especially as it relates to use with the cat program)?

Chris Down> writes to a file, overwriting any existing contents. >> appends to a file. From man bash: Redirecting Output Redirection of output causes the file whose name results from the expansion of word to be opened for writing on file descriptor n, or the standard output (file descriptor 1...

So, open a new terminal window and try running 'make' with no arguments again
make: *** No targets specified and no makefile found. Stop.
progress!
exactly :)
OK, try installing ruby again, it should work this time
I;ll just write this up as an answer
should i use makeport or the \curl technique
that i listed in my question
02:01
No idea
I assume they both work, try whichever is easiest
Yeah, they look like they are using similar approaches, both failed for the same reason
Trying the first one as we speak!
Updating system..............................................
Installing required packages: autoconf, automake, libtool, pkgconfig, libiconv, libyaml, libffi, readline, libksba, openssl, curl-ca-bundle, sqlite3, zlib, gdbm, ncurses...
Error running 'requirements_osx_port_libs_install autoconf automake libtool pkgconfig libiconv libyaml libffi readline libksba openssl curl-ca-bundle sqlite3 zlib gdbm ncurses',
please read /Users/oskarniburski/.rvm/log/1380247169_ruby-2.0.0-p247/package_install_autoconf_automake_libtool_pkgconfig_libiconv_libyaml_libffi_readline_libksba_openssl_curl-ca-bundle
Want me to try the second option?
Hang on, let me read that
OK, you might as well show me the log in case it explains anything
In the meantime try the ports yes, that seems to be more tied in to the OS
sudo port install ruby19
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
---> Computing dependencies for ruby19Error: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
Ah, OK, good, it's a path problem
post the output of 'sudo echo $PATH'
/opt/local/bin:/opt/local/sbin:/Developer/usr/bin:/usr/local/git/bin:/usr/X11/bi‌​n:/Users/oskarniburski/.rvm/bin:/usr/X11R6/bin:/Library/Frameworks/Python.framewo‌​rk/Versions/3.3/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Librar‌​y/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/‌​usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/oskarniburski/.rvm/bin
02:08
no, that shouldn't make a difference, sorry, sudo takes the same path as the user running it.
hmm, you can run make with no errors from the terminal right?
Yes I can. (make
make: *** No targets specified and no makefile found. Stop.)
OK, the problem is that 'make' is not in the path of 'ports' apparently. Lets try something simple. Make a link to make in /usr/bin :
sudo ln -s /Developer/usr/bin/make /usr/bin
OK, try installing again
It seemed to work: Installing ruby19 @1.9.3-p448_1+doc
---> Activating ruby19 @1.9.3-p448_1+doc
---> Cleaning ruby19
---> Updating database of binaries: 100.0%
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.
i checked my ruby version but it is still rubby 1.8.7 how should I change that
02:13
cool!
I also used Macports to install for your info!
try opening a new terminal and running 'which -a ruby'
/usr/bin/ruby
ok, and /usr/bin/ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin10.0]
02:17
OK according to this ports will install its programs in /opt/local
hmm, which is in your path
OK, try looking for it:
find /opt/local -name ruby
/opt/local/etc/select/ruby
/opt/local/include/ruby-1.9.1/ruby
/opt/local/include/ruby-1.9.1/x86_64-darwin10/ruby
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/ruby
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/ruby
weird, there is no /bin there. Are any of these executables?
find /opt/local -name ruby -ls
Also, I figured out why the $PATH was failing, 'sudo' does not take the user's path (I thought that was strange), it takes the root user's, you can check it by running sudo
sudo bash -c 'echo "$PATH"'
this is the find command for /opt/local -name ruby -ls : 29156026 0 drwxr-xr-x 5 root admin 170 26 Sep 22:10 /opt/local/etc/select/ruby
29172249 0 drwxr-xr-x 19 root admin 646 26 Sep 22:10 /opt/local/include/ruby-1.9.1/ruby
29172252 0 drwxr-xr-x 3 root admin 102 26 Sep 22:10 /opt/local/include/ruby-1.9.1/x86_64-darwin10/ruby
29137390 0 drwxr-xr-x 4 root wheel 136 3 Sep 01:00 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/ruby
Want me then to run the sudo bash -c command
no, I was just happy to have understood what happened before :)
And by root user's what do you mean, if I can ask?
02:23
the administrator account
that's what 'sudo' does, it lets you run programs as though you were the administrator. In the Unix world, the administrator is called 'root'
OK, all the executables are directories so that's not it.
So, either 1) ruby has not actually been installed or 2) it has been installed and we can't find it
It is possible that all this will be magically fixed after a reboot. I don't know how ports works
another thing to try is to search /opt/local for executables whose name contains ruby.
OK, first this:
Alright
 find /opt/local/ -type f -name "*ruby*"
opt/local//bin/ruby1.9
/opt/local//etc/select/ruby/ruby19
/opt/local//include/ruby-1.9.1/ruby/backward/rubyio.h
/opt/local//include/ruby-1.9.1/ruby/backward/rubysig.h
/opt/local//include/ruby-1.9.1/ruby/ruby.h
/opt/local//include/ruby-1.9.1/ruby.h
/opt/local//lib/libruby.1.9.1-static.a
/opt/local//lib/libruby.1.9.1.dylib
/opt/local//lib/pkgconfig/ruby-1.9.pc
/opt/local//lib/ruby1.9/1.9.1/irb/ruby-lex.rb
/opt/local//lib/ruby1.9/1.9.1/irb/ruby-token.rb
/opt/local//lib/ruby1.9/1.9.1/psych/json/ruby_events.rb
super long!
fine, it's the first one we wanted
opt/local//bin/ruby1.9
there should have been a link to this already but never mind.
First, you can now run 'ruby1.9' instead of 'ruby'
does that work?
yeah takes me to the irb for that ruby
the new version
02:30
cool
one last thing, what does this give:
ls -l /usr/bin/ruby
lrwxr-xr-x 1 root wheel 76 25 Jun 2010 /usr/bin/ruby -> ../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby
perfect, that's also a link (that's what the '->'means)
So, do you want to have access to both versions?
I would prefer replacing the older version with the newer if that is at all possible.
Easily, you can uninstall the original version in whatever way you mac people normally uninstall :)
But, if all you want is to have 1.9 run when you run 'ruby' you need to remove the link you have and replace it with one to the new version
that is what I would prefer, the latter of the two
so to access the newever version, would i use ls -l /usr/bin/ruby19
02:34
perfect, that's easier:
 sudo rm /usr/bin/ruby; sudo ln -s  /opt/local/bin/ruby1.9  /usr/bin/ruby
done
ruby --version
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin10]
Oskar-Niburskis-MacBook-Pro:~ oskarniburski$
all set?
and now we solved it! well you. I did nothing except gasp at your problem solving skills
Thank you so much terdon.
:) you're very welcome
I'll polish this up and write up an answer, I would appreciate it if you could remember to accept it, it should be done in another 10 minutes or so
Ah, and one more thing, you should merge your accounts
Yeah I will do that!
02:37
See here:
it ismuch easier for everyone if you only have one account on the whole stack exchange network
And one last thing @user2175034, there will be other things you might be needing in the /Developer/usr/bin, you might want to add that to root's path, I'll explain how in my answer.
 
3 hours later…
slm
slm
05:49
@terdon - thanks for helping him out! Excellent work!
Thanks, we hashed it out in here
I just wrote it up afterwards, it looks like I'm an OSX guy :)
slm
slm
I know
I didn't know you had OSX in ya
I'm attempting to answer your printf Q now
I just ran a longer test, same results
06:13
@slm great answer as always, do you think you could expand a bit given my updated answer? Why is the built in still faster despite loading separate bash processes each time?
slm
slm
yeah that's like testing the speed of light it's always gonna be that way
For one all the secondary libraries that any subsequent bashes need will already be loaded in memory, that's the beauty of dynamic libraries
OK
won't that be the case for printf as well?
should remain in memory if I just ran it a second ago
slm
slm
that's why in ps you'll see an apps foot print is like 1GB for memory but it's misleading, the core of the app is a fraction of that, all the .h and .c files that make up an app that are dynamically linked are already loaded and being shared across instances of Bash and other tools that use them
yes to a point (regarding printf)
the binary blob of printf will still have to be loaded into memory each time from disk
the function in the strace, execve is what's loading the blob in
if you've ever compared performance of a sytem that uses cache (swap) vs. one that hasn't you'll see an order of magnitude drop in perf. when touching swap
ooh yeah, that one I know well
slm
slm
this was a constant source of frustration when I worked at kodak
many ppl don't understand the detriment of using HDD for RAM
it a big no no when trying to make a performant app
06:19
5
Q: Can Linux "run out of RAM"?

themirrorI saw several posts around the web of people apparently complaining about a hosted VPS unexpectedly killing processes because they used too much RAM. How is this possible? I thought all modern OS' provide "infinite RAM" by just using disk swap for whatever goes over the physical RAM. Is this co...

slm
slm
we'd run modelsim simulations that would easily chew up 2-3GB of RAM
Believe me I know how you feel, I eat >16GB
slm
slm
I had to teach the electrical engineers to be aware of this, when they ran there sims on swap they would literally take 10x longer than ones that didn't
So, one last thing on printf
slm
slm
they would always think, oh this box sucks b.c it has older CPUs blah blah, and I would show them benchmarking that I had done prior that demonstrated the badness of swap
06:20
the difference then is that because bash is still running, everything it needs is still in memory so it goes faster
slm
slm
pretty much
if I were to use zsh for example and have it launch 'bash -c' I would not see this difference in speed?
slm
slm
there are additional overheads in having to create the structures in memory for representing a process
that's another advantage of using multi-threaded apps vs. processes
@slm but those should be incurred by both if I compere /bin/printf to `bash -c "printf"' and I'm not running bash right?
slm
slm
threads are rolled up under a single process id, so they are less heavy than spining up a forked process
remember that the mechanism in unix to make a process is fork
so if you have all your environment variables etc. loaded up in a process, when you run printf, it's forking a copy of that, and then changing the executable to the program it just loaded from disk afterwards
06:23
hmm,OK, I'll try doing it from another shell tomorrow and see. Thanks Sam, been a great help as always.
slm
slm
I'm not sure if bash -c "printf" and /bin/printf is an apples to apples
ah, maybe I'll have a lok through the source though my C fu is pretty sad.
slm
slm
if you look at the C library that offers execve there are variants of this function, there may be optimizations if you'r making a fork of yourself vs. loading an executable from disk
they read very well
then man pages are all you need to see
OK, I'll have a look
slm
slm
man execve
06:25
anyway, I'm falling asleep at the keyboard, sorry.
slm
slm
k, night
I'll check it out tomorrow and bug you if I still don't get something :)
night
slm
slm
sleep on it, might make more sense tom.
sure
night
i'll try and dig up something that explains the process better
 
8 hours later…
slm
slm
14:19
@terdon, @MartinvonWittich trolls back, pls flag and downvote the spam
it's gone
14:46
Yes, I've flagged him immediately :)
 
1 hour later…
15:46
@slm Only 10x longer? That's some fast swap!
 
1 hour later…
slm
slm
16:54
This was on some Solaris systems that weren't particularly fast to begin with. We did benchmark some P4's as well and the number was consistent there too. Haven't bothered to look at it since, swap = bad.
17:24
do you guys use apt or aptitude?
any reason one should be favored on another?
@sterz We use only aptitude in our comany
I believe Debian prefers apt-get now over aptitude, but it used to be the other way round
@MartinvonWittich any major reason for your preference?
i use debian at home and prefer aptitude for it has safe-upgrade. i couldnt find an equivalent in apt :)
@sterz no, just that we've been using it since Debian etch.
ah ok
I can't find any official recommendation from Debian :/
apt-get upgrade should be almost the same as aptitude safe-upgrade btw
17:33
i am not sure
because apt-get upgrade flat out refused to install kept back packages
whereas aptitude safe-upgrade installed them :/
there are some behaviour differences
(as i experienced :))
will read
I believe the only difference between apt-get upgrade and aptitude safe-upgrade is that apt-get upgrade will not remove any packages ever, while aptitude safe-upgrade will remove unused packages (but not conflicting packages).
well then ı wıll keep favorıng apttıtude :)
An official site that recommends apt-get is linked in one of the comments: debian.org/releases/squeeze/i386/release-notes/…
but yeah, I'll stick to aptitude anyway ^^
17:39
i guess it makes sense to use apt for dist-upgrade, since debian recommends it
Damn when did they change that? I thought they were trying to phase out apt-get in favor of aptitude
i guess we are stuck with both of them :)
hang on, that link recommends apt-get for dist-upgrade, not for every day package management. Does debian still recommend aptitude for that?
OK, found it:
aptitude is most suitable for the daily interactive package management such as inspecting installed packages and searching available packages.
just as i thought ^_^
though i dont like aptitude's simulation
it's not "verbose" enough.
when you do a aptitude -s install foo it says: Would download/install/remove packages.
thank you captain aptitude!
@sterz try aptitude -sv install ;)
17:50
@sterz try the -v option:
$ aptitude -sv install chromium
The following NEW packages will be installed:
  chromium libspeechd2{a}
The following packages are SUGGESTED but will NOT be installed:
  chromium-l10n
0 packages upgraded, 2 newly installed, 0 to remove and 11 not upgraded.
Need to get 44.3 MB of archives. After unpacking 120 MB will be used.
Do you want to continue? [Y/n/?]
Inst libspeechd2 (0.7.1-6.2 Debian:testing [amd64])
Inst chromium (28.0.1500.95-3 Debian:testing [amd64])
Conf libspeechd2 (0.7.1-6.2 Debian:testing [amd64])
ahhhhhh (who is the moron now? hint: me!)
slm
slm
@terdon - you read my mind with that comment!!!!
@slm Yeah, he's beginning to piss me off, have a look at his profile `20 questions and one answer accepted.
you're talking about this themirror guy? What have you written?
slm
slm
@terdon - yeah I spoke with Mike about him yesterday, I thought he might be trolley
17:58
@MartinvonWittich
slm
slm
if you notice i never answer his questions
I notice that you have asked 14 questions and have received answers to most of them but have accepted one. Could you go through your older questions and accept the answers that solved your problem? I doubt that none of them did. — terdon 1 hour ago
and
Seriously, stop asking so many questions without accepting any answers. I ask you again, please go through your old questions and accept those that solved your issue or answered your query. Otherwise all these questions remain open which is bad for the site. — terdon 3 mins ago
slm
slm
they're on the surface valid but feel a little too much like what jason has discussed before on his blog about vampire users
worth the read, my nature is to help but by doing so with some people you're an enabler and actually doing damage
The guy has 18 questions almost all of which have answers and has only accepted one. He has also apparently not voted a single time:
slm
slm
18:01
with some ppl they only take and never give, there is a "contract" to the site that when you use it you're agreeing to, some ppl like this guy aren't so don't honor your end of the contract, if they aren't
Yeah, I agree
slm
slm
there are other ppl that are happy to have the help and are willing to learn and grow, those are the target audience, not these types, just my $0.02, everyone can do as they wish, but you see how he's been taking so far.
there are a few others, but I won't name names!
if you deal with supporting users I'm not telling you anything you don't already know, but this is the online form of it
Most of his question also seem to be written in a way that encourages a broad discussion instead of asking for a solution for a specific problem
slm
slm
that's why i thought he was troll, he's attempting to waste our time, IMO, but i have no physical evidence that it is he, could be some other lazy guy...
if he's a troll, then that's a scary amount of dedication :|
18:07
I don't think he's a troll, just a twit
slm
slm
@terdon - you're probably right, but my troller sense is tingling 8-)
@terdon - if trolley was a boxer, the other accounts are the jab, this account is the body blows.
 
1 hour later…
19:22
@MartinvonWittich the release notes for each release say the preferred method for upgrading to that release.
@derobert ah, ok, so it's not a general recommendation
yeah, I think it's just which happened to work better for that release
and the other does work, it just may take more handholding
19:39
@terdon @slm start voting to close them as overly broad. Or off-topic for some of 'em.
(seriously, why is he asking unix.se about how to hide files in FAT32 on Unix and Mac and Windows? Two out of three are off-topic. It'd go on Superuser fine.)
Though I'm not going to suggest migration, because only good questions should be migrated.
slm
slm
20:04
@terdon @derobert - i just voted to close a bunch of them.
20:58
@Braiam already answered :P
@MartinvonWittich thanks, I will update my answers as weel :)
@Braiam regular expressions are a very powerful and useful tool, but you do have to understand them when you want to use them successfully ;)
I'm not used to rename, nor I did know that was perl regex...
It's actually a perl expression; you can run any kind of perl code there. s is just the perl command that searches and replaces text.
no, actually the rename sintax is a bit weird, I can use rename '.jpg' '.png' *.jpg like nothing..
21:09
@Braiam you mean that command works for you?
martin@martin ~/test % rename -n '.txt' '.tst' *.txt
syntax error at (eval 1) line 1, near "."
martin@martin ~/test % rename -n '.tst' *.txt
syntax error at (eval 1) line 1, near "."
rename on Debian and derivatives is a perl script. rename on other Linux distributions is a different command, part of util-linux
I'm sure we have a dozen or squared questions that mention this
Yeah, that's what I was thinking too... maybe you're using two different renames.
@Braiam you have the util-linux rename
@MartinvonWittich you have the perl rename
@Gilles which still doesn't explain how he could use the perl rename here: unix.stackexchange.com/questions/92705/…
Maybe @Braiam's root $PATH is different from his user $PATH. It could be possible that he is using the perl rename when running it with sudo, and the util-linux rename when running it with his own user account.
@Gilles no, I didn't, I'm pluling from an example that I saw looking for help, nor that I tried it actually
21:13
@Braiam yeah, then you should have the Perl rename too. That example you found refers to the other rename and so it won't work for you either :)
and now darn link doesn't appear
ok
@MartinvonWittich this question is about Ubuntu, which has rename as the perl rename by default. Where's the unexplained bit?
That said, you can do some amazing things with Perl `rename`. For example :
martin@martin ~/test % ll
insgesamt 0
-rw-rw-r-- 1 martin martin 0 Sep 27 23:09 a.txt
-rw-rw-r-- 1 martin martin 0 Sep 27 23:09 b.txt
-rw-rw-r-- 1 martin martin 0 Sep 27 23:09 c.txt
-rw-rw-r-- 1 martin martin 0 Sep 27 23:09 d.txt
-rw-rw-r-- 1 martin martin 0 Sep 27 23:09 e.txt
-rw-rw-r-- 1 martin martin 0 Sep 27 23:09 f.txt
martin@martin ~/test % rename 'no strict; $_ = $i++.".txt"' *.txt
martin@martin ~/test % ll
insgesamt 0
> Linux (and *BSD) comes with handy utility called rename
21:15
@Gilles note that the question was posted by @Braiam
@Braiam ^^^^ bad start: it's only Debian and derivatives that have the rename mentioned in this article
I use Debian-like distros
and I actually used the regex because "I understand it"
never tried/used the other beast
21:28
anyone thinks that a bounty might get this one answered unix.stackexchange.com/q/84616/41104?
zsh,zsh,zsh,socat,vim,perl,ssh,tshark,strace,gdb,qemu/kvm,lsof — Stephane Chazelas 1 hour ago
I'd remove vim and add w3m, but other than that this list is spot on
21:46
anyone here use zorion os 7?

« first day (1084 days earlier)      last day (4168 days later) »